Skip to content

Commit

Permalink
Merge pull request #799 from aprokop/require_benchmark_1.5
Browse files Browse the repository at this point in the history
Require benchmark 1.5.4, update nightly containers to Ubuntu 22.04
  • Loading branch information
dalg24 committed Dec 28, 2022
2 parents 9f1f2d3 + 9f1deb6 commit 9799ca8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stages:
extends: .LoadModules
stage: buildDependencies
script:
- git clone https://github.com/google/benchmark.git -b v1.4.1 &&
- git clone https://github.com/google/benchmark.git -b v1.6.0 &&
cd benchmark &&
mkdir build && cd build &&
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/ccsopen/proj/csc333/benchmark.install .. &&
Expand Down
8 changes: 4 additions & 4 deletions .jenkins/nightly.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ pipeline {

stage('Build') {
parallel {
stage('CUDA-11.4.2') {
stage('CUDA-11.7.1') {
agent {
docker {
image 'nvidia/cuda:11.4.2-devel-ubuntu20.04'
image 'nvidia/cuda:11.7.1-devel-ubuntu22.04'
label 'NVIDIA_Tesla_V100-PCIE-32GB && nvidia-docker'
}
}
Expand Down Expand Up @@ -47,10 +47,10 @@ pipeline {
}
}
}
stage('ROCm-5.2') {
stage('ROCm-5.4') {
agent {
docker {
image 'rocm/dev-ubuntu-20.04:5.2-complete'
image 'rocm/dev-ubuntu-22.04:5.4-complete'
label 'AMD_Radeon_Instinct_MI100 && rocm-docker'
args '--device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --env HIP_VISIBLE_DEVICES=${HIP_VISIBLE_DEVICES}'
}
Expand Down
5 changes: 2 additions & 3 deletions benchmarks/bvh_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
set(POINT_CLOUDS_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/benchmarks/point_clouds)
set(UNIT_TESTS_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/test)

# We require version 1.4.0 or higher but the format used by Google benchmark is
# wrong and thus, we cannot check the version during the configuration step.
find_package(benchmark REQUIRED)
find_package(benchmark 1.5.4 REQUIRED)
message(STATUS "Found benchmark: ${benchmark_DIR} (version \"${benchmark_VERSION}\")")

find_package(Threads REQUIRED)

Expand Down
14 changes: 5 additions & 9 deletions benchmarks/bvh_driver/benchmark_registration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,8 @@ void BM_construction(benchmark::State &state, Spec const &spec)
std::chrono::duration<double> elapsed_seconds = end - start;
state.SetIterationTime(elapsed_seconds.count());
}
// In Benchmark 1.5.0, it could be rewritten as
// state.counters["rate"] = benchmark::Counter(
// spec.n_values, benchmark::Counter::kIsIterationInvariantRate);
// Benchmark 1.4 does not support kIsIterationInvariantRate, however.
state.counters["rate"] = benchmark::Counter(
spec.n_values * state.iterations(), benchmark::Counter::kIsRate);
spec.n_values, benchmark::Counter::kIsIterationInvariantRate);
}

template <typename ExecutionSpace, class TreeType>
Expand Down Expand Up @@ -260,7 +256,7 @@ void BM_radius_search(benchmark::State &state, Spec const &spec)
state.SetIterationTime(elapsed_seconds.count());
}
state.counters["rate"] = benchmark::Counter(
spec.n_queries * state.iterations(), benchmark::Counter::kIsRate);
spec.n_queries, benchmark::Counter::kIsIterationInvariantRate);
}

template <typename ExecutionSpace, class TreeType>
Expand Down Expand Up @@ -298,7 +294,7 @@ void BM_radius_callback_search(benchmark::State &state, Spec const &spec)
state.SetIterationTime(elapsed_seconds.count());
}
state.counters["rate"] = benchmark::Counter(
spec.n_queries * state.iterations(), benchmark::Counter::kIsRate);
spec.n_queries, benchmark::Counter::kIsIterationInvariantRate);
}

template <typename ExecutionSpace, class TreeType>
Expand Down Expand Up @@ -333,7 +329,7 @@ void BM_knn_search(benchmark::State &state, Spec const &spec)
state.SetIterationTime(elapsed_seconds.count());
}
state.counters["rate"] = benchmark::Counter(
spec.n_queries * state.iterations(), benchmark::Counter::kIsRate);
spec.n_queries, benchmark::Counter::kIsIterationInvariantRate);
}

template <typename ExecutionSpace, class TreeType>
Expand Down Expand Up @@ -370,7 +366,7 @@ void BM_knn_callback_search(benchmark::State &state, Spec const &spec)
state.SetIterationTime(elapsed_seconds.count());
}
state.counters["rate"] = benchmark::Counter(
spec.n_queries * state.iterations(), benchmark::Counter::kIsRate);
spec.n_queries, benchmark::Counter::kIsIterationInvariantRate);
}

template <typename ExecutionSpace, typename TreeType>
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.sycl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ RUN BOOST_VERSION=1.72.0 && \
# Install Google Benchmark support library
ENV BENCHMARK_DIR=/opt/benchmark
RUN SCRATCH_DIR=/scratch && mkdir -p ${SCRATCH_DIR} && cd ${SCRATCH_DIR} && \
git clone https://github.com/google/benchmark.git -b v1.5.0 && \
git clone https://github.com/google/benchmark.git -b v1.5.4 && \
cd benchmark && \
mkdir build && cd build && \
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=${BENCHMARK_DIR} -D BENCHMARK_ENABLE_TESTING=OFF .. && \
Expand Down

0 comments on commit 9799ca8

Please sign in to comment.