cuda: add 12.4.0, 12.3.2, 12.3.1 and 12.2.2 (#42748)
Add conflicts to ginkgo and petsc to avoid build failures with cuda@12.4 Co-authored-by: pauleonix <pauleonix@users.noreply.github.com>
This commit is contained in:
		| @@ -25,6 +25,48 @@ | ||||
| 
 | ||||
| preferred_ver = "11.8.0" | ||||
| _versions = { | ||||
|     "12.4.0": { | ||||
|         "Linux-aarch64": ( | ||||
|             "b12bfe6c36d32ecf009a6efb0024325c5fc389fca1143f5f377ae2555936e803", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux_sbsa.run", | ||||
|         ), | ||||
|         "Linux-x86_64": ( | ||||
|             "e6a842f4eca9490575cdb68b6b1bb78d47b95a897de48dee292c431892e57d17", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run", | ||||
|         ), | ||||
|         "Linux-ppc64le": ( | ||||
|             "ef9a712daccf2805b4422f2301ff0eaa5c3ad41ef5d64b8626773bce7d1f41fe", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux_ppc64le.run", | ||||
|         ), | ||||
|     }, | ||||
|     "12.3.2": { | ||||
|         "Linux-aarch64": ( | ||||
|             "761b84e292b94c4d330f445d36326dfff90a418e909fb0baf3d6f03e24106d08", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux_sbsa.run", | ||||
|         ), | ||||
|         "Linux-x86_64": ( | ||||
|             "24b2afc9f770d8cf43d6fa7adc2ebfd47c4084db01bdda1ce3ce0a4d493ba65b", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux.run", | ||||
|         ), | ||||
|         "Linux-ppc64le": ( | ||||
|             "b876936fc80de10653523eadd846065db346b38ba6296f2d365772259cb2f198", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux_ppc64le.run", | ||||
|         ), | ||||
|     }, | ||||
|     "12.3.1": { | ||||
|         "Linux-aarch64": ( | ||||
|             "bce6bb8b293c33c3ed0c1b65120c70587cc29e1b94ea8679ebb14c32b3858b5e", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.3.1/local_installers/cuda_12.3.1_545.23.08_linux_sbsa.run", | ||||
|         ), | ||||
|         "Linux-x86_64": ( | ||||
|             "b73d18ccd5ff85bbae32b425dfb82729612ede65b07a37cd5e2b574190614038", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.3.1/local_installers/cuda_12.3.1_545.23.08_linux.run", | ||||
|         ), | ||||
|         "Linux-ppc64le": ( | ||||
|             "9da7e6e2beadc933aab73de79a84e133ddf03226371d3d7af83502748a978568", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.3.1/local_installers/cuda_12.3.1_545.23.08_linux_ppc64le.run", | ||||
|         ), | ||||
|     }, | ||||
|     "12.3.0": { | ||||
|         "Linux-aarch64": ( | ||||
|             "9a8fb8acf46b88faf0d711bda3149e1706efbbae02fcb40ab72addfd0e9ce5df", | ||||
| @@ -39,6 +81,20 @@ | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.3.0/local_installers/cuda_12.3.0_545.23.06_linux_ppc64le.run", | ||||
|         ), | ||||
|     }, | ||||
|     "12.2.2": { | ||||
|         "Linux-aarch64": ( | ||||
|             "4113a15e6b27a02638c72edeb5f89de4c9ea312febba12fc4cefff2edc882268", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux_sbsa.run", | ||||
|         ), | ||||
|         "Linux-x86_64": ( | ||||
|             "2b39aae3e7618d9f59a3c8fa1f1bc61f29c0b0e0df75fb05076badb352952ef2", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.run", | ||||
|         ), | ||||
|         "Linux-ppc64le": ( | ||||
|             "18848278e7f2bd4b4481f5665633d7e3d46e9a562d175d5ff278218188b01342", | ||||
|             "https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux_ppc64le.run", | ||||
|         ), | ||||
|     }, | ||||
|     "12.2.1": { | ||||
|         "Linux-aarch64": ( | ||||
|             "a9ae6bd02684c7acfb229484368bf2691d592767ce1aed10ae9aed92c81b9f09", | ||||
|   | ||||
| @@ -100,6 +100,9 @@ class Ginkgo(CMakePackage, CudaPackage, ROCmPackage): | ||||
|         "+sycl", when="@:1.4.0", msg="For SYCL support, please use Ginkgo version 1.4.0 and newer." | ||||
|     ) | ||||
| 
 | ||||
|     # Probably fixed in NVIDIA/cccl#1528 which hopefully comes with the next CUDA release | ||||
|     conflicts("^cuda@12.4.0", when="+cuda", msg="CCCL 2.3 bug causes build failure.") | ||||
| 
 | ||||
|     # https://github.com/ginkgo-project/ginkgo/pull/1524 | ||||
|     patch("ginkgo-sycl-pr1524.patch", when="@1.7.0 +sycl %oneapi@2024:") | ||||
| 
 | ||||
|   | ||||
| @@ -234,6 +234,10 @@ def check_fortran_compiler(self): | ||||
|     depends_on("lapack") | ||||
|     depends_on("mpi", when="+mpi") | ||||
|     depends_on("cuda", when="+cuda") | ||||
|     # Fixed in https://gitlab.com/petsc/petsc/-/merge_requests/7354 | ||||
|     conflicts( | ||||
|         "^cuda@12.4:", when="@:3.20.5 +cuda", msg="Deprecation in CCCL 2.3 causes build failure." | ||||
|     ) | ||||
|     depends_on("hip", when="+rocm") | ||||
| 
 | ||||
|     with when("+rocm"): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pauleonix
					pauleonix