Questions tagged [nvapi]

NVAPI is NVIDIA's core software development kit that allows direct access to NVIDIA GPUs and drivers on all windows platforms. NVAPI provides support for categories of operations that range beyond the scope of those found in familiar graphics APIs such as DirectX and OpenGL.

47 questions
12
votes
4 answers

How to get the id (memory address) of dll-function?

I want to use a function from nvapi in C# "NvAPI_DRS_EnumProfiles". I have to call QueryInterface(id) with the id of the function. Everything is working fine and i found the ids for the other functions i need on the web, but i can't find the id of…
MaxPower
  • 141
  • 1
  • 5
4
votes
2 answers

Include of Nvidia's nvapi.h causes compilation errors

I'm trying to use the NVIDIA's nvapi, and I have compilation errors I don't fully understand. Perhaps I am using the wrong compiler? #include "nvapi.h" #include int main() { printf("Hello nvapi!"); return 0; } Compilation: g++…
HEADLESS_0NE
  • 3,416
  • 4
  • 32
  • 51
4
votes
1 answer

NvAPI NVAPI_INTERFACE Missing explicit type

I'm new to c++/cli and would like to write a little managed wrapper for the nvapi. Now when trying to access some functions (e.g. NvAPI_Initialize) Visual Studio tells me that this function is not defined: #include "nvapi.h"; NvAPIStatus…
Streamline
  • 952
  • 1
  • 15
  • 23
4
votes
4 answers

Get temperature from NVidia GPU using NVAPI

I have been trying for the last few days to get the temperature of my GPU using C++ using the NVAPI i have the following code #include "stdafx.h" #include "nvapi.h" int _tmain(int argc, _TCHAR* argv[]) { NvAPI_Status ret = NVAPI_OK; int…
Shuttleu
  • 123
  • 2
  • 6
3
votes
1 answer

Register a device as Direct Mode capable? (VR Headset Developers [GameWorks VR])

Hi I'm looking for info about registering a custom display as "Direct Mode" compatible. I have been going over the "VR Headset Developers" SDK and see example code for getting existing Direct Mode displays but no docs for registering one in the…
zezba9000
  • 3,247
  • 1
  • 29
  • 51
3
votes
1 answer

How to get the number of connected displays to a gpu on Linux?

I need to determine whether a given CUDA device has displays connected or not. I know no CUDA function which does this. On Windows, I can use NVAPI to get the number of connected displays and the PCI bus/slot id of each device. Using the latter, I…
hthms
  • 853
  • 1
  • 10
  • 25
3
votes
2 answers

nvapi use of NvAPI_Stereo_SetDriverMode in d3d10

I'm currently trying to set nvapi to work in a direct mode with the function NvAPI_Stereo_SetDriverMode. According to Nvidia nvapi site (in the manual), if you would like to make a direct3d implementation you need to initialize nvpai , then set…
Alon Samuel
  • 356
  • 2
  • 8
2
votes
1 answer

Which programming interface is used by windows-drivers for switching active displays

I have a notebook with VGA port and HDMI port. Therefore I'm able to switch between three displays with max. 2 displays active the same time. I tried to find a way switching active displays programmatically using the Windows API or the .NET…
fishbone
  • 3,140
  • 2
  • 37
  • 50
2
votes
0 answers

Dynamic Super Resolution

Is there a way to turn on/off DSR setting using NVAPI? I couldn't find any setting ID in NvApiDriverSettings.h file that would correspond to Dynamic Super Resolution setting in NVIDIA Control Panel.
Shot
  • 345
  • 5
  • 19
2
votes
2 answers

Problems retrieving the Global Profile settings (shown in the Nvidia Control Panel) with NVAPI SDK

I want to use NVIDIA's NVAPI SDK to retrieve all the settings exposed in the NVIDIA Control Panel's 3D Settings' Global profile. The reference documentation is here: NVAPI Driver Settings (DRS) APIs Source Here is what I have so far, mostly basing…
HEADLESS_0NE
  • 3,416
  • 4
  • 32
  • 51
2
votes
1 answer

error LNK2019: unresolved external symbol NvAPI_GPU_GetThermalSettings referenced in

I'm trying to write a simple code for getting some information from my GPU (NVidia Geforce 760 GTX) such as temperature using NVAPI. I started with CUDA sample codes. Maybe you see these sample codes provided by NVidia. I copied one of the sample…
2
votes
1 answer

Associate OpenCL device with NVAPI device

I am trying to associate the OpenCL GPU devices with NVAPI devices which I get using NvAPI_EnumPhysicalGPUs in the Multi-GPU system. The thing is, I can use clGetDeviceInfo with CL_DEVICE_VENDOR_ID which is always unique and it is the best way, and…
Vanya
  • 411
  • 1
  • 5
  • 21
1
vote
0 answers

Custom resolution on GCP VM (with T4 GPU on Windows Server 2019)

I am currently searching for a way to set a fully custom resolution on a Windows Server 2019 VM with GPU (T4, with grid licence, and virtual workstation grid drivers) with C++. I have tried different way to achieve this, I can make this work on my…
1
vote
1 answer

NVAPI problem return INCOMPATIBLE_STRUCT_VERSION

I am using NVAPI.dll to change gpu's core clock. using NvAPI_GPU_SetPstates20 function in nvapi.dll The struct in C# for nvapi.dll is this: [StructLayout(LayoutKind.Explicit, Pack = 8)] internal struct dataStruct { [FieldOffset(0)] public…
1
vote
1 answer

the nvapi NvAPI_GPU_GetDynamicPstatesInfoEx returns NVAPI_ERROR, why?

I don't know why this api returns error, the graphics card type is "GeForce GTX 1050 Ti" NvAPI_Status nvapiStatus = NVAPI_OK; if ((nvapiStatus = NvAPI_Initialize()) != NVAPI_OK) { return 1; } NvPhysicalGpuHandle…
jinchx
  • 31
  • 4
1
2 3 4