mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
11 lines
477 B
CMake
11 lines
477 B
CMake
add_executable(kmeans kmeans-pthread.c)
|
|
target_link_libraries(kmeans PRIVATE pthread)
|
|
|
|
add_coz_run_target(run_kmeans_small COMMAND $<TARGET_FILE:kmeans> -d 3 -c 100 -p 10000 -s 100)
|
|
add_coz_run_target(run_kmeans_large COMMAND $<TARGET_FILE:kmeans> -d 3 -c 100 -p 100000 -s 1000)
|
|
|
|
add_test(
|
|
NAME test_run_kmeans
|
|
COMMAND ${PROJECT_SOURCE_DIR}/benchmarks/check-output.sh ${PROJECT_SOURCE_DIR}/coz run --- $<TARGET_FILE:kmeans>
|
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
|