Skip to content

Commit

Permalink
[Minor Fix] Use cupy-cuda11x in CUDA 11.8 build (vllm-project#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxu2048 authored Mar 13, 2024
1 parent f96935f commit 2878ca7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,12 @@ def get_requirements() -> List[str]:
else:
with open(get_path("requirements.txt")) as f:
requirements = f.read().strip().split("\n")
if nvcc_cuda_version <= Version("11.8"):
# replace cupy-cuda12x with cupy-cuda11x for cuda 11.x
for i in range(len(requirements)):
if requirements[i].startswith("cupy-cuda12x"):
requirements[i] = "cupy-cuda11x"
break
return requirements


Expand Down

0 comments on commit 2878ca7

Please sign in to comment.