Skip to content

Commit d1d640e

Browse files
authored
Add compiler_hip fixes
@wozeparrot's fixes for compiler_hip.py
1 parent 2877041 commit d1d640e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/development/python-modules/tinygrad/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ buildPythonPackage rec {
8888
substituteInPlace tinygrad/runtime/autogen/hip.py \
8989
--replace-fail "/opt/rocm/" "${rocmPackages.clr}/"
9090
91+
substituteInPlace tinygrad/runtime/support/compiler_hip.py \
92+
--replace-fail "/opt/rocm/include" "${rocmPackages.clr}/include"
93+
94+
substituteInPlace tinygrad/runtime/support/compiler_hip.py \
95+
--replace-fail "/opt/rocm/llvm" "${rocmPackages.llvm.llvm}"
96+
9197
substituteInPlace tinygrad/runtime/autogen/comgr.py \
9298
--replace-fail "/opt/rocm/" "${rocmPackages.rocm-comgr}/"
9399
'';

0 commit comments

Comments
 (0)