-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Closed
Copy link
Labels
module: buildBuild system issuesBuild system issuesmodule: cudaRelated to torch.cuda, and CUDA support in generalRelated to torch.cuda, and CUDA support in generaltriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
libtroch_cuda.so is missing in TORCH_LIBRARIES and TORCH_CUDA_LIBRARIES in PyTorch CMake if build flag BUILD_SHARED_LIBS is enabled, for example
find_package(Torch REQUIRED)
# libtorch_cuda.so is missing in TORCH_CUDA_LIBRARIES and TORCH_LIBRARIES
message(STATUS ${TORCH_CUDA_LIBRARIES} ${TORCH_LIBRARIES})The impact is the user can't find libtorch_cuda.so via PyTorch CMake. They need to find it by themselves. This is not a friendly user experience.
Metadata
Metadata
Assignees
Labels
module: buildBuild system issuesBuild system issuesmodule: cudaRelated to torch.cuda, and CUDA support in generalRelated to torch.cuda, and CUDA support in generaltriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module