File tree Expand file tree Collapse file tree 8 files changed +3816
-3
lines changed
Expand file tree Collapse file tree 8 files changed +3816
-3
lines changed Original file line number Diff line number Diff line change 2424- PR #283 Add random allocation benchmark.
2525- PR #287 Enabled CUDA CXX11 for unit tests.
2626- PR #292 Revamped RMM exceptions.
27+ - PR #303 Added replay benchmark.
2728- PR #297 Use spdlog to implement ` logging_resource_adaptor `
2829
2930## Improvements
Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ include_directories("${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}"
115115 "${CMAKE_CURRENT_SOURCE_DIR} /include"
116116 "${CMAKE_CURRENT_SOURCE_DIR} /include/rmm"
117117 "${CMAKE_CURRENT_SOURCE_DIR} /src"
118- "${CMAKE_CURRENT_SOURCE_DIR} /thirdparty/cnmem/include" )
118+ "${CMAKE_CURRENT_SOURCE_DIR} /thirdparty/cnmem/include"
119+ "${CMAKE_SOURCE_DIR} /thirdparty" )
119120
120121###################################################################################################
121122# - library paths ---------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function(ConfigureBench CMAKE_BENCH_NAME CMAKE_BENCH_SRC)
1010 ${CMAKE_BENCH_SRC}
1111 "${CMAKE_CURRENT_SOURCE_DIR} /synchronization/synchronization.cpp" )
1212 set_target_properties (${CMAKE_BENCH_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON )
13- target_link_libraries (${CMAKE_BENCH_NAME} benchmark benchmark_main pthread rmm )
13+ target_link_libraries (${CMAKE_BENCH_NAME} benchmark pthread rmm )
1414 set_target_properties (${CMAKE_BENCH_NAME} PROPERTIES
1515 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /gbenchmarks" )
1616endfunction (ConfigureBench)
@@ -54,4 +54,11 @@ ConfigureBench(TEST_BENCH "${TEST_BENCH_SRC}")
5454set (RANDOM_ALLOCATIONS_BENCH_SRC
5555 "${CMAKE_CURRENT_SOURCE_DIR} /random_allocations/random_allocations.cpp" )
5656
57- ConfigureBench(RANDOM_ALLOCATIONS_BENCH "${RANDOM_ALLOCATIONS_BENCH_SRC} " )
57+ ConfigureBench(RANDOM_ALLOCATIONS_BENCH "${RANDOM_ALLOCATIONS_BENCH_SRC} " )
58+ ###################################################################################################
59+ # - replay benchmark --------------------------------------------------------------------------------
60+
61+ set (REPLAY_BENCH_SRC
62+ "${CMAKE_CURRENT_SOURCE_DIR} /replay/replay.cpp" )
63+
64+ ConfigureBench(REPLAY_BENCH "${REPLAY_BENCH_SRC} " )
Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ static void BM_RandomAllocationsCnmem(State& state) {
171171}
172172BENCHMARK (BM_RandomAllocationsCnmem)->Unit(benchmark::kMillisecond );
173173
174+ BENCHMARK_MAIN ();
175+
174176/* int main(void) {
175177 std::vector<int> state(1);
176178 BM_RandomAllocationsSub(state);
You can’t perform that action at this time.
0 commit comments