Merge pull request #298077 from ulrikstrid/ulrikstrid--rocm-6-ollama-2
ollama: Fix rocm runtime issues
This commit is contained in:
commit
efbd32472c
1 changed files with 2 additions and 1 deletions
|
@ -165,7 +165,8 @@ goBuild ((lib.optionalAttrs enableRocm {
|
|||
# expose runtime libraries necessary to use the gpu
|
||||
mv "$out/bin/ollama" "$out/bin/.ollama-unwrapped"
|
||||
makeWrapper "$out/bin/.ollama-unwrapped" "$out/bin/ollama" \
|
||||
--suffix LD_LIBRARY_PATH : '/run/opengl-driver/lib:${lib.makeLibraryPath runtimeLibs}'
|
||||
--suffix LD_LIBRARY_PATH : '/run/opengl-driver/lib:${lib.makeLibraryPath runtimeLibs}' '' + lib.optionalString enableRocm ''\
|
||||
--set-default HIP_PATH ${pkgs.rocmPackages.meta.rocm-hip-libraries}
|
||||
'';
|
||||
|
||||
ldflags = [
|
||||
|
|
Loading…
Reference in a new issue