Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.
This repository was archived by the owner on Oct 27, 2023. It is now read-only.

error: "undefined symbol " when import "containerd" package #137

@xiaozhouX

Description

@xiaozhouX

We have a Golang application use gpu-monitoring-tools/bindings/go/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/gpu-monitoring-tools/bindings/go/nvml"
	"github.com/containerd/containerd"
	
)

func main() {
	_, err := containerd.New(".....")
	if err != nil {
		println("containerd new err", err.Error())
		return
	}
	err = nvml.Init()
	if err != nil {
		println("nvml init err", err.Error())
		return
	}
	return
}

Then the error show up:
symbol lookup error: /app/test : undefined symbol: nvmlGpuInstanceGetComputeInstanceById

Interestingly, if I remove containerd import, the error disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions