-
Notifications
You must be signed in to change notification settings - Fork 37
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
NVAPI libnvidia-api.so.1 relevance #100
Comments
Small correction: the library file is called We only know about functions that are included in https://download.nvidia.com/XFree86/nvapi-open-source-sdk/R520-OpenSource.tar SDK which hasn't been updated to 525 release yet. The program I used to check which functions are available is this: #include "./nvapi.h"
#include "./nvapi_interface.h"
#include <dlfcn.h>
#include <iostream>
#include <memory>
int main()
{
auto nvapi = std::unique_ptr<void, decltype(&dlclose)>{dlopen("libnvidia-api.so.1", RTLD_NOW), dlclose};
auto nvapi_QueryInterface = reinterpret_cast<void *(*)(NvU32)>(dlsym(nvapi.get(), "nvapi_QueryInterface"));
for (auto &i : nvapi_interface_table)
{
if (nvapi_QueryInterface(i.id))
std::cout << " Found: " << i.func << std::endl;
else
std::cerr << "NOT Found: " << i.func << std::endl;
}
} Might be useful to check again once NVIDIA releases R525 NVAPI SDK (build with |
Ah, thanks, corrected, that was a genuine typo ;). |
I am going to check which functions are exported on windows out of curiosity, maybe linux only has a small number of them |
Nvidia released R525 SDK sometime earlier this week and the only new function that can be found in |
Thanks for the heads up! |
Regarding That said, we cannot unfortunately throw out the existing DXVK/Vulkan based sysinfo things and replace it with enumerating physical GPU's using |
Another thing to look out for is how to properly correlate DXGI adapters / Assuming that we have a PC with, let's say, four RTX 4090 GPUs (and a private power plant for them, of course), each one with the same full name, (We'd also lose |
Yeah, that's indeed a blocking issue for now. I had hoped we can correlate by |
The NVIDIA Linux driver ships
libnvidia-api.so.1
since driver version 525. This library seems to be the Linux counterpart ofnvapi64.dll
from Windows. Lets use this issue to discuss ideas and its relevance to this project.The version from the 525 driver contains the following methods (based on the function pointers described in the 520 NVAPI Open Source SDK) (thanks @Saancreed )
The text was updated successfully, but these errors were encountered: