CUDA3.1 on Fedora13
来源:互联网 发布:网络棋牌输赢原理 编辑:程序博客网 时间:2024/04/24 13:52
Download SDK driver and SDK from http://developer.nvidia.com/object/cuda_3_1_downloads.html
devdriver_3.1_linux_64_256.40.run
cudatoolkit_3.1_linux_64_fedora12.run
gpucomputingsdk_3.1_linux.run
OS:Fedora 13
Linux hpc.leadtek.com.cn 2.6.34.6-47.fc13.x86_64 #1 SMP Fri Aug 27 08:56:01 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
There are three samples in SDK cannot be compiled:
bandwidthTest MonteCarloMultiGPU simpleMultiGPU
[frank@hpc bandwidthTest]$ make
/usr/bin/ld: obj/x86_64/release/bandwidthTest.cu.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [../../bin/linux/release/bandwidthTest] Error 1
I searched such error in Google, and find one article:
http://lists.fedoraproject.org/pipermail/devel/2010-January/129152.html:
The original reference to 'pthread_cancel' in 'string.o' was a *weak* and
*undefined* reference with no symbol version specified:
-----
$ readelf --all string.o
Symbol table '.symtab' contains 20 entries:
19: 0000000000000000 0 NOTYPE WEAK DEFAULT UND pthread_cancel
No version information found in this file.
-----
The statically-bound reference in 'string' (without "-ldb") remains a
*weak undefined* reference with no symbol version specified:
-----
$ g++ -o string string.o
$ readelf --all string
Symbol table '.dynsym' contains 12 entries:
8: 0000000000000000 0 NOTYPE WEAK DEFAULT UND pthread_cancel
Symbol table '.symtab' contains 73 entries:
65: 0000000000000000 0 NOTYPE WEAK DEFAULT UND pthread_cancel
Version symbols section '.gnu.version' contains 12 entries:
008: 0 (*local*) 3 (GLIBCXX_3.4) 5 (GCC_3.0) 4 (CXXABI_1.3)
-----
With -ldb, then the statically-bound reference has been associated with
GLIBC_2.2.5:
-----
$ g++ -o string.db string.o -ldb-4.7 # done on Fedora 12, not Fedora 13.
$ readelf --all string.db
Symbol table '.dynsym' contains 17 entries:
10: 00000000004007a0 0 FUNC WEAK DEFAULT UND pthread_cancel at GLIBC_2.2.5 (4)
Symbol table '.symtab' contains 73 entries:
65: 00000000004007a0 0 FUNC WEAK DEFAULT UND pthread_cancel@@GLIBC_2.2.5
Version symbols section '.gnu.version' contains 17 entries:
008: 3 (GLIBCXX_3.4) 6 (GCC_3.0) 4 (GLIBC_2.2.5) 1 (*global*)
-----
By itself, the association between *weak undefined* pthread_cancel and
GLIBC_2.2.5 is innocuous. That is what the static linker saw. The problem
comes when code starts believing that GLIBC_2.2.5 is a requirement for
*weak undefined* pthread_cancel. In today's rawhide for Fedora 13,
both the static linker /usr/bin/ld and the runtime linker ld-linux.so
make this error.
*weak undefined* means "I accept *any* definition, or even *no* definition."
Both binutils and glibc must fix their errors of insisting on any particular
symbol version for a *weak undefined* symbol.
- CUDA3.1 on Fedora13
- CUDA3.1 On Fedora 12
- Linux Ubuntu下面安装CUDA3.1攻略
- fedora13下安装QT 5.1.1
- CUDA3.1 X32 + Windows 7 32bit + Visual Studio 2005 + Visual assist安装指南
- 1分钟制作fedora启动U盘,成功安装fedora13
- 等待fedora13
- VS2008完美配置CUDA3.2
- cuda3.2 SDK sample reductaion
- 在Fedora13/14,CentOS或RHEL5.5/6上安装Eclipse SDK 3.6.1
- Fedora13 安装Oracle11gR2数据库
- fedora13 硬盘安装步骤
- FEDORA13安装图文教程
- fedora13 硬盘安装步骤
- fedora13 的安装指导
- Fedora13 中 tftp配置
- Fedora13 Samba配置
- fedora13 安装 mysql
- glassfish安装
- myeclipse6.6最新注册码
- 站在巨人头上营销
- Linux下Java环境的安装和配置 (CentOS+JDK1.5.0_11)
- Ubuntu 10.04 安装配置LAMP以及php开发环境 Eclipse PDT的安装
- CUDA3.1 on Fedora13
- 关于C++ const 的全面总结
- typedef & define
- ATAPI device hdc:Error: Not ready -- (Sense key=0x02) (reserved error code) -- (asc-0x00, ascq=0x00)
- Session Cache Server 及Tomcat集群架构之一:架构概念设计
- 生成缩略图,图片水印文字即学即用
- 笔记。
- 项目运行时Java heap space(OutOfMemoryError)
- dlopen() : undefined symbol