CTestLists.cmake 4.07 KB
Newer Older
1
#
2
# Check timing/
3 4
#

Mathieu Faverge's avatar
Mathieu Faverge committed
5 6 7 8
set(TEST_CMD_shm    --n_range=17:407:39    --nb=32  --ib=7                )
set(TEST_CMD_shmgpu --n_range=170:4070:390 --nb=320 --ib=48 --gpus=1      )
set(TEST_CMD_mpi    --n_range=17:407:39    --nb=32  --ib=7  --P=2         )
set(TEST_CMD_mpigpu --n_range=170:4070:390 --nb=320 --ib=48 --P=2 --gpus=1)
9

Mathieu Faverge's avatar
Mathieu Faverge committed
10
set(MPI_CMD_shm    )
11
set(MPI_CMD_shmgpu )
Mathieu Faverge's avatar
Mathieu Faverge committed
12
set(MPI_CMD_mpi    mpirun -np 4)
13 14
set(MPI_CMD_mpigpu mpirun -np 4)

15 16 17 18 19 20 21 22 23 24
if (NOT CHAMELEON_SIMULATION)
  set( TEST_CATEGORIES shm )
  if (CHAMELEON_USE_CUDA AND CUDA_FOUND)
    set( TEST_CATEGORIES ${TEST_CATEGORIES} shmgpu )
  endif()
else()
  set( TEST_CATEGORIES simushm )
  if (CHAMELEON_USE_CUDA AND CUDA_FOUND)
    set( TEST_CATEGORIES ${TEST_CATEGORIES} simugpu )
  endif()
25 26
endif()

27
set(TESTLIST
28 29 30 31 32 33 34 35 36 37
  gels
  gemm
  getrf_incpiv
  getrf_nopiv
  geqrf
  gelqf
  posv
  potrf
  potri
  )
38

39
set(CHAMELEON_PRECISIONS_ZC "c;z")
40
set(TESTLIST_ZC
41 42
  sytrf
  )
43

44
if (NOT CHAMELEON_SIMULATION)
45

46 47 48 49 50
  foreach(cat ${TEST_CATEGORIES})
    foreach(prec ${RP_CHAMELEON_PRECISIONS})
      string(TOUPPER ${prec} PREC)
      if (CHAMELEON_PREC_${PREC})
        foreach(test ${TESTLIST})
51
          add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check)
52 53
        endforeach()
      endif()
54
    endforeach()
55
    foreach(prec ${CHAMELEON_PRECISIONS_ZC})
56 57 58
      string(TOUPPER ${prec} PREC)
      if (CHAMELEON_PREC_${PREC})
        foreach(test ${TESTLIST_ZC})
59
          add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check)
60 61
        endforeach()
      endif()
62
    endforeach()
63
  endforeach()
64

Mathieu Faverge's avatar
Issue65  
Mathieu Faverge committed
65 66 67 68 69 70
  if ( CHAMELEON_SCHED_STARPU )
    foreach(cat ${TEST_CATEGORIES})
      foreach(prec ${RP_CHAMELEON_PRECISIONS})
        string(TOUPPER ${prec} PREC)
        if (CHAMELEON_PREC_${PREC})
          foreach(test ${TESTLIST})
Mathieu Faverge's avatar
Mathieu Faverge committed
71
            add_test(time_ooc_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --ooc --check)
Mathieu Faverge's avatar
Issue65  
Mathieu Faverge committed
72 73 74 75 76 77 78 79 80 81
            set_tests_properties(time_ooc_${cat}_${prec}${test} PROPERTIES
              ENVIRONMENT "STARPU_DISK_SWAP=/tmp;STARPU_LIMIT_CPU_MEM=1"
              )
          endforeach()
        endif()
      endforeach()
      foreach(prec ${CHAMELEON_PRECISIONS_ZC})
        string(TOUPPER ${prec} PREC)
        if (CHAMELEON_PREC_${PREC})
          foreach(test ${TESTLIST_ZC})
Mathieu Faverge's avatar
Mathieu Faverge committed
82
            add_test(time_ooc_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --ooc --check)
Mathieu Faverge's avatar
Issue65  
Mathieu Faverge committed
83 84 85 86 87 88 89 90
            set_tests_properties(time_ooc_${cat}_${prec}${test} PROPERTIES
              ENVIRONMENT "STARPU_DISK_SWAP=/tmp;STARPU_LIMIT_CPU_MEM=1"
              )
          endforeach()
        endif()
      endforeach()
    endforeach()
  endif()
Mathieu Faverge's avatar
Mathieu Faverge committed
91

92
  if (CHAMELEON_USE_MPI AND MPI_C_FOUND)
93 94 95 96 97 98
    set( TEST_CATEGORIES mpi )
    #set( TEST_CATEGORIES ${TEST_CATEGORIES} mpi )
    #if (CHAMELEON_USE_CUDA AND CUDA_FOUND)
    #    set( TEST_CATEGORIES ${TEST_CATEGORIES} mpigpu )
    #endif()
    set(TESTLIST_MPI
99 100
      potrf
      )
101
    foreach(cat ${TEST_CATEGORIES})
102 103
      foreach(prec ${RP_CHAMELEON_PRECISIONS})
        string(TOUPPER ${prec} PREC)
104

105 106
        if (CHAMELEON_PREC_${PREC})
          foreach(test ${TESTLIST_MPI})
107
            add_test(time_${cat}_${prec}${test} ${MPI_CMD_${cat}} ./time_${prec}${test}_tile ${TEST_CMD_${cat}} --check)
108 109 110
          endforeach()
        endif()
      endforeach()
111
    endforeach()
112 113 114 115
  endif()

else (NOT CHAMELEON_SIMULATION)

116 117
  set(TEST_CMD_simushm -N 9600:9600:1 -b 960)
  set(TEST_CMD_simugpu -N 9600:9600:1 -b 960 -g 1)
118 119 120 121 122 123
  set(RP_CHAMELEON_PRECISIONS_SIMU "s;d")
  foreach(cat ${TEST_CATEGORIES})
    foreach(prec ${RP_CHAMELEON_PRECISIONS_SIMU})
      string(TOUPPER ${prec} PREC)
      if (CHAMELEON_PREC_${PREC})
        add_test(time_${cat}_${prec}potrf ${MPI_CMD_${cat}} ./time_${prec}potrf_tile ${TEST_CMD_${cat}})
124 125 126
        set_tests_properties(time_${cat}_${prec}potrf PROPERTIES
                             ENVIRONMENT "STARPU_HOME=${CMAKE_SOURCE_DIR}/simucore/perfmodels;STARPU_HOSTNAME=sirocco"
                             )
127 128 129 130 131
      endif()
    endforeach()
  endforeach()

endif (NOT CHAMELEON_SIMULATION)