首页 > 解决方案 > 我已经成功安装了 Cuda SDK 并使用 HelloWorld 测试了编译器然后我打开了 Nsight 但无法打开 Nsight

问题描述

我已经成功安装了 Cuda SDK 并使用 HelloWorld 测试了编译器。然后我打开了 Nsight 但 Nsight 打不开。

我得到的错误:

nsight
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
CompileCommand: exclude java/lang/reflect/Array.newInstance
Gtk-Message: 16:52:26.477: Failed to load module "canberra-gtk-module"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.eclipse.osgi.storage.FrameworkExtensionInstaller (file:/usr/local/cuda-10.2/libnsight/plugins/org.eclipse.osgi_3.10.1.v20140909-1633.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.storage.FrameworkExtensionInstaller
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Gtk-Message: 16:52:34.530: Failed to load module "canberra-gtk-module"

标签: nsight

解决方案


我遇到了同样的问题,我发现的所有关于安装各种 canberra-gtk-whatever 软件包的帖子都没有解决它。最终解决的问题是安装 OpenJdk8,然后使用该 vm 启动 nsight。显然 Nvidia 需要那个确切的虚拟机并且没有记录它。来自 Nvida 的典型不良文档。

我还安装了 Oracle JDK 11,并且只使用 OpenJdk8 来运行洞察力。


推荐阅读