Few questions on nvcc compilation time.
(1) Every time when I compile my code, nvcc generates warning messages for four times. This is quite strange. I don’t know the reason for this.
The compiler command that I used is the following
/usr/local/cuda/bin/nvcc -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" -m64 --compiler-options -fno-strict-aliasing -I. -I/usr/local/cuda/include -I../../common/inc -I../../../shared//inc -DUNIX -O2 -o obj/x86_64/release/units.cu.o -c units.cu
Any reason on why I get the same warning messages for four times ?
(2) I also see that the compilation time is quite high when compared with pure c++/g++ compilation.
For example, if I take a test.cpp file and rename it as test.cu file, and compile it with nvcc the compilation time is about 5 times more.
Is there anyway to reduce the compilation time using nvcc ?