We have a Golang application use github.com/NVIDIA/go-nvml/pkg/nvml. After import containerd package, the application will shutdown and throw an error symbol lookup error.
I write a sample, which trigger the same error:
package main
import (
"github.com/NVIDIA/go-nvml/pkg/nvml"
"github.com/containerd/containerd"
)
func main() {
_, err := containerd.New(".....")
if err != nil {
println("containerd new err", err.Error())
return
}
ret := nvml.Init()
if ret != nvml.SUCCESS {
println("Unable to initialize NVML: %v", nvml.ErrorString(ret))
}
return
}
Then the error show up:
symbol lookup error: /app/test : undefined symbol: nvmlGpuInstanceGetComputeInstanceById
Same as issue:
#137