解决nsight system远程连接Linux系统分析报The user running Nsight Systems does not have permission to access NVIDIA GPU Performance Counters on the target device的问题

1. 环境

  • 操作系统:
    • host: win11
    • dst: ubuntu 22.04
  • nsight system版本:2025.5.1.121

2. 问题描述

nsight system远程连接后进行分析报错:

GPU Metrics: The user running Nsight Systems does not have permission to access NVIDIA GPU Performance Counters on the target device. For more details, please visit https://developer.nvidia.com/ERR_NVGPUCTRPERM - API function: NVPW_Device_PeriodicSampler_GetCounterAvailability(¶ms) - Error code: 17 - Source function: static std::vector QuadDDaemon::EventSource::GpuMetricsBackend::Impl::CounterConfig::GetCounterAvailabilityImage(size_t) - Source location: /build/agent/work/20a3cfcd1c25021d/QuadD/Target/quadd_d/quadd_d/jni/EventSource/GpuMetricsBackend.cpp:698

3. 解决

这个权限问题主要是你ssh连接到目标主机的用户没有权限去访问cuda的一些底层的库,最简单直接的方式,就是你使用nsight system登录远程主机的时候使用root进行登录就行了。如果目标主机是Ubuntu系统,给root设置一下密码,ssh设置允许root用户登录即可。

(完)

posted @ 2025-10-11 17:02  大师兄啊哈  阅读(14)  评论(0)    收藏  举报