gpt4 book ai didi

c++ - Linux 中 NSight Eclipse 中的 CUDA 调试

转载 作者:太空宇宙 更新时间:2023-11-04 05:51:26 24 4
gpt4 key购买 nike

我想在 Linux 中调试一些 CUDA 代码。但是,我遇到了一个错误,该错误与 X11 无法使用 Eclipse Nsight 与 NSight 可视化调试器共享 GPU 相关。然而今天我遇到了这个。

3.4.2. Single-GPU Debugging with the Desktop Manager Running

CUDA-GDB can be used to debug CUDA applications on the same GPU that is running the desktop GUI.

Note: This is a BETA feature available on Linux and supports devices with SM3.5 compute capability. There are two ways to enable this functionality:

Use the following command: set cuda software_preemption on Export the following environment variable: CUDA_DEBUGGER_SOFTWARE_PREEMPTION=1 Either of the options above will activate software preemption. These options must be set prior to running the application. When the GPU hits a breakpoint or any other event that would normally cause the GPU to freeze, CUDA-GDB releases the GPU for use by the desktop or other applications. This enables CUDA-GDB to debug a CUDA application on the same GPU that is running the desktop GUI, and also enables debugging of multiple CUDA applications context-switching on the same GPU.

Note: The options listed above are ignored for GPUs with less than SM3.5 compute capability.

从这里:http://docs.nvidia.com/cuda/cuda-gdb/index.html#single-gpu-debugging-with-desktop-manager-running

问题:

因此,在我向项目经理询问新的计算 SM3.5 计算能力显卡之前,有人可以验证它是否正常工作吗?

效果好吗?

我的平台是Centos 7.0,Intel 64位。

最佳答案

我拿到了卡,无论如何在 CentOS 7 中它运行良好。当它进入内核时,速度会有些慢,但它做了我想要的事情。我可以看到内核内部的变量值。

有一件事是,截至今天 18/2/2016,我在调试内核时无法按“停止”。它挂起整个系统。哦,好吧,它确实说这是一个测试版功能。

关于c++ - Linux 中 NSight Eclipse 中的 CUDA 调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35358499/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com