Commit 81cb7e1d authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

magma: fix cuda 13 compatibility

parent 5f215157
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 {