Skip to content

Commit

Permalink
[Bugfix] Fix ROCm support in CMakeLists.txt (vllm-project#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestwhedbee authored Mar 20, 2024
1 parent 9f5b645 commit 8167efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 8167efe

Please sign in to comment.