diff --git a/worker/opencl_info.go b/worker/opencl_info.go index 7731109..32134b5 100644 --- a/worker/opencl_info.go +++ b/worker/opencl_info.go @@ -20,6 +20,9 @@ func GetAvailableDevices() (shared.DeviceMap, error) { for _, platform := range platforms { devices, err := platform.GetDevices(opencl.DeviceTypeAll) if err != nil { + if err == opencl.ErrDeviceNotFound { + continue + } return nil, err } @@ -39,5 +42,9 @@ func GetAvailableDevices() (shared.DeviceMap, error) { } } + if len(devs) == 0 { + return nil, opencl.ErrDeviceNotFound + } + return devs, nil }