magma: fix cuda 13 compatibility

This commit is contained in:
Gaetan Lepage
2026-02-04 22:34:34 +00:00
parent 5f21515773
commit 81cb7e1d32
+10
View File
@@ -138,6 +138,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-Dfzq2gqoLSByCLWV5xvY/lXZeVa/yQ67lDSoIAa9jUU=";
})
]
++ lib.optionals cudaSupport [
# Fixes:
# error: 'struct cudaDeviceProp' has no member named 'clockRate'
# Context: https://github.com/icl-utk-edu/magma/issues/61
(fetchpatch {
name = "fix-cuda13-compat.patch";
url = "https://github.com/icl-utk-edu/magma/commit/235aefb7b064954fce09d035c69907ba8a87cbcd.patch";
hash = "sha256-i9InbxD5HtfonB/GyF9nQhFmok3jZ73RxGcIciGBGvU=";
})
]
++ lib.optionals rocmSupport [
# TODO: Drop both these patches on next magma release
(fetchpatch {