Commit 20243f09 authored by PRUVOST Florent's avatar PRUVOST Florent

check if each precision is activated for the testing and timing executables

parent dcc30d68
...@@ -15,27 +15,31 @@ endif() ...@@ -15,27 +15,31 @@ endif()
foreach(cat ${TEST_CATEGORIES}) foreach(cat ${TEST_CATEGORIES})
foreach(prec ${RP_CHAMELEON_PRECISIONS}) foreach(prec ${RP_CHAMELEON_PRECISIONS})
add_test(test_${cat}_${prec}gemm ./${prec}${TEST_CMD_${cat}} GEMM 1.0 -2.0 600 500 550 650 625 700) string(TOUPPER ${prec} PREC)
add_test(test_${cat}_${prec}lange ./${prec}${TEST_CMD_${cat}} LANGE 600 500 600)
add_test(test_${cat}_${prec}trsm ./${prec}${TEST_CMD_${cat}} TRSM -2.0 600 500 650 625) if (CHAMELEON_PREC_${PREC})
add_test(test_${cat}_${prec}trmm ./${prec}${TEST_CMD_${cat}} TRMM -2.0 600 500 650 625) add_test(test_${cat}_${prec}gemm ./${prec}${TEST_CMD_${cat}} GEMM 1.0 -2.0 600 500 550 650 625 700)
add_test(test_${cat}_${prec}symm ./${prec}${TEST_CMD_${cat}} SYMM 1.0 -2.0 600 500 650 625 700) add_test(test_${cat}_${prec}lange ./${prec}${TEST_CMD_${cat}} LANGE 600 500 600)
add_test(test_${cat}_${prec}syrk ./${prec}${TEST_CMD_${cat}} SYRK 1.0 -2.0 600 500 650 625) add_test(test_${cat}_${prec}trsm ./${prec}${TEST_CMD_${cat}} TRSM -2.0 600 500 650 625)
add_test(test_${cat}_${prec}syr2k ./${prec}${TEST_CMD_${cat}} SYR2K 1.0 -2.0 600 500 650 625 700) add_test(test_${cat}_${prec}trmm ./${prec}${TEST_CMD_${cat}} TRMM -2.0 600 500 650 625)
add_test(test_${cat}_${prec}symm ./${prec}${TEST_CMD_${cat}} SYMM 1.0 -2.0 600 500 650 625 700)
if ( "${prec}" STREQUAL "c" OR "${prec}" STREQUAL "z" ) add_test(test_${cat}_${prec}syrk ./${prec}${TEST_CMD_${cat}} SYRK 1.0 -2.0 600 500 650 625)
add_test(test_${cat}_${prec}hemm ./${prec}${TEST_CMD_${cat}} HEMM 1.0 -2.0 600 500 650 625 600) add_test(test_${cat}_${prec}syr2k ./${prec}${TEST_CMD_${cat}} SYR2K 1.0 -2.0 600 500 650 625 700)
add_test(test_${cat}_${prec}herk ./${prec}${TEST_CMD_${cat}} HERK 1.0 -2.0 600 500 650 625)
add_test(test_${cat}_${prec}her2k ./${prec}${TEST_CMD_${cat}} HER2K 1.0 -2.0 600 500 650 625 700) if ( "${prec}" STREQUAL "c" OR "${prec}" STREQUAL "z" )
endif() add_test(test_${cat}_${prec}hemm ./${prec}${TEST_CMD_${cat}} HEMM 1.0 -2.0 600 500 650 625 600)
add_test(test_${cat}_${prec}herk ./${prec}${TEST_CMD_${cat}} HERK 1.0 -2.0 600 500 650 625)
add_test(test_${cat}_${prec}posv ./${prec}${TEST_CMD_${cat}} POSV 500 600 25 700) add_test(test_${cat}_${prec}her2k ./${prec}${TEST_CMD_${cat}} HER2K 1.0 -2.0 600 500 650 625 700)
add_test(test_${cat}_${prec}potri ./${prec}${TEST_CMD_${cat}} POTRI 500 600) endif()
add_test(test_${cat}_${prec}gels_qr ./${prec}${TEST_CMD_${cat}} GELS 0 800 400 825 25 810)
add_test(test_${cat}_${prec}gels_hqr ./${prec}${TEST_CMD_${cat}} GELS 1 800 400 825 25 810 4) add_test(test_${cat}_${prec}posv ./${prec}${TEST_CMD_${cat}} POSV 500 600 25 700)
add_test(test_${cat}_${prec}gels_lq ./${prec}${TEST_CMD_${cat}} GELS 0 400 800 825 25 810) add_test(test_${cat}_${prec}potri ./${prec}${TEST_CMD_${cat}} POTRI 500 600)
add_test(test_${cat}_${prec}gels_hlq ./${prec}${TEST_CMD_${cat}} GELS 1 400 800 825 25 810 4) add_test(test_${cat}_${prec}gels_qr ./${prec}${TEST_CMD_${cat}} GELS 0 800 400 825 25 810)
add_test(test_${cat}_${prec}gesv_incpiv ./${prec}${TEST_CMD_${cat}} GESV_INCPIV 800 825 25 810) add_test(test_${cat}_${prec}gels_hqr ./${prec}${TEST_CMD_${cat}} GELS 1 800 400 825 25 810 4)
add_test(test_${cat}_${prec}gels_lq ./${prec}${TEST_CMD_${cat}} GELS 0 400 800 825 25 810)
add_test(test_${cat}_${prec}gels_hlq ./${prec}${TEST_CMD_${cat}} GELS 1 400 800 825 25 810 4)
add_test(test_${cat}_${prec}gesv_incpiv ./${prec}${TEST_CMD_${cat}} GESV_INCPIV 800 825 25 810)
endif()
endforeach() endforeach()
endforeach() endforeach()
......
...@@ -35,14 +35,22 @@ set(TESTLIST_ZC ...@@ -35,14 +35,22 @@ set(TESTLIST_ZC
foreach(cat ${TEST_CATEGORIES}) foreach(cat ${TEST_CATEGORIES})
foreach(prec ${RP_CHAMELEON_PRECISIONS}) foreach(prec ${RP_CHAMELEON_PRECISIONS})
foreach(test ${TESTLIST}) string(TOUPPER ${prec} PREC)
add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check --nowarmup)
endforeach() if (CHAMELEON_PREC_${PREC})
foreach(test ${TESTLIST})
add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check --nowarmup)
endforeach()
endif()
endforeach() endforeach()
foreach(prec ${CHAMELEON_PRECISIONS_ZC}) foreach(prec ${CHAMELEON_PRECISIONS_ZC})
foreach(test ${TESTLIST_ZC}) string(TOUPPER ${prec} PREC)
add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check --nowarmup)
endforeach() if (CHAMELEON_PREC_${PREC})
foreach(test ${TESTLIST_ZC})
add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check --nowarmup)
endforeach()
endif()
endforeach() endforeach()
endforeach() endforeach()
...@@ -59,9 +67,13 @@ if (CHAMELEON_USE_MPI AND MPI_C_FOUND) ...@@ -59,9 +67,13 @@ if (CHAMELEON_USE_MPI AND MPI_C_FOUND)
) )
foreach(cat ${TEST_CATEGORIES}) foreach(cat ${TEST_CATEGORIES})
foreach(prec ${RP_CHAMELEON_PRECISIONS}) foreach(prec ${RP_CHAMELEON_PRECISIONS})
foreach(test ${TESTLIST_MPI}) string(TOUPPER ${prec} PREC)
add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check --nowarmup)
endforeach() if (CHAMELEON_PREC_${PREC})
foreach(test ${TESTLIST_MPI})
add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check --nowarmup)
endforeach()
endif()
endforeach() endforeach()
endforeach() endforeach()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment