mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-26 13:59:45 +00:00
Address ineffectual assignment error
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
22ee5eb64f
commit
46cdf8c41a
2
Makefile
2
Makefile
@ -58,7 +58,7 @@ $(EXAMPLE_TARGETS): example-%:
|
||||
GOOS=$(GOOS) go build ./examples/$(*)
|
||||
|
||||
all: check test build binary
|
||||
check: assert-fmt lint vet
|
||||
check: $(CHECK_TARGETS)
|
||||
|
||||
# Apply go fmt to the codebase
|
||||
fmt:
|
||||
|
@ -28,6 +28,10 @@ func main() {
|
||||
log.Infof("Starting device discovery with NVML")
|
||||
|
||||
d, err := discover.NewNVMLServer("")
|
||||
if err != nil {
|
||||
log.Errorf("Error creating NVML Server: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
devices, err := d.Devices()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user