解决办法:
在Ubuntu 18.04系统上运行Nsight需要预先安装JDK 8
参考NVIDIA论坛
https://forums.developer.nvidia.com/t/nsight-eclipse-error-not-opening/76174/17
sudo apt-get install openjdk-8-jre
cd /usr/local/cuda-1x.x/libnsight
./nsight -vm /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
cuda-1x.x这里的x根据自己的cuda版本号更改
To run Nsight on Ubuntu 18.04/10 you need to install JDK 8 and run Nsight with -vm option. For more details please check.
https://docs.nvidia.com/cuda/nsight-eclipse-edition-getting-started-guide/index.html#unique_1662116712