Nsight to develop
CUDA program, you can use
profile function to profile the program:
You can also toggle the
profile view in the right corner:
The steps to import an existing
CUDA project (who uses
Nsight are as following:
CUDA C/C++ Project:
Use default location“, and select the root directory of your project.
Build location in
Properties to points to the
(3) After building successfully, right click project:
Run As ->
Local C/C++ Application, then select which binary you want to execute.
Nsight as an IDE to develop
CUDA programs, sometimes, the program may require
C++11 support, otherwise errors like this will occur:
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^ make: *** [src/subdir.mk:20: src/cuHE_opt.o] Error 1
C++11 support, you need to do following configurations:
(1) Right-click the project, and select the last item:
Enable C++11 support (-std=c++11).