cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

lunning
Journeyman III

OpenCL Samples Build Error

Hey,guys,here comes the problem:

I rebuild the OpenCL samples in AMD APP SDK v2.9 as the referance document did, but an error encounted:


/usr/bin/ld: CMakeFiles/BinomialOptionMultiGPU.dir/BinomialOptionMultiGPU.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'

//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

make[2]: *** [cl/BinomialOptionMultiGPU/bin/x86_64/Release/BinomialOptionMultiGPU] Error 1

make[1]: *** [cl/BinomialOptionMultiGPU/CMakeFiles/BinomialOptionMultiGPU.dir/all] Error 2

make: *** [all] Error 2

My system:Ubuntu 14.04 LTS.

gcc version:4.8.2

glibc version:2.19

Has anyone else has encounted this problem?How do you solve this..

0 Likes
1 Solution
dipak
Big Boss

Hi,

As I came to know, there was an issue in the earlier APP SDK 2.9 but was fixed in 2.9.1. Cmake file did not contain flag for pthread which was fixed later. You may try the latest SDK or include the pthread flag manually to compile.

Regards,

View solution in original post

0 Likes
1 Reply
dipak
Big Boss

Hi,

As I came to know, there was an issue in the earlier APP SDK 2.9 but was fixed in 2.9.1. Cmake file did not contain flag for pthread which was fixed later. You may try the latest SDK or include the pthread flag manually to compile.

Regards,

0 Likes