NVIDIA / go-nvml

Go Bindings for the NVIDIA Management Library (NVML)
Apache License 2.0
290 stars 62 forks source link

[question] can nvml be used in arm architecture? #90

Closed xigang closed 10 months ago

xigang commented 10 months ago

I wanted to use nvml on an ARM arch machine, but I got the compiler wrong.

compile log:

023-10-23 16:49:52.000 # github.com/NVIDIA/go-nvml/pkg/nvml
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:25:29: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:32:49: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:39:54: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:46:50: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:53:58: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:60:44: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:66:41: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:71:37: undefined: BrandType
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:71:48: undefined: Return
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/types_gen.go:9:10: undefined: _Ctype_struct_nvmlDevice_st
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-nvml/pkg/nvml/device.go:71:48: too many errors
2023-10-23 16:49:52.000 # github.com/NVIDIA/go-dcgm/pkg/dcgm
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:20:13: undefined: mode
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:65:33: undefined: Device
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:70:35: undefined: DeviceStatus
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:75:39: undefined: P2PLink
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:81:24: undefined: GroupHandle
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:86:27: undefined: GroupHandle
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:86:53: undefined: ProcessInfo
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:91:38: undefined: DeviceHealth
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:96:32: undefined: policyCondition
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:96:57: undefined: PolicyViolation
2023-10-23 16:49:52.000 vendor/github.com/NVIDIA/go-dcgm/pkg/dcgm/api.go:96:57: too many errors
2023-10-23 16:49:59.000 The command '/bin/sh -c ./build/build.sh' returned a non-zero code: 2

cc @klueska @elezar

elezar commented 10 months ago

@xigang which operating system are you using? We build applications that consume this library on arm systems for our multi-arch container images.

To clarify ... we build multi-arch docker images on x86-64 systems.

xigang commented 10 months ago

@xigang which operating system are you using? We build applications that consume this library on arm systems for our multi-arch container images.

Thanks for your reply. I compiled it through golang cross-platform on centos 7 system. I will try it on arm64 machine

xigang commented 10 months ago

@elezar Ask another question libnvidia_nscq-linux package now nvidia support arm architecture? I only saw the tarball with the x86_64 architecture:) https://developer.download.nvidia.com/compute/cuda/redist/libnvidia_nscq

elezar commented 10 months ago

@elezar Ask another question libnvidia_nscq-linux package now nvidia support arm architecture? I only saw the tarball with the x86_64 architecture:) https://developer.download.nvidia.com/compute/cuda/redist/libnvidia_nscq

I don't have insights into the architecture support for that library.

xigang commented 10 months ago

@elezar Ask another question libnvidia_nscq-linux package now nvidia support arm architecture? I only saw the tarball with the x86_64 architecture:) https://developer.download.nvidia.com/compute/cuda/redist/libnvidia_nscq

I don't have insights into the architecture support for that library.

okay, Thank you for your reply.

xigang commented 10 months ago

/close