Skip to content

Commit 8a4663e

Browse files
authored
Merge pull request #323 from rapidsai/branch-0.13
[gpuCI] Auto-merge branch-0.13 to branch-0.14 [skip ci]
2 parents 7045132 + 082a99d commit 8a4663e

File tree

8 files changed

+3816
-3
lines changed

8 files changed

+3816
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 ---------------------------------------------------------------------------------

benchmarks/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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")
1616
endfunction(ConfigureBench)
@@ -54,4 +54,11 @@ ConfigureBench(TEST_BENCH "${TEST_BENCH_SRC}")
5454
set(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}")

benchmarks/random_allocations/random_allocations.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ static void BM_RandomAllocationsCnmem(State& state) {
171171
}
172172
BENCHMARK(BM_RandomAllocationsCnmem)->Unit(benchmark::kMillisecond);
173173

174+
BENCHMARK_MAIN();
175+
174176
/*int main(void) {
175177
std::vector<int> state(1);
176178
BM_RandomAllocationsSub(state);

0 commit comments

Comments
 (0)