-
Notifications
You must be signed in to change notification settings - Fork 22
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
Cannot call legacy functions #46
Comments
edit: nevermind, I didn't see that you've already enabled the legacy-functions feature 😅 |
@lharri73 pub fn device_count(&self) -> Result<u32, NvmlError> {
let sym = nvml_sym(self.lib.nvmlDeviceGetCount_v2.as_ref())?;
unsafe {
let mut count: c_uint = mem::zeroed();
nvml_try(sym(&mut count))?;
Ok(count)
}
} Meaning it is already trying to call the v2 version of the function ( The error you shared implies you were trying to call |
Closing for inactivity. If you're still having issues feel free to comment 🙂 |
device_count()
panics withvalue: FailedToLoadSymbol("/lib64/libnvidia-ml.so: undefined symbol: nvmlDeviceGetComputeRunningProcesses_v3")
nvml_wrapper version: 0.9.0 (with legacy-functions feature)
nvidia driver version: 470.161.03
Is something else required to call the v2 version of this function?
The text was updated successfully, but these errors were encountered: