Skip to content

Commit

Permalink
gpu: better logging for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sharanyad committed Dec 26, 2018
1 parent 1364ce5 commit 2b5b98a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent/gpu/nvidia_gpu_manager_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

"github.com/aws/amazon-ecs-agent/agent/ecs_client/model/ecs"
"github.com/aws/aws-sdk-go/aws"
"github.com/cihub/seelog"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -77,6 +78,8 @@ func (n *NvidiaGPUManager) Initialize() error {
nvidiaGPUInfo.lock.RUnlock()
n.SetGPUIDs(gpuIDs)
n.SetDevices()
} else {
seelog.Error("Config for GPU support is enabled, but GPU information is not found; continuing without it")
}
return nil
}
Expand Down

0 comments on commit 2b5b98a

Please sign in to comment.