Skip to content

Commit

Permalink
Add compiler_hip fixes
Browse files Browse the repository at this point in the history
@wozeparrot's fixes for compiler_hip.py
  • Loading branch information
deftdawg authored Dec 23, 2024
1 parent 2877041 commit d1d640e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/tinygrad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ buildPythonPackage rec {
substituteInPlace tinygrad/runtime/autogen/hip.py \
--replace-fail "/opt/rocm/" "${rocmPackages.clr}/"
substituteInPlace tinygrad/runtime/support/compiler_hip.py \
--replace-fail "/opt/rocm/include" "${rocmPackages.clr}/include"
substituteInPlace tinygrad/runtime/support/compiler_hip.py \
--replace-fail "/opt/rocm/llvm" "${rocmPackages.llvm.llvm}"
substituteInPlace tinygrad/runtime/autogen/comgr.py \
--replace-fail "/opt/rocm/" "${rocmPackages.rocm-comgr}/"
'';
Expand Down

0 comments on commit d1d640e

Please sign in to comment.