Skip to content

Commit

Permalink
KvikIO_EXPORT_NVCOMP
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Nov 3, 2024
1 parent b8c9101 commit ab789f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ option(KvikIO_BUILD_EXAMPLES "Configure CMake to build examples" ON)
option(KvikIO_BUILD_TESTS "Configure CMake to build tests" ON)
option(KvikIO_REMOTE_SUPPORT "Configure CMake to build with remote IO support" ON)
option(KvikIO_CUDA_SUPPORT "Configure CMake to build with CUDA support" ON)
option(KvikIO_EXPORT_NVCOMP "Export NVCOMP as a dependency" ON)

# ##################################################################################################
# * conda environment -----------------------------------------------------------------------------
Expand Down
6 changes: 5 additions & 1 deletion python/kvikio/cmake/thirdparty/get_nvcomp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ set(KVIKIO_USE_PROPRIETARY_BINARY ON)
function(find_and_configure_nvcomp)

include(${rapids-cmake-dir}/cpm/nvcomp.cmake)
rapids_cpm_nvcomp(USE_PROPRIETARY_BINARY ${KVIKIO_USE_PROPRIETARY_BINARY})
set(export_args)
if(KvikIO_EXPORT_NVCOMP)
set(export_args BUILD_EXPORT_SET kvikio-exports INSTALL_EXPORT_SET kvikio-exports)
endif()
rapids_cpm_nvcomp(${export_args} USE_PROPRIETARY_BINARY ${KVIKIO_USE_PROPRIETARY_BINARY})

# Per-thread default stream
if(TARGET nvcomp AND PER_THREAD_DEFAULT_STREAM)
Expand Down
3 changes: 3 additions & 0 deletions python/libkvikio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ unset(kvikio_FOUND)

set(KvikIO_BUILD_EXAMPLES OFF)
set(KvikIO_BUILD_TESTS OFF)
if(USE_NVCOMP_RUNTIME_WHEEL)
set(KvikIO_EXPORT_NVCOMP OFF)
endif()
set(CUDA_STATIC_RUNTIME ON)

add_subdirectory(../../cpp kvikio-cpp)
Expand Down

0 comments on commit ab789f5

Please sign in to comment.