mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Fixed benchmark cmake files.
This commit is contained in:
parent
5571b171ea
commit
1faa1dba74
@ -1,3 +1,4 @@
|
|||||||
|
add_compile_options(-g -O3 -DNDEBUG)
|
||||||
function(add_coz_run_target name)
|
function(add_coz_run_target name)
|
||||||
set(one_value_args "")
|
set(one_value_args "")
|
||||||
set(multi_value_args COMMAND)
|
set(multi_value_args COMMAND)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(histogram histogram-pthread.c)
|
add_executable(histogram histogram-pthread.c)
|
||||||
target_link_libraries(histogram PRIVATE coz-instrumentation pthread)
|
target_link_libraries(histogram PRIVATE pthread)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
COMMENT "Downloading histogram inputs"
|
COMMENT "Downloading histogram inputs"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(kmeans kmeans-pthread.c)
|
add_executable(kmeans kmeans-pthread.c)
|
||||||
target_link_libraries(kmeans PRIVATE coz-instrumentation pthread)
|
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_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_coz_run_target(run_kmeans_large COMMAND $<TARGET_FILE:kmeans> -d 3 -c 100 -p 100000 -s 1000)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(linear_regression linear_regression-pthread.c)
|
add_executable(linear_regression linear_regression-pthread.c)
|
||||||
target_link_libraries(linear_regression PRIVATE coz-instrumentation pthread)
|
target_link_libraries(linear_regression PRIVATE pthread)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
COMMENT "Downloading linear_regression inputs"
|
COMMENT "Downloading linear_regression inputs"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(matrix_multiply matrix_multiply-pthread.c)
|
add_executable(matrix_multiply matrix_multiply-pthread.c)
|
||||||
target_link_libraries(matrix_multiply PRIVATE coz-instrumentation pthread)
|
target_link_libraries(matrix_multiply PRIVATE pthread)
|
||||||
target_compile_options(matrix_multiply PRIVATE -Wno-format)
|
target_compile_options(matrix_multiply PRIVATE -Wno-format)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(pbzip2 BZ2StreamScanner.cpp ErrorContext.cpp pbzip2.cpp)
|
add_executable(pbzip2 BZ2StreamScanner.cpp ErrorContext.cpp pbzip2.cpp)
|
||||||
target_link_libraries(pbzip2 PRIVATE BZip2::BZip2 coz-instrumentation pthread)
|
target_link_libraries(pbzip2 PRIVATE bz2 pthread)
|
||||||
target_compile_options(pbzip2 PRIVATE -Wno-format)
|
target_compile_options(pbzip2 PRIVATE -Wno-format)
|
||||||
|
|
||||||
set(datafiles ${CMAKE_CURRENT_BINARY_DIR}/../linear_regression/linear_regression_datafiles)
|
set(datafiles ${CMAKE_CURRENT_BINARY_DIR}/../linear_regression/linear_regression_datafiles)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
add_executable(pca pca-pthread.c)
|
add_executable(pca pca-pthread.c)
|
||||||
target_link_libraries(pca PRIVATE coz-instrumentation pthread)
|
target_link_libraries(pca PRIVATE pthread)
|
||||||
|
|
||||||
add_coz_run_target(run_pca COMMAND $<TARGET_FILE:pca> > /dev/null)
|
add_coz_run_target(run_pca COMMAND $<TARGET_FILE:pca> > /dev/null)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
add_executable(producer_consumer producer_consumer.cpp)
|
add_executable(producer_consumer producer_consumer.cpp)
|
||||||
target_link_libraries(producer_consumer PRIVATE coz-instrumentation pthread)
|
target_link_libraries(producer_consumer PRIVATE pthread)
|
||||||
|
|
||||||
add_coz_run_target(run_producer_consumer COMMAND $<TARGET_FILE:producer_consumer>)
|
add_coz_run_target(run_producer_consumer COMMAND $<TARGET_FILE:producer_consumer>)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(sqlite-bench-modified main.c sqlite3.c)
|
add_executable(sqlite-bench-modified main.c sqlite3.c)
|
||||||
target_compile_definitions(sqlite-bench-modified PRIVATE SQLITE_THREADSAFE=2)
|
target_compile_definitions(sqlite-bench-modified PRIVATE SQLITE_THREADSAFE=2)
|
||||||
target_link_libraries(sqlite-bench-modified PRIVATE SQLite::SQLite3 coz-instrumentation pthread)
|
target_link_libraries(sqlite-bench-modified PRIVATE sqlite3 pthread dl)
|
||||||
|
|
||||||
add_coz_run_target(run_sqlite_bench_modified COMMAND $<TARGET_FILE:sqlite-bench-modified>)
|
add_coz_run_target(run_sqlite_bench_modified COMMAND $<TARGET_FILE:sqlite-bench-modified>)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(sqlite-bench main.c sqlite3.c)
|
add_executable(sqlite-bench main.c sqlite3.c)
|
||||||
target_compile_definitions(sqlite-bench PRIVATE SQLITE_THREADSAFE=2)
|
target_compile_definitions(sqlite-bench PRIVATE SQLITE_THREADSAFE=2)
|
||||||
target_link_libraries(sqlite-bench PRIVATE SQLite::SQLite3 coz-instrumentation pthread)
|
target_link_libraries(sqlite-bench PRIVATE sqlite3 pthread dl)
|
||||||
|
|
||||||
add_coz_run_target(run_sqlite_bench COMMAND $<TARGET_FILE:sqlite-bench>)
|
add_coz_run_target(run_sqlite_bench COMMAND $<TARGET_FILE:sqlite-bench>)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(string_match string_match-pthread.c)
|
add_executable(string_match string_match-pthread.c)
|
||||||
target_link_libraries(string_match PRIVATE coz-instrumentation pthread)
|
target_link_libraries(string_match PRIVATE pthread)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
COMMENT "Downloading string_match inputs"
|
COMMENT "Downloading string_match inputs"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
add_executable(toy toy.cpp)
|
add_executable(toy toy.cpp)
|
||||||
target_link_libraries(toy PRIVATE coz-instrumentation pthread)
|
target_link_libraries(toy PRIVATE pthread)
|
||||||
|
|
||||||
add_coz_run_target(run_toy COMMAND $<TARGET_FILE:toy>)
|
add_coz_run_target(run_toy COMMAND $<TARGET_FILE:toy>)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_executable(word_count sort-pthread.c word_count-pthread.c)
|
add_executable(word_count sort-pthread.c word_count-pthread.c)
|
||||||
target_link_libraries(word_count PRIVATE coz-instrumentation pthread)
|
target_link_libraries(word_count PRIVATE pthread)
|
||||||
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
COMMENT "Downloading word_count inputs"
|
COMMENT "Downloading word_count inputs"
|
||||||
|
Loading…
Reference in New Issue
Block a user