File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
pkgs/development/python-modules/tinygrad Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,16 @@ buildPythonPackage rec {
8686 ''
8787 + lib . optionalString rocmSupport ''
8888 substituteInPlace tinygrad/runtime/autogen/hip.py \
89- --replace-fail "/opt/rocm/lib/libamdhip64.so" "${ rocmPackages . clr } /lib/libamdhip64.so" \
90- --replace-fail "/opt/rocm/lib/libhiprtc.so" "${ rocmPackages . clr } /lib/libhiprtc.so" \
89+ --replace-fail "/opt/rocm/" "${ rocmPackages . clr } /"
90+
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 } "
9196
9297 substituteInPlace tinygrad/runtime/autogen/comgr.py \
93- --replace-fail "/opt/rocm/lib/libamd_comgr.so " "${ rocmPackages . rocm-comgr } /lib/libamd_comgr.so "
98+ --replace-fail "/opt/rocm/" "${ rocmPackages . rocm-comgr } /"
9499 '' ;
95100
96101 build-system = [ setuptools ] ;
You can’t perform that action at this time.
0 commit comments