undefined reference to symbol 'cudaStreamCreate'

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)

undefined reference to symbol 'cudaStreamCreate'

Postby Linuxboy » Thu Dec 08, 2011 1:13 pm

I've got error when build tests

/usr/bin/ld: ../lib/libmagma.a(dsygvd.o): undefined reference to symbol 'cudaStreamCreate'
/usr/bin/ld: note: 'cudaStreamCreate' is defined in DSO /usr/local/cula/lib64/libcudart.so.4 so try adding it to the linker command line
/usr/local/cula/lib64/libcudart.so.4: could not read symbols: Invalid operation
collect2: выполнение ld завершилось с кодом возврата 1
make: *** [testing_dgetrf_gpu_f] Ошибка 1
Posts: 15
Joined: Tue Nov 29, 2011 9:24 pm

Re: undefined reference to symbol 'cudaStreamCreate'

Postby fletchjp » Sun Dec 11, 2011 6:54 am

I think this is a problem with linking and the solution is the double linking of magma:

Code: Select all
-lmagma -lmagmablas -lmagma

I am sure I have seen the same problem reported somewhere else and cannot find the thread.

I hope this helps.

Posts: 203
Joined: Mon Dec 27, 2010 7:29 pm

Return to User discussion

Who is online

Users browsing this forum: No registered users and 3 guests