[求助】CUDA编译问题
mac安装了CUDA toolkit和SDK,打算编译SDK里面的例程,在make的时候出现了以下错误
make
make -C src/3DFD/
/usr/include/stdio.h(274): error: attribute "deprecated" does not take arguments
/usr/include/stdio.h(389): error: attribute "deprecated" does not take arguments
2 errors detected in the compilation of "/tmp/tmpxft_00002a5e_00000000-4_3dfd.cpp1.ii".
make[1]: *** [obj/x86_64/release/3dfd.cu.o] Error 255
make: *** [src/3DFD/Makefile.ph_build] Error 2
gcc版本是4.9.3
sdk版本是cudasdk_2.3a
我把gcc版本改成4.2.1后错误变成
make
make -C src/3DFD/
couldn't understand kern.osversion `14.1.0'
couldn't understand kern.osversion `14.1.0'
couldn't understand kern.osversion `14.1.0'
/usr/local/cuda/bin/../include/math_functions.h(444): error: declaration is incompatible with "int __cuda___isinf(double)"
(387): here
/usr/local/cuda/bin/../include/math_functions.h(446): error: declaration is incompatible with "int __cuda___isnan(double)"
(392): here
求解em2