CTestLists.cmake 3.8 KB
Newer Older
1
#
2
# Check testing/
3 4
#

Mathieu Faverge's avatar
Mathieu Faverge committed
5 6 7 8
set(TEST_CMD_shm    testing 4 0 19 7 )
set(TEST_CMD_shmgpu testing 4 1 19 7 )
# set(TEST_CMD_mpi    testing 4 0 19 7 )
# set(TEST_CMD_mpigpu testing 4 1 19 7 )
9 10

set( TEST_CATEGORIES shm )
11
if (CHAMELEON_USE_CUDA AND CUDA_FOUND)
12 13 14 15
   set( TEST_CATEGORIES ${TEST_CATEGORIES} shmgpu )
endif()

foreach(cat  ${TEST_CATEGORIES})
16
  foreach(prec ${RP_CHAMELEON_PRECISIONS})
17

18 19 20
    string(TOUPPER ${prec} PREC)

    if (CHAMELEON_PREC_${PREC})
Mathieu Faverge's avatar
Mathieu Faverge committed
21 22 23 24 25 26 27 28
        add_test(test_${cat}_${prec}lange ./${prec}${TEST_CMD_${cat}} LANGE 117 213 232 )
        add_test(test_${cat}_${prec}gemm  ./${prec}${TEST_CMD_${cat}} GEADD 1.7 -2.3 117 213    215 220    )
        add_test(test_${cat}_${prec}gemm  ./${prec}${TEST_CMD_${cat}} GEMM  1.7 -2.3 117 213 97 215 220 232)
        add_test(test_${cat}_${prec}trsm  ./${prec}${TEST_CMD_${cat}} TRSM      -2.3 117 213    215 220    )
        add_test(test_${cat}_${prec}trmm  ./${prec}${TEST_CMD_${cat}} TRMM      -2.3 117 213    215 220    )
        add_test(test_${cat}_${prec}symm  ./${prec}${TEST_CMD_${cat}} SYMM  1.7 -2.3 117 213    215 220 232)
        add_test(test_${cat}_${prec}syrk  ./${prec}${TEST_CMD_${cat}} SYRK  1.7 -2.3 117 213    215 220    )
        add_test(test_${cat}_${prec}syr2k ./${prec}${TEST_CMD_${cat}} SYR2K 1.7 -2.3 117 213    215 220 232)
29

30
        if ( ${prec} STREQUAL c OR ${prec} STREQUAL z )
Mathieu Faverge's avatar
Mathieu Faverge committed
31 32 33
          add_test(test_${cat}_${prec}hemm  ./${prec}${TEST_CMD_${cat}} HEMM  1.7 -2.3 117 213 215 220 232)
          add_test(test_${cat}_${prec}herk  ./${prec}${TEST_CMD_${cat}} HERK  1.7 -2.3 117 213 215 220    )
          add_test(test_${cat}_${prec}her2k ./${prec}${TEST_CMD_${cat}} HER2K 1.7 -2.3 117 213 215 220 232)
34 35
        endif()

Mathieu Faverge's avatar
Mathieu Faverge committed
36 37 38 39 40 41 42
         add_test(test_${cat}_${prec}posv        ./${prec}${TEST_CMD_${cat}} POSV            117 155 25 143)
         add_test(test_${cat}_${prec}potri       ./${prec}${TEST_CMD_${cat}} POTRI           117 155       )
         add_test(test_${cat}_${prec}gels_qr     ./${prec}${TEST_CMD_${cat}} GELS      0 233 117 255 25 242  )
         add_test(test_${cat}_${prec}gels_hqr    ./${prec}${TEST_CMD_${cat}} GELS      1 233 117 255 25 242 3)
         add_test(test_${cat}_${prec}gels_lq     ./${prec}${TEST_CMD_${cat}} GELS      0 117 233 155 25 242  )
         add_test(test_${cat}_${prec}gels_hlq    ./${prec}${TEST_CMD_${cat}} GELS      1 117 233 155 25 242 3)
         add_test(test_${cat}_${prec}gesv_incpiv ./${prec}${TEST_CMD_${cat}} GESV_INCPIV     117 155 25 242)
43

Mathieu Faverge's avatar
Mathieu Faverge committed
44 45 46 47 48 49
         add_test(test_${cat}_${prec}gels_hqr_greedy    ./${prec}${TEST_CMD_${cat}} GELS_HQR 233 117 255 25 242 2 -1 1 -1 0)
         add_test(test_${cat}_${prec}gels_hqr_fibonacci ./${prec}${TEST_CMD_${cat}} GELS_HQR 233 117 255 25 242 2 -1 2 -1 0)
         add_test(test_${cat}_${prec}gels_hqr_binary    ./${prec}${TEST_CMD_${cat}} GELS_HQR 233 117 255 25 242 2 -1 3 -1 0)
         add_test(test_${cat}_${prec}gels_hlq_greedy    ./${prec}${TEST_CMD_${cat}} GELS_HQR 117 233 255 25 242 2 -1 1 -1 0)
         add_test(test_${cat}_${prec}gels_hlq_fibonacci ./${prec}${TEST_CMD_${cat}} GELS_HQR 117 233 255 25 242 2 -1 2 -1 0)
         add_test(test_${cat}_${prec}gels_hlq_binary    ./${prec}${TEST_CMD_${cat}} GELS_HQR 117 233 255 25 242 2 -1 3 -1 0)
50

Mathieu Faverge's avatar
Mathieu Faverge committed
51 52
         add_test(test_${cat}_${prec}gels_qr_systolic   ./${prec}${TEST_CMD_${cat}} GELS_SYSTOLIC 233 117 255 25 242 3 2)
         add_test(test_${cat}_${prec}gels_lq_systolic   ./${prec}${TEST_CMD_${cat}} GELS_SYSTOLIC 117 233 255 25 242 3 2)
53
     endif()
PRUVOST Florent's avatar
PRUVOST Florent committed
54

55 56 57
  endforeach()
endforeach()

58 59 60 61 62 63 64 65 66
#if (CHAMELEON_USE_MPI AND MPI_C_FOUND)
#    set( TEST_CATEGORIES ${TEST_CATEGORIES} mpi )
#    if (CHAMELEON_USE_CUDA AND CUDA_FOUND)
#        set( TEST_CATEGORIES ${TEST_CATEGORIES} mpigpu )
#    endif()
#    foreach(prec ${RP_CHAMELEON_PRECISIONS})
#        add_test(test_mpi_${prec}lange mpirun -np 4 ./${prec}testing 1 0 LANGE 600 500 600 --p=2)
#    endforeach()
#endif()