Skip to main content
added 99 characters in body
Source Link
chasep255
  • 12.2k
  • 10
  • 70
  • 121

I just had to put this at the top of my program. Not that great of a solution but it works. I guess this new version of nsight does not have eclipse automatically include the already included headers by default with cuda.

#ifdef __CDT_PARSER__ #undef __CUDA_RUNTIME_H__ #include <cuda_runtime.h> #endif 

Whats strange now is that when I do this it disables the highlighting of device code in yellow.

I just had to put this at the top of my program. Not that great of a solution but it works. I guess this new version of nsight does not have eclipse automatically include the already included headers by default with cuda.

#ifdef __CDT_PARSER__ #undef __CUDA_RUNTIME_H__ #include <cuda_runtime.h> #endif 

I just had to put this at the top of my program. Not that great of a solution but it works. I guess this new version of nsight does not have eclipse automatically include the already included headers by default with cuda.

#ifdef __CDT_PARSER__ #undef __CUDA_RUNTIME_H__ #include <cuda_runtime.h> #endif 

Whats strange now is that when I do this it disables the highlighting of device code in yellow.

Source Link
chasep255
  • 12.2k
  • 10
  • 70
  • 121

I just had to put this at the top of my program. Not that great of a solution but it works. I guess this new version of nsight does not have eclipse automatically include the already included headers by default with cuda.

#ifdef __CDT_PARSER__ #undef __CUDA_RUNTIME_H__ #include <cuda_runtime.h> #endif