File ollama-rocm-detect-supported-gpus.patch of Package ollama
--- ollama-0.7.0.orig/discover/amd_common.go
+++ ollama-0.7.0/discover/amd_common.go
@@ -25,12 +25,12 @@ func rocmLibUsable(libDir string) bool {
func GetSupportedGFX(libDir string) ([]string, error) {
var ret []string
- files, err := filepath.Glob(filepath.Join(libDir, "rocblas", "library", "TensileLibrary_lazy_gfx*.dat"))
+ files, err := filepath.Glob(filepath.Join(libDir, "rocblas", "library", "TensileLibrary_lazy_gfx*.yaml"))
if err != nil {
return nil, err
}
for _, file := range files {
- ret = append(ret, strings.TrimSuffix(strings.TrimPrefix(filepath.Base(file), "TensileLibrary_lazy_"), ".dat"))
+ ret = append(ret, strings.TrimSuffix(strings.TrimPrefix(filepath.Base(file), "TensileLibrary_lazy_"), ".yaml"))
}
return ret, nil
}