py-torch: conflict with newer cuda (#43969)

This commit is contained in:
Adam J. Stewart 2024-05-03 03:47:33 +02:00 committed by GitHub
parent 578dd18b34
commit ae171f8b83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,8 +242,9 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
# Optional dependencies
with default_args(type=("build", "link", "run")):
# cmake/public/cuda.cmake
depends_on("cuda@11:", when="@2:+cuda")
depends_on("cuda@10.2:", when="@1.11:1+cuda")
# https://github.com/pytorch/pytorch/issues/122169
depends_on("cuda@11:12.3", when="@2:+cuda")
depends_on("cuda@10.2:12.3", when="@1.11:1+cuda")
# https://discuss.pytorch.org/t/compiling-1-10-1-from-source-with-gcc-11-and-cuda-11-5/140971
depends_on("cuda@10.2:11.4", when="@1.10+cuda")
depends_on("cuda@9.2:11.4", when="@1.6:1.9+cuda")