File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
pkgs/development/python-modules/tinygrad Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,13 @@ buildPythonPackage rec {
7474 substituteInPlace tinygrad/runtime/ops_clang.py \
7575 --replace-fail "'clang'" "'${ lib . getExe clang } '"
7676 ''
77+ # `cuda_fp16.h` and co. are needed at runtime to compile kernels
78+ + lib . optionalString cudaSupport ''
79+ substituteInPlace tinygrad/runtime/support/compiler_cuda.py \
80+ --replace-fail \
81+ ', "-I/usr/local/cuda/include", "-I/usr/include", "-I/opt/cuda/include/"' \
82+ ', "-I${ lib . getDev cudaPackages . cuda_cudart } /include/"'
83+ ''
7784 + lib . optionalString rocmSupport ''
7885 substituteInPlace tinygrad/runtime/autogen/hip.py \
7986 --replace-fail "/opt/rocm/lib/libamdhip64.so" "${ rocmPackages . clr } /lib/libamdhip64.so" \
You can’t perform that action at this time.
0 commit comments