Unverified Commit 739c350c authored by 陈序's avatar 陈序 Committed by GitHub
Browse files

[Minor Fix] Use cupy-cuda11x in CUDA 11.8 build (#3256)

parent ba8dc958
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment