# Generated by go2rpm 1.13.1 %bcond_without check %global debug_package %{nil} # https://github.com/NVIDIA/go-nvml %global goipath github.com/NVIDIA/go-nvml Version: 0.12.0.3 %global tag v0.12.0-3 %gometa -L -f %global common_description %{expand: Go Bindings for the NVIDIA Management Library (NVML).} %global golicenses LICENSE %global godocs examples CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: Go Bindings for the NVIDIA Management Library (NVML) License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check # The github.com/NVIDIA/go-nvml/gen/nvml test fails with: # # github.com/NVIDIA/go-nvml/gen/nvml # [github.com/NVIDIA/go-nvml/gen/nvml.test] # ./device.go:22:19: undefined: MemoryErrorType # ./device.go:1976:10: undefined: Device # ./device.go:2122:14: undefined: GpuInstance # ./gpm.go:19:14: undefined: GpmMetricsGetType # ./gpm.go:57:9: undefined: Device # ./vgpu.go:23:2: undefined: nvmlVgpuMetadata # ./vgpu.go:29:2: undefined: nvmlVgpuPgpuMetadata # ./lib.go:143:28: undefined: ExcludedDeviceInfo # ./lib.go:145:28: undefined: ProcessInfo_v1 # ./lib.go:146:28: undefined: ProcessInfo_v2 # ./lib.go:143:28: too many errors # # The github.com/NVIDIA/go-nvml/pkg/nvml test fails with: # /tmp/go-build738952468/b001/nvml.test: symbol lookup error: # /tmp/go-build738952468/b001/nvml.test: undefined symbol: # nvmlGpuInstanceGetComputeInstanceProfileInfoV # # These were tried both with the proprietary NVIDIA driver version 550.78 and # without. %gocheck -d gen/nvml -d pkg/nvml %endif %gopkgfiles %changelog %autochangelog