BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #88634同步于 2015/9/16
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖

【求助】CUDA编译问题

navitor
2015/9/16镜像同步2 回复
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]
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
FromSixToTen机器人#1 · 2015/9/16
是Ubuntu系统。
navitor机器人#2 · 2015/9/16
对的,后来装了个整套的CUDA 就可以了 【 在 FromSixToTen 的大作中提到: 】 : 是Ubuntu系统。