NVAPI not working on non-GRID driver

We use machines on AWS using NVidia Tesla T4 graphics cards. On AWS, we have access to NVIdia’s GRID drivers and we were using NVAPI on these machines to set a custom resolution. We are trying to remove the dependency to GRID drivers as NVAPI does not depend on these. When we try to install the regular end user drivers, the resolution change code starts to fail and the following functions return non-success statuses:

  • NvAPI_DISP_GetDisplayIdByDisplayName
  • NvAPI_DISP_EnumCustomDisplay
  • NvAPI_EnumPhysicalGPUs
    However, NvAPI_Initialize returns a success response

By the way;
The OS we’re using is Windows Server 2019
GRID driver version is 451.48
Regular end-user driver’s version is 461.33

Dear @hasancanyasar ,
Thank you for contacting NVIDIA developer forum. We have sent your query to the respective team for details and we will get back to you on same.

NVAPI Forum Moderator

Dear @hasancanyasar ,

Our team has reviewed your concern. We need more information to be collected for further investigation.
We request you to open a new ticket so that the technical team can follow up with you on the reported issue.
Please refer to the section ‘ASK US A QUESTION’ on the page NVIDIA Customer Support Resources for opening the ticket. Please mention “Redirected from the NVAPI developer forum” and also provide the link to query on the NVAPI forum while filing the support ticket.

NVAPI Forum Moderator