From dcc30d685dc51877f84fd0f243996dc198089a77 Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Fri, 30 Jan 2015 15:54:57 +0000 Subject: [PATCH] check if each precision is activated for the example executables --- control/control.c | 2 +- example/basic_zposv/CTestLists.cmake | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/control/control.c b/control/control.c index b9db918c8..3b7818167 100644 --- a/control/control.c +++ b/control/control.c @@ -90,7 +90,7 @@ int MORSE_InitPar(int nworkers, int ncudas, int nthreads_per_worker) return MORSE_ERR_OUT_OF_RESOURCES; } -#if 0 +#if 0 /* Init number of cores and topology */ morse_topology_init(); diff --git a/example/basic_zposv/CTestLists.cmake b/example/basic_zposv/CTestLists.cmake index e9a289d51..cab9e54b5 100644 --- a/example/basic_zposv/CTestLists.cmake +++ b/example/basic_zposv/CTestLists.cmake @@ -8,7 +8,10 @@ set(TESTLIST ) foreach(prec ${RP_CHAMELEON_PRECISIONS}) - foreach(test ${TESTLIST}) - add_test(example_basic_${prec}${test} ./${prec}${test}) - endforeach() + string(TOUPPER ${prec} PREC) + if (CHAMELEON_PREC_${PREC}) + foreach(test ${TESTLIST}) + add_test(example_basic_${prec}${test} ./${prec}${test}) + endforeach() + endif() endforeach() \ No newline at end of file -- GitLab