From 61e40347e098095e91eedd77e00961799847bd54 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Tue, 15 Oct 2024 15:53:08 +0200 Subject: [PATCH] testing: Fix maximum condition number in single precision testing --- testing/CTestLists.cmake | 24 ++++++++++++++++++------ testing/input/genm2_32.in | 19 +++++++++++++++++++ testing/input/gepdf_qdwh_32.in | 23 +++++++++++++++++++++++ 3 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 testing/input/genm2_32.in create mode 100644 testing/input/gepdf_qdwh_32.in diff --git a/testing/CTestLists.cmake b/testing/CTestLists.cmake index c185e50b5..c8d012141 100644 --- a/testing/CTestLists.cmake +++ b/testing/CTestLists.cmake @@ -21,6 +21,10 @@ if (CHAMELEON_SIMULATION) endif() endif() +set( SINGLE_PRECISIONS s c ) +# list all tests that have a specific input file for single precision computations +set( SINGLE_TESTS gepdf_qdwh genm2 ) + if (NOT CHAMELEON_SIMULATION) foreach(prec ${CHAMELEON_PRECISION}) @@ -82,7 +86,11 @@ if (NOT CHAMELEON_SIMULATION) endif() foreach( test ${TESTSTMP} ) - add_test( test_${cat}_${prec}${test} ${PREFIX} ${CMD} -c -t ${THREADS} -g ${gpus} -P 1 -f input/${test}.in ) + if ( ${test} IN_LIST SINGLE_TESTS AND ${prec} IN_LIST SINGLE_PRECISIONS ) + add_test( test_${cat}_${prec}${test} ${PREFIX} ${CMD} -c -t ${THREADS} -g ${gpus} -P 1 -f input/${test}_32.in ) + else() + add_test( test_${cat}_${prec}${test} ${PREFIX} ${CMD} -c -t ${THREADS} -g ${gpus} -P 1 -f input/${test}.in ) + endif() endforeach() if ( CHAMELEON_SCHED_STARPU ) @@ -111,11 +119,15 @@ if (NOT CHAMELEON_SIMULATION) list( REMOVE_ITEM TESTSTMP print gepdf_qr ) - foreach( test ${TESTSTMP} ) - if ( NOT (${cat} STREQUAL "mpi")) - add_test( test_${cat}_${prec}${test}_std ${CMD} -c -t ${THREADS} -g ${gpus} -P 1 -f input/${test}.in --api=1 ) - endif() - endforeach() + if ( NOT (${cat} STREQUAL "mpi")) + foreach( test ${TESTSTMP} ) + if ( ${test} IN_LIST SINGLE_TESTS AND ${prec} IN_LIST SINGLE_PRECISIONS ) + add_test( test_${cat}_${prec}${test}_std ${CMD} -c -t ${THREADS} -g ${gpus} -P 1 -f input/${test}_32.in --api=1 ) + else() + add_test( test_${cat}_${prec}${test}_std ${CMD} -c -t ${THREADS} -g ${gpus} -P 1 -f input/${test}.in --api=1 ) + endif() + endforeach() + endif() endforeach() endforeach() endforeach() diff --git a/testing/input/genm2_32.in b/testing/input/genm2_32.in new file mode 100644 index 000000000..3d2a04f54 --- /dev/null +++ b/testing/input/genm2_32.in @@ -0,0 +1,19 @@ +# You can enumerate each parameter's values as an explicit list separated by commas or by a range start:end[:step] +# Not given parameters will receive default values + +# GENM2 +# mtxfmt +# nb: Tile size +# M: Number of rows of matrix A +# N: Number of columns of matrix A +# LDA: Leading dimension of matrix A +# cond: The condition number +# mode: the mode values for latms + +op = genm2 +nb = 16, 17 +m = 15, 25, 37 +n = 13, 23, 35 +lda = 41 +cond = 1., 1.e6 +mode = 1:6 diff --git a/testing/input/gepdf_qdwh_32.in b/testing/input/gepdf_qdwh_32.in new file mode 100644 index 000000000..80de2094d --- /dev/null +++ b/testing/input/gepdf_qdwh_32.in @@ -0,0 +1,23 @@ +# You can enumerate each parameter's values as an explicit list separated by commas or by a range start:end[:step] +# Not given parameters will receive default values + +# GEPDF_QDWH + +# nb: Tile size +# ib: Inner tile size +# m: Number of rows of the A matrix +# n: Number of columns of the A matrix +# lda: Leading dimension of the A matrix +# ldb: Leading dimension of the H matrix +# cond: The condition number +# mode: the mode values for latms + +op = gepdf_qdwh +nb = 8 +ib = 3 +m = 8, 32, 64 +n = 8, 16, 32 +lda = 79 +ldb = 78 +cond = 1., 1.e6 +mode = 1:6 -- GitLab