Skip to content

Commit ec2948f

Browse files
authored
Make tests conditional on BUILD_DOUBLE
1 parent ce89398 commit ec2948f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

utest/test_kernel_regress.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ double m[DATASIZE*DATASIZE];
2222

2323
CTEST(kernel_regress,skx_avx)
2424
{
25+
#ifdef BUILD_DOUBLE
2526
double norm;
2627
int i, j, info;
2728
srand(0);
@@ -47,4 +48,5 @@ CTEST(kernel_regress,skx_avx)
4748

4849
norm = cblas_dnrm2(DATASIZE*DATASIZE, X, 1);
4950
ASSERT_DBL_NEAR_TOL(0.0, norm, 1e-10);
51+
#endif
5052
}

utest/test_rotmg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333

3434
#include "openblas_utest.h"
3535

36+
#ifdef BUILD_DOUBLE
3637
CTEST (drotmg,rotmg)
3738
{
3839
double te_d1, tr_d1;
@@ -204,3 +205,4 @@ CTEST(drotmg, drotmg_D1_big_D2_big_flag_zero)
204205
ASSERT_DBL_NEAR_TOL(tr_param[i], te_param[i], DOUBLE_EPS);
205206
}
206207
}
208+
#endif

0 commit comments

Comments
 (0)