NvPerf Samples NVPW_InitalizeHost failed

I just downloaded the Perf SDK and compiled the examples, but they don’t work, even when run as root and with profiling enabled for all users using a conf file with ‘NVreg_RestrictProfilingToAdminUsers=0’ in modprobe.d and rebuilding initrd. Did I miss any requirements, dependencies or is there some installation required? I’m on Ubuntu 22.04 with an RTX3080 and driver version 510.85.02.

# ./triangle
NVPERF|ERR|2022-Oct-22|16:05:48:892|InitializeNvPerf || NVPW_InitalizeHost failed
NVPERF|ERR|2022-Oct-22|16:05:48:892|VulkanAppendInstanceRequiredExtensions || NVPW_VK_Profiler_GetRequiredInstanceExtensions failed
NVPERF|ERR|2022-Oct-22|16:05:48:927|VulkanAppendDeviceRequiredExtensions || NVPW_VK_Profiler_GetRequiredDeviceExtensions failed
NVPERF|ERR|2022-Oct-22|16:05:48:968|InitializeNvPerf || NVPW_InitalizeHost failed
NVPERF|ERR|2022-Oct-22|16:05:48:968|InitializeReportGenerator || InitializeNvPerf failed
NVPERF|ERR|2022-Oct-22|16:05:48:968|GetDeviceIdentifiers || NVPW_Device_GetNames failed
NVPERF|ERR|2022-Oct-22|16:05:48:968|GetDeviceClockState || NVPW_Device_GetClockStatus() failed on (null)
NVPERF|ERR|2022-Oct-22|16:05:48:968|GetDeviceIdentifiers || NVPW_Device_GetNames failed
NVPERF|ERR|2022-Oct-22|16:05:48:968|SetDeviceClockState || NVPW_Device_SetClockSetting( Locked to rated TDP ) failed on (null)
NVPERF|ERR|2022-Oct-22|16:05:49:118|VulkanPushRange || NVPW_VK_Profiler_CommandBuffer_PushRange failed
NVPERF|ERR|2022-Oct-22|16:05:49:118|VulkanPopRange || NVPW_VK_Profiler_CommandBuffer_PopRange failed
NVPERF|ERR|2022-Oct-22|16:05:49:118|VulkanPushRange || NVPW_VK_Profiler_CommandBuffer_PushRange failed
NVPERF|ERR|2022-Oct-22|16:05:49:118|VulkanPopRange || NVPW_VK_Profiler_CommandBuffer_PopRange failed
NVPERF|ERR|2022-Oct-22|16:05:49:118|VulkanPushRange || NVPW_VK_Profiler_CommandBuffer_PushRange failed
NVPERF|ERR|2022-Oct-22|16:05:49:118|VulkanPopRange || NVPW_VK_Profiler_CommandBuffer_PopRange failed
NVPERF|ERR|2022-Oct-22|16:05:51:145|GetDeviceIdentifiers || NVPW_Device_GetNames failed
NVPERF|ERR|2022-Oct-22|16:05:51:145|SetDeviceClockState || NVPW_Device_SetClockSetting( Default ) failed on (null)

Hi wdv50jkc,
Have you set the LD_LIBRARY_PATH environment variable before running ./triangle?
This is required according to the user guide:

Thanks, I’m stupid :D
But the user guide seemed unavailable when I tried downloading it a few days ago… Now it is available, so I guess that wasn’t entirely my fault xD

Glad to hear it works. :)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.