NVCC CUDA cross compiling cannot find "-lcudart"

mib1413456

I have installed CUDA 5.0 and NVCC on my Ubuntu virtual machine and have had problems compiling even a basic CUDA C program. The error is as follows:

user@ubuntu:~/CUDA$ nvcc helloworld.cu -o helloworld.o -target-cpu-arch=ARM -ccbin=/usr/bin/arm-linux-gnueabi-gcc-4.6 --machine=32
/usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld: skipping incompatible /usr/local/cuda-5.0/bin/../lib/libcudart.so when searching for -lcudart
/usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libcudart.so when searching for -lcudart
/usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld: cannot find -lcudart
collect2: ld returned 1 exit status

I have tried to research this problem and came across this link: skipping incompatible libcudart.so when searching for -lcudart

And so I followed the advice that was offered on that link and added

 /usr/local/cuda-5.0/lib64 

and

/usr/local/cuda-5.0/lib 

to my LD_LIBRARY_PATH environment variable and now this is the result of the

  user@ubuntu:~/CUDA$ echo $LD_LIBRARY_PATH 
  /usr/local/cuda-5.0/lib:/usr/local/cuda-5.0/lib64
  user@ubuntu:~/CUDA$ 

However, the problem still persists, please help.

mib1413456

It turns out that the CUDA installer I was using from NVIDIA will not allow me to cross compile for my CARMA board, but it has to be downloaded from the manufacturer SECO.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

"/usr/bin/ld: cannot find -lcudart"

From Dev

"/usr/bin/ld: cannot find -lcudart"

From Dev

UNIX: Cannot find file or directory after cross-compiling a binary that uses shared object files

From Dev

Cross compiling MongoDB C++ driver for ARM. Cannot find Boost Libraries

From Dev

Compiling with nvcc and g++

From Dev

CUDA: nvcc without CUDA toolkit

From Dev

CUDA: nvcc without CUDA toolkit

From Dev

NVCC ignoring CUDA code?

From Dev

nvcc with avx support cannot find gcc builtin intrinsics

From Dev

After installing CUDA on Tegra Tx1 and sourcing the bashrc it will not find NVCC

From Dev

CUDA nvcc building chain of libraries

From Dev

CUDA - nvcc -G - if not working properly

From Dev

Cannot link against core library when cross compiling

From Dev

(Java) "error: cannot find symbol" when compiling?

From Dev

Cannot find Qt files when compiling

From Dev

Java cannot find symbol during compiling

From Dev

Cannot find libgmp when compiling GCC 4.5.2

From Dev

Make cannot find present cross compiler

From Dev

Nvcc -v fails but CUDA 7.0 installed and nvcc present

From Dev

Compiling using nvcc gives "No such file or directory"

From Dev

nvcc fatal : Cannot find compiler 'cl.exe' in PATH although Visual Studio 12.0 is added to PATH

From Dev

A strange issue of CUDA compiling

From Dev

Cross compiling Qt 5

From Dev

Cross compiling for Raspberry PI

From Dev

Cross-compiling Python

From Dev

Cross compiling libSDL

From Dev

Cross compiling libSDL

From Dev

Cross compiling libSDL

From Dev

Trouble with Cross Compiling Asterisk