Make tests conditional on BUILD_DOUBLE

This commit is contained in:
Martin Kroeker 2020-09-13 22:17:46 +02:00 committed by GitHub
parent ce89398636
commit ec2948f147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@ double m[DATASIZE*DATASIZE];
CTEST(kernel_regress,skx_avx)
{
#ifdef BUILD_DOUBLE
double norm;
int i, j, info;
srand(0);
@ -47,4 +48,5 @@ CTEST(kernel_regress,skx_avx)
norm = cblas_dnrm2(DATASIZE*DATASIZE, X, 1);
ASSERT_DBL_NEAR_TOL(0.0, norm, 1e-10);
#endif
}

View File

@ -33,6 +33,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "openblas_utest.h"
#ifdef BUILD_DOUBLE
CTEST (drotmg,rotmg)
{
double te_d1, tr_d1;
@ -204,3 +205,4 @@ CTEST(drotmg, drotmg_D1_big_D2_big_flag_zero)
ASSERT_DBL_NEAR_TOL(tr_param[i], te_param[i], DOUBLE_EPS);
}
}
#endif