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: *** [cl/BinomialOptionMultiGPU/bin/x86_64/Release/BinomialOptionMultiGPU] Error 1
make: *** [cl/BinomialOptionMultiGPU/CMakeFiles/BinomialOptionMultiGPU.dir/all] Error 2
make: *** [all] Error 2
My system:Ubuntu 14.04 LTS.
Has anyone else has encounted this problem?How do you solve this..
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.