We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 013f0c4 commit 4d835d7Copy full SHA for 4d835d7
cmake/utils.cmake
@@ -359,11 +359,7 @@ function (define_gpu_extension_target GPU_MOD_NAME)
359
# Don't use `TORCH_LIBRARIES` for CUDA since it pulls in a bunch of
360
# dependencies that are not necessary and may not be installed.
361
if (GPU_LANGUAGE STREQUAL "CUDA")
362
- if ("${CUDA_CUDA_LIB}" STREQUAL "")
363
- set(CUDA_CUDA_LIB "${CUDA_CUDA_LIBRARY}")
364
- endif()
365
- target_link_libraries(${GPU_MOD_NAME} PRIVATE ${CUDA_CUDA_LIB}
366
- ${CUDA_LIBRARIES})
+ target_link_libraries(${GPU_MOD_NAME} PRIVATE CUDA::cudart CUDA::cuda_driver)
367
else()
368
target_link_libraries(${GPU_MOD_NAME} PRIVATE ${TORCH_LIBRARIES})
369
endif()
0 commit comments