I am trying to build a shared library that links against cublas. The machine that I am trying to build on has the toolkit installed, but it does not have a CUDA capable card on it (I will be running on a different machine). The build machine is SUSE 11.0, the compiler is gcc 4.1 and ld version 22.214.171.124.5
I can compile the object files ok, but linking against libcublas.so gives this error:
gcc -shared -o /home/dohashi/sandbox/main/2/internal/bin.X86_64_LINUX/libmplcuda.so -L/home/dohashi/sandbox/main/2/internal/bin.X86_64_LINUX /home/dohashi/sandbox/main/2/internal/obj.X86_64_LINUX/mplcuda/dgemm.o /home/dohashi/sandbox/main/2/internal/obj.X86_64_LINUX/mplcuda/getprops.o -L/home/dohashi/cuda/lib -lcublas
/home/dohashi/cuda/lib/libcublas.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [/home/dohashi/sandbox/main/2/internal/bin.X86_64_LINUX/libmplcuda.so] Error 1
This does seem to work on other machines. Is there a conflict with the gcc/ld versions I am trying to use?