CUDA2.2 In Fedora11 X86_64
来源:互联网 发布:三菱plc编程软件下载 编辑:程序博客网 时间:2024/05/29 02:37
Install CUDA 2.2 on Fedora11 x86_64.
There are some errors during compiling:
make[1]: Entering directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/dct8x8'
/usr/local/cuda/bin/../include/math_functions.h:404: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:409: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
/usr/include/bits/mathinline.h:36: error: inline function ‘int __signbitf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:42: error: inline function ‘int __signbit(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:48: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:434: error: inline function ‘int __signbitl(long double)’ cannot be declared weak
make[1]: *** [obj/release/dct8x8.cu.o] Error 255
make[1]: Leaving directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/dct8x8'
make: *** [projects/dct8x8/Makefile.ph_build] Error 2
Solution:
Edit /usr/local/cuda/include/math_functions.h, comment line 404, 409, and 434.
Another error:
make -C projects/threadMigration/
make[1]: Entering directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/threadMigration'
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
make[1]: *** [../../bin/linux/release/threadMigration] Error 1
make[1]: Leaving directory `/home/lrshdemo/NVIDIA_CUDA_SDK/projects/threadMigration'
make: *** [projects/threadMigration/Makefile.ph_build] Error 2
Solution:
Execute the command by root:
ln -s /usr/lib64/nvidia/libcuda.so /usr/lib64/libcuda.so
make[1]: Entering directory `/home/frank/NVIDIA_CUDA_SDK/projects/simpleTextureDrv'
simpleTextureDrv.cpp:61: warning: deprecated conversion from string constant to ‘char*’
simpleTextureDrv.cpp:62: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/features.h:376,
from /usr/local/cuda/bin/../include/host_config.h:68,
from /usr/local/cuda/bin/../include/cuda_runtime.h:45,
from <command-line>:0:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[1]: *** [data/simpleTexture_kernel.cubin] Error 255
make[1]: Leaving directory `/home/frank/NVIDIA_CUDA_SDK/projects/simpleTextureDrv'
make: *** [projects/simpleTextureDrv/Makefile.ph_build] Error 2
Solution:
Install glibc-devel(i586)
- CUDA2.2 In Fedora11 X86_64
- CUDA2.2-原理之存储器访问
- Fedora11安装Oracle10g_10.2
- Visual Studio 2008 + Assist 的CUDA2.2编译环境设置
- 在Fedora11(2.6.30.8-64.fc11.x86_64)上安装VirtualBox3.0.6
- Install Google Chrome in Slackware 13.1 x86_64
- Fedora11,北漂
- fedora11 常用命令
- Nvidia CUDA2.0 CPU PhysX
- openSUSE12.2-x86_64初体验
- CUDA2.3+VS2005开发环境配置
- CUDA2.1-原理之索引与warp
- 将Fedora11 Live安装到2GB U盘上 以及初始配置
- Fedora11即将正式发布
- fedora11飞鸽传书解决之道
- fedora11 没有声音 解决办法
- Yum install mplayer [Fedora11]
- Fedora11声卡不能外放
- struct初始化字段含有指针
- SQL查询月、天、周、年
- struts入门必须熟悉的流程
- 搜索引擎技术之反向索引设计(inverted index):
- 游戏中CPU使用率的控制
- CUDA2.2 In Fedora11 X86_64
- MySQL实现表中取出随机数据
- 面向工业自动化软件设计(初谈)
- JSP中的输入输出流
- 想看看吗?
- 学好C++必须要看的经典书籍
- foreach循环
- 呵呵
- Java HashSet和TreeSet的区别