我在wsl2上的ubuntu系统上编写CUDA程序代码,正打算使用Nsight Compute分析工具去分析CUDA程序写的怎么样。
根据[用Nsight Compute测试remote端的CUDA性能(windows测linux)](https://www.cnblogs.com/iwanna/p/12546685.html)在windows上的nsight compute工具使用ssh连接ubuntu子系统。
但是各种报错:
以及
折腾了一晚上,以为是电脑驱动的问题,卸了又装,装了又卸。后面又换了到了服务器上,但是在服务器又有新的错误。
大体意思是权限的问题,后面我又看到官方的博文要允许所有用户访问 GPU 性能计数器
后面wsl2就可以愉快地使用Nsight Compute了。但是服务器那个The user does not have permission to access NVIDIA GPU Performance Counters on the target device 0. For instructions on enabling permissions and to get more information see https://developer.nvidia.com/ERR_NVGPUCTRPERM
还没解决…