@ -1,5 +1,6 @@
{ lib , stdenv
, fetchFromGitHub
, fetchpatch
, writeScript
, rocm-comgr
} :
@ -15,6 +16,16 @@ stdenv.mkDerivation rec {
hash = " s h a 2 5 6 - S F W E G K f f h u i T E 7 I C b k E l V V 5 c l d X u 4 X b w v j b 6 L i N m i j A = " ;
} ;
patches = [
# Enable support for gfx8 again
# See the upstream issue: https://github.com/RadeonOpenCompute/ROCm/issues/1659
# And the arch patch: https://github.com/rocm-arch/rocm-arch/pull/742
( fetchpatch {
url = " h t t p s : / / r a w . g i t h u b u s e r c o n t e n t . c o m / J o h n - G e e / r o c m - a r c h / d 6 8 1 2 d 3 0 8 f e e 3 c a f 2 b 6 b b 0 1 b 4 d 1 9 f e 0 3 a 6 a 0 e 3 b d / r o c m - o p e n c l - r u n t i m e / e n a b l e - g f x 8 0 0 . p a t c h " ;
hash = " s h a 2 5 6 - 5 9 j F D I I s T T Z c N n s 9 R y M V W P R U g g n / b S l A G r k y 4 q u u 8 B 4 = " ;
} )
] ;
prePatch = ''
substituteInPlace device/comgrctx.cpp \
- - replace " l i b a m d _ c o m g r . s o " " ${ rocm-comgr } / l i b / l i b a m d _ c o m g r . s o "