2022-09-26 00:35:49 +08:00
|
|
|
set(TESTCASES
|
|
|
|
aes
|
|
|
|
bs
|
|
|
|
ep
|
|
|
|
fir
|
|
|
|
ga
|
|
|
|
hist
|
|
|
|
kmeans
|
|
|
|
pr)
|
|
|
|
foreach(case IN LISTS TESTCASES)
|
2022-09-24 01:08:28 +08:00
|
|
|
message(STATUS "Add test: ${case}")
|
|
|
|
message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
|
|
|
|
message(STATUS "${CMAKE_BINARY_DIR}")
|
|
|
|
find_program(BASH_PROGRAM bash)
|
2022-09-26 09:22:05 +08:00
|
|
|
execute_process(COMMAND find ${CMAKE_CURRENT_SOURCE_DIR}/Hetero-Mark -name
|
|
|
|
"*test.cc" -type f -delete)
|
2022-09-24 01:08:28 +08:00
|
|
|
add_test(
|
|
|
|
NAME "${case}"
|
|
|
|
COMMAND
|
|
|
|
${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/runHeteroMark.sh ${case}
|
2022-09-26 00:58:58 +08:00
|
|
|
${CUDA_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/Hetero-Mark ${CMAKE_BINARY_DIR}
|
|
|
|
${HETERO_MARK_DATA})
|
2022-09-24 01:08:28 +08:00
|
|
|
endforeach()
|