CI: adds ubuntu1804 build with benchmarks
Signed-off-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
This commit is contained in:
parent
32b87b8b00
commit
d4cfe34009
@ -131,6 +131,7 @@ stages:
|
||||
- export PATH=$PWD/.gitlab:$PATH
|
||||
- SCCACHE_IDLE_TIMEOUT=0 sccache --start-server
|
||||
- sccache --show-stats
|
||||
- .gitlab/ci/config/google_benchmarks.sh
|
||||
- "cmake --version"
|
||||
- "cmake -V -P .gitlab/ci/config/gitlab_ci_setup.cmake"
|
||||
- "ctest -VV -S .gitlab/ci/ctest_configure.cmake"
|
||||
|
27
.gitlab/ci/config/google_benchmarks.sh
Executable file
27
.gitlab/ci/config/google_benchmarks.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -xe
|
||||
|
||||
readonly version="v1.5.2"
|
||||
readonly tarball="$version.tar.gz"
|
||||
readonly url="https://github.com/google/benchmark/archive/$tarball"
|
||||
readonly sha256sum="dccbdab796baa1043f04982147e67bb6e118fe610da2c65f88912d73987e700c"
|
||||
readonly install_dir="$HOME/gbench"
|
||||
|
||||
if ! [[ "$VTKM_SETTINGS" =~ "benchmarks" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd "$HOME"
|
||||
|
||||
echo "$sha256sum $tarball" > gbenchs.sha256sum
|
||||
curl --insecure -OL "$url"
|
||||
sha256sum --check gbenchs.sha256sum
|
||||
tar xf "$tarball"
|
||||
|
||||
mkdir build
|
||||
mkdir "$install_dir"
|
||||
|
||||
cmake -GNinja -S benchmark* -B build -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
|
||||
cmake --build build
|
||||
cmake --install build --prefix "$install_dir"
|
@ -64,6 +64,7 @@ foreach(option IN LISTS options)
|
||||
|
||||
elseif(benchmarks STREQUAL option)
|
||||
set(VTKm_ENABLE_BENCHMARKS "ON" CACHE STRING "")
|
||||
set(ENV{CMAKE_PREFIX_PATH} "$ENV{HOME}/gbench")
|
||||
|
||||
elseif(mpi STREQUAL option)
|
||||
set(VTKm_ENABLE_MPI "ON" CACHE STRING "")
|
||||
|
@ -16,7 +16,7 @@ build:ubuntu1804_gcc9:
|
||||
CC: "gcc-9"
|
||||
CXX: "g++-9"
|
||||
CMAKE_BUILD_TYPE: Debug
|
||||
VTKM_SETTINGS: "tbb+openmp+mpi+shared+hdf5"
|
||||
VTKM_SETTINGS: "benchmarks+tbb+openmp+mpi+shared+hdf5"
|
||||
|
||||
test:ubuntu1804_gcc9:
|
||||
tags:
|
||||
@ -56,7 +56,7 @@ build:ubuntu1804_gcc7:
|
||||
CC: "gcc-7"
|
||||
CXX: "g++-7"
|
||||
CUDAHOSTCXX: "g++-7"
|
||||
VTKM_SETTINGS: "cuda+turing+mpi+64bit_floats+no_virtual"
|
||||
VTKM_SETTINGS: "benchmarks+cuda+turing+mpi+64bit_floats+no_virtual"
|
||||
|
||||
test:ubuntu1804_gcc7:
|
||||
tags:
|
||||
@ -202,7 +202,7 @@ build:ubuntu1804_kokkos:
|
||||
variables:
|
||||
CMAKE_GENERATOR: "Ninja"
|
||||
CMAKE_BUILD_TYPE: Release
|
||||
VTKM_SETTINGS: "kokkos+turing+static+64bit_floats"
|
||||
VTKM_SETTINGS: "benchmarks+kokkos+turing+static+64bit_floats"
|
||||
|
||||
test:ubuntu1804_kokkos:
|
||||
tags:
|
||||
|
Loading…
Reference in New Issue
Block a user