NVCC Cuda 5.0 on Ubuntu 12.04 /usr/lib/libudt.so file format not recognized -
i trying install cuda 5.0 on ubuntu 12.04 parallel programming. need use nvcc cross compilation feature, therefore, after installing cuda 5.0 (add path also), having errors when using nvcc cross compilation.
this command want run:
nvcc -gencode arch=compute_20,code=sm_20 -xptxas -v test.cu -o test -dlinux -dia32 -target-cpu-arch=arm -ccbin=/usr/bin/arm-linux-gnueabihf-g++-4.6 -m32 -o3 -xcompiler -fopenmp -i/usr/local/include -l/usr/local/lib -i/usr/include/thrust -ludt -lstdc++ -lpthread -lm -l/usr/local/cuda-5.0/lib -l/usr/local/cuda-5.0/lib -i/usr/local/cuda-5.0/include -i/usr/local/cuda-5.0/include
initially, fails error message:
ptxas info : 0 bytes gmem ptxas info : compiling entry function '_z5hellopcpi' 'sm_20' ptxas info : function properties _z5hellopcpi 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : used 5 registers, 40 bytes cemm[0] /usr/lib/gcc/arm-linux-gnueabifh/4.6/../../../../arm-linux-gnueabifh/bin/ld:can not find -ludt collect2: ld returned 1 exit status
then 1 of friend told me, error message means need install udt, tried installing udt.
sudo apt-get install libudt-dev
it did solve error, however, new error appears:
ptxas info : 0 bytes gmem ptxas info : compiling entry function '_z5hellopcpi' 'sm_20' ptxas info : function properties _z5hellopcpi 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : used 5 registers, 40 bytes cmem[0] /usr/lib/libudt.so: file not recognized: file format not recognized collect2: ld returned 1 exit status
i searched online, people suggest should update gcc , g++, did that, not working.
for more information, libraries have installed (system path added):
gcc, g++, cuda 5.0, ia32-libs, libudt-dev, freeglut3-dev, build-essential, libx11-dev, libxmu-dev, libxi-dev, libgl1-mesa-glx,libglu1-mesa,libglu1-mesa-dev
this question may duplicated this, having different problem here.
hope can share me solutions problem, appreciate because have suffered days.
i think @kevindtimm , @talonmies mentioned correct: arm support not exist until cuda5.5. downloading cuda5.0 official website , arm g++ cannot work together.
for case, project requires cuda5.0 , arm because developing on carma board. have use cuda5.0 carma board, , arm compiling code before transfer file carma board.
therefore, else working on projects using carma board, here tips you: not download cuda5.0 official website, download: cuda-linux-armv7-gnueabihf-cross-compilation-rel-5.0.47-15134578.run website instead: url
this support cuda5.0 , arm together. however, mentioned, arm here cross compilation purposes, code compiled in host ubuntu vm can executed on carma board.
Comments
Post a Comment