mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +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/$(*)
|
GOOS=$(GOOS) go build ./examples/$(*)
|
||||||
|
|
||||||
all: check test build binary
|
all: check test build binary
|
||||||
check: assert-fmt lint vet
|
check: $(CHECK_TARGETS)
|
||||||
|
|
||||||
# Apply go fmt to the codebase
|
# Apply go fmt to the codebase
|
||||||
fmt:
|
fmt:
|
||||||
|
@ -28,6 +28,10 @@ func main() {
|
|||||||
log.Infof("Starting device discovery with NVML")
|
log.Infof("Starting device discovery with NVML")
|
||||||
|
|
||||||
d, err := discover.NewNVMLServer("")
|
d, err := discover.NewNVMLServer("")
|
||||||
|
if err != nil {
|
||||||
|
log.Errorf("Error creating NVML Server: %v", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
devices, err := d.Devices()
|
devices, err := d.Devices()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user