mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Avoid rocm runner and dependency clash
Putting the rocm symlink next to the runners is risky. This moves the payloads into a subdir to avoid potential clashes.
This commit is contained in:
parent
41b00b9856
commit
bc13da2bfe
3 changed files with 10 additions and 6 deletions
|
@ -282,7 +282,7 @@ func AMDValidateLibDir() (string, error) {
|
|||
}
|
||||
|
||||
// If we already have a rocm dependency wired, nothing more to do
|
||||
rocmTargetDir := filepath.Join(payloadsDir, "rocm")
|
||||
rocmTargetDir := filepath.Clean(filepath.Join(payloadsDir, "..", "rocm"))
|
||||
if rocmLibUsable(rocmTargetDir) {
|
||||
return rocmTargetDir, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue