Support users which want static builds of nvbench (#140)

This commit is contained in:
Robert Maynard
2023-10-17 13:55:30 -04:00
committed by GitHub
parent 39b2770b62
commit 0eab168664
5 changed files with 35 additions and 34 deletions

View File

@@ -1,6 +1,5 @@
# 3.20.1 required for rapids-cmake
# 3.21.0 required for NVBench_ADD_DEPENDENT_DLLS_TO_* (MSVC only)
cmake_minimum_required(VERSION 3.20.1)
# 3.23.1 required for rapids-cmake
cmake_minimum_required(VERSION 3.23.1)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CUDA_STANDARD 17)
@@ -29,6 +28,8 @@ if (${CUDAToolkit_VERSION} VERSION_LESS 11.3)
set(cupti_default OFF)
endif()
option(BUILD_SHARED_LIBS "Build NVBench as a shared library" ON)
option(NVBench_ENABLE_NVML "Build with NVML support from the Cuda Toolkit." ON)
option(NVBench_ENABLE_CUPTI "Build NVBench with CUPTI." ${cupti_default})