-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvml library is not getting initialized on ubuntu22.04 #116
Comments
Do you have the NVIDIA driver installed? Where is the |
yes @klueska I have libnvidia-ml.so.1 in my linux device ( ubunut22.04) root@ubuntu2204:/tmp# locate libnvidia-ml.so.1 /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 |
@sujithapallapothu the error message: "Error initializing NVML" does not seem to exist in the Could you give more information about your environment -- including the output of The code you show seems to come from one of the examples included in the repository, could you check out the latest version off |
@elezar yes you are right, I have taken code from examples and wrote into my sample.go file which looks like below
where hasNvidiaGPUs() function checks nvidia graphical card exists or not. I built above code using go build -tags netgo -ldflags '-s -extldflags "-static"' sample.go and then excuted go binary which results in Error initializing NVML:ERROR_LIBRARY_NOT_FOUND more details about my env is as follows Ubuntu version: 22.04 Please help further on this. Thankyou |
Note that when we build applications on linux that use this library we specify:
It could be that the static flag is causign the |
When Im executing above go code, getting below error in my linux device
Error initializing NVML:ERROR_LIBRARY_NOT_FOUND
Can someone please suggest why nvml package is not getting initialized even nvml library is getting imported and do exists in above go file ??
Spec of my linux device follows as:
Ubuntu version: 22.04
Graphical card: 61:00.0 3D controller: NVIDIA Corporation GA100 [A100 PCIe 40GB] (rev a1)
Nvidia Driver version: 550.54.14
CUDA Version: 12.4
Go version: go1.21.9 linux/amd64
The text was updated successfully, but these errors were encountered: