Skip to content
Snippets Groups Projects
Commit 63e12099 authored by Thomas Müller's avatar Thomas Müller
Browse files

Remove dependency on cuBLAS / cuSolver

Facilitates smaller binary releases by not having to bundle nearly a gigabyte of DLLs
parent 988de425
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,7 @@ list(APPEND CUDA_NVCC_FLAGS "--expt-relaxed-constexpr") ...@@ -85,6 +85,7 @@ list(APPEND CUDA_NVCC_FLAGS "--expt-relaxed-constexpr")
set(TCNN_BUILD_BENCHMARK OFF) set(TCNN_BUILD_BENCHMARK OFF)
set(TCNN_BUILD_EXAMPLES OFF) set(TCNN_BUILD_EXAMPLES OFF)
set(TCNN_ALLOW_CUBLAS_CUSOLVER OFF)
add_subdirectory(dependencies/tiny-cuda-nn) add_subdirectory(dependencies/tiny-cuda-nn)
set(CMAKE_CUDA_ARCHITECTURES ${TCNN_CUDA_ARCHITECTURES}) set(CMAKE_CUDA_ARCHITECTURES ${TCNN_CUDA_ARCHITECTURES})
...@@ -314,8 +315,8 @@ if (Python_FOUND) ...@@ -314,8 +315,8 @@ if (Python_FOUND)
pybind11_extension(pyngp) pybind11_extension(pyngp)
if (MSVC) if (MSVC)
# Copy dlls needed at runtime # Copy CUDA runtime DLLs to the build directory so that Python can find them.
file(GLOB CUDA_DLLS "${CUDA_COMPILER_BIN}/cublas*.dll" "${CUDA_COMPILER_BIN}/cudart64*.dll" "${CUDA_COMPILER_BIN}/cusolver64*.dll") file(GLOB CUDA_DLLS "${CUDA_COMPILER_BIN}/cudart64*.dll")
if (CUDA_DLLS) if (CUDA_DLLS)
add_custom_command(TARGET pyngp POST_BUILD add_custom_command(TARGET pyngp POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${CUDA_DLLS} $<TARGET_FILE_DIR:pyngp> COMMAND ${CMAKE_COMMAND} -E copy ${CUDA_DLLS} $<TARGET_FILE_DIR:pyngp>
......
Subproject commit fd2058e19537a23204947fd8e48cb43b4dcb58ae Subproject commit 14053e9a87ebf449d32bda335c0363dd4f5667a4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment