Skip to content

Commit

Permalink
add a warning to ecs-init when it doesnt detect GPU devices and moves on
Browse files Browse the repository at this point in the history
  • Loading branch information
singholt committed Sep 16, 2024
1 parent 763c371 commit cdefb9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ecs-init/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ func (c *client) LoadEnvVars() map[string]string {
for envKey, envValue := range c.loadCustomInstanceEnvVars() {
if envKey == config.GPUSupportEnvVar && envValue == "true" {
if !nvidiaGPUDevicesPresent() {
log.Warn("No GPU devices found, ignoring the GPU support config")
continue
}
}
Expand Down

0 comments on commit cdefb9b

Please sign in to comment.