From c406856580239f18dbf2082598046e1289500d67 Mon Sep 17 00:00:00 2001 From: Alycia Lisito <alycia.lisito@inria.fr> Date: Fri, 11 Feb 2022 17:55:17 +0100 Subject: [PATCH] ctest: Add lapack api tests to the ctest list --- testing/CTestLists.cmake | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/testing/CTestLists.cmake b/testing/CTestLists.cmake index 70be7851f..af64f0c77 100644 --- a/testing/CTestLists.cmake +++ b/testing/CTestLists.cmake @@ -89,6 +89,44 @@ if (NOT CHAMELEON_SIMULATION) endforeach() endforeach() + foreach(prec ${RP_CHAMELEON_PRECISIONS}) + set (CMD ./chameleon_${prec}testing) + + # + # Create the list of test based on precision and runtime + # + set( TESTS lange lantr lansy ) + if ( ${prec} STREQUAL c OR ${prec} STREQUAL z ) + set( TESTS ${TESTS} lanhe ) + endif() + set( TESTS ${TESTS} + gemm symm syrk syr2k trmm trsm ) + if ( ${prec} STREQUAL c OR ${prec} STREQUAL z ) + set( TESTS ${TESTS} + hemm herk her2k ) + endif() + set( TESTS ${TESTS} + potrf potrs posv ) + if ( NOT CHAMELEON_SCHED_PARSEC ) + set( TESTS ${TESTS} potri poinv) + endif() + + list(REMOVE_ITEM TEST_CATEGORIES mpi) + + foreach(cat ${TEST_CATEGORIES}) + foreach(gpus ${N_GPUS}) + + if (${gpus} EQUAL 1) + set(cat ${cat}_gpu) + endif() + + foreach(test ${TESTS}) + add_test(test_${cat}_${prec}${test}_std ${CMD} -c -t ${THREADS} -g ${gpus} -P 1 -f input/${test}.in --api=1 ) + endforeach() + endforeach() + endforeach() + endforeach() + else (NOT CHAMELEON_SIMULATION) # constraints for which we have perfmodels in simucore/perfmodels/ -- GitLab