Unverified Commit d1d640e3 authored by deftdawg's avatar deftdawg Committed by GitHub
Browse files

Add compiler_hip fixes

@wozeparrot's fixes for compiler_hip.py
parent 2877041a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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}/"
    '';