Failed to execute MI command: -gdb-set cuda software_preemption off

Hi,

So far I am moving my c code to NSight Eclipse Edition Version: 5.5.0 on OS C 10.8.5 with Builtin Intel HD GPU VRAM = 288 MB
and NVIDIA GeForce GT 330M 512 MB

I am compiling the c files as is now and will convert them to cu and develop gpu kernels later.

Trying to debugging the legacy code, I get this message:

Error in final launch sequence
Failed to execute MI command:
-gdb-set cuda software_preemption off
Error message from debugger back end:
Undefined set cuda command: "software_preemption off".  Try "help set cuda".
Undefined set cuda command: "software_preemption off".  Try "help set cuda".

I tried running from the command line

set cuda software_preemption on

and no errors, I wasn’t sure how to set CUDA_LAUNCH_BLOCKING , CUDA_MEMCHECK , and CUDBG_ENABLE_PREEMPTION_DEBUGGING to 1 as listed:

http://docs.nvidia.com/cuda/cuda-toolkit-release-notes/#debugger-api-5-5

So I used them as environment variables, and it didn’t work.

I appreciate any help, thank you in advance,

This looks like cuda-gdb older then 5.5 is picked up by Nsight 5.5.

How do you launch Nsight? Unfortunately, currently Nsight cannot be launched by double-clicking the Nsight.app in Finder, please use “nsight” command from the Terminal to start Nsight.

Please also note that it is not possible to debug on Mac laptops. Apple implementation of switchable graphics does not allow the debugger to obtain exclusive access to CUDA GPU, which is essential for debugging…

thank you very much. I had the debugger working on cu files on mac, but without kernels, but don’t remember whether it was CUDA GDB, or Create Process Launcher,

I will try centOS on a virtual-box then.

One more question please, will it help mac to have another GPU, or is cuda-gdb definitely not running on mac at all?

thanks again

Hi,
cuda-gdb will work if you had Mac Pro with multiple GPUs. Integrated GPUs on the laptop do not count as Mac OS X decides when it uses integrated or discreet GPU.

thank you very much,

One more question please. I had Eclipse Java EE IDE for Web Developers, Version: Juno Service Release 2 used for Java Projects, before installing NSight.

After having NSight, Juno Eclipse is having strange interface problems when using the Java perspective, but works alright to an extent with C/C++ perspective using Java Projects.

I tried to use NSight for both Java and C development, but I con’t define the JRE System library in the build bath, it give me:

An error has occurred. See error log for more details.java.lang.NullPointerException

thanks,

Nsight EE should not interfere with Juno Eclipse unless you point them to the same workspace. In that case there might be some slight issues, mostly coming from missing UI elements (e.g. Nsight would not be able to open Java perspective or Juno would not find some Nsight-specific views). Those problems should be UI-only and fixable by closing unavailable perspective or using Window->Reset Perspective.

Re: I tried to use NSight for both Java and C development, but I con’t define the JRE System library in the build bath, it give me:

What is in the ${workspace}/.metadata/.log? How did you install JDT into Nsight?