Skip to content

Commit 7d7a6c6

Browse files
authored
Build the comparison functions as needed to avoid missing references
1 parent d0a6e36 commit 7d7a6c6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

utest/test_extensions/common.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void drand_generate(double *alpha, blasint n)
5050
alpha[i] = (double)rand() / (double)RAND_MAX;
5151
}
5252

53+
#ifdef BUILD_SINGLE
5354
/**
5455
* Find difference between two rectangle matrix
5556
* return norm of differences
@@ -76,7 +77,8 @@ float smatrix_difference(float *a, float *b, blasint cols, blasint rows, blasint
7677
}
7778
return norm/(float)(rows);
7879
}
79-
80+
#endif
81+
#ifdef BUILD_DOUBLE
8082
double dmatrix_difference(double *a, double *b, blasint cols, blasint rows, blasint ld)
8183
{
8284
blasint i = 0;
@@ -99,7 +101,7 @@ double dmatrix_difference(double *a, double *b, blasint cols, blasint rows, blas
99101
}
100102
return norm/(double)(rows);
101103
}
102-
104+
#endif
103105
/**
104106
* Complex conjugate operation for vector
105107
*

0 commit comments

Comments
 (0)