merge fixes

This commit is contained in:
Inforithmics 2025-10-04 15:20:33 +02:00
parent f567cc59d4
commit 294b179688
1 changed files with 3 additions and 1 deletions

View File

@ -123,13 +123,15 @@ func GPUDevices(ctx context.Context, runners []FilteredRunnerDiscovery) []ml.Dev
go func(i int) {
defer wg.Done()
var envVar string
if devices[i].Library == "ROCm" {
if runtime.GOOS != "linux" {
envVar = "HIP_VISIBLE_DEVICES"
} else {
envVar = "ROCR_VISIBLE_DEVICES"
}
} else if devices[i].Library == "CUDA" {
envVar = "CUDA_VISIBLE_DEVICES"
} else if devices[i].Library == "VULKAN" {
} else if devices[i].Library == "Vulkan" {
envVar = "GGML_VK_VISIBLE_DEVICES"
}