[Bugfix] Fix ROCm support in CMakeLists.txt (#3534)
This commit is contained in:
parent
ba8ae1d84f
commit
80e254834d
@ -51,7 +51,7 @@ append_cmake_prefix_path("torch" "torch.utils.cmake_prefix_path")
|
||||
|
||||
# Ensure the 'nvcc' command is in the PATH
|
||||
find_program(NVCC_EXECUTABLE nvcc)
|
||||
if (NOT NVCC_EXECUTABLE)
|
||||
if (CUDA_FOUND AND NOT NVCC_EXECUTABLE)
|
||||
message(FATAL_ERROR "nvcc not found")
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user