Unverified Commit 58060645 authored by Connor Baker's avatar Connor Baker Committed by GitHub
Browse files

magma: fix cuda 13 compatibility (#487064)

parents a9a996ba 81cb7e1d
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 {