Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
f8f10718
Unverified
Commit
f8f10718
authored
Dec 02, 2025
by
Daniel Hiltgen
Committed by
GitHub
Dec 02, 2025
Browse files
CUDA: verify CC is supported by target library (#13298)
parent
d3e0a0de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
ml/device.go
ml/device.go
+3
-5
No files found.
ml/device.go
View file @
f8f10718
...
@@ -509,11 +509,9 @@ func GetVisibleDevicesEnv(l []DeviceInfo) map[string]string {
...
@@ -509,11 +509,9 @@ func GetVisibleDevicesEnv(l []DeviceInfo) map[string]string {
// to crash at inference time and requires deeper validation before we include
// to crash at inference time and requires deeper validation before we include
// it in the supported devices list.
// it in the supported devices list.
func
(
d
DeviceInfo
)
NeedsInitValidation
()
bool
{
func
(
d
DeviceInfo
)
NeedsInitValidation
()
bool
{
// At this time the only library we know needs a 2nd pass is ROCm since
// ROCm: rocblas will crash on unsupported devices.
// rocblas will crash on unsupported devices. We want to find those crashes
// CUDA: verify CC is supported by the version of the library
// during bootstrap discovery so we can eliminate those GPUs before the user
return
d
.
Library
==
"ROCm"
||
d
.
Library
==
"CUDA"
// tries to run inference on them
return
d
.
Library
==
"ROCm"
}
}
// Set the init validation environment variable
// Set the init validation environment variable
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment