I installed CUDA 3.0 version to compile something. I am doing it on some server where I don't have permission to install extra stuff (I installed it in my home directory). This is the compilation command:
/home/susers/s218176/cuda3/cuda/bin/nvcc -O3 -use_fast_math -DUSING_CUDA -DKERNEL_BAL -D_NOT_USING_MPI -I/home/susers/s218176/cuda3/cuda/include/ -I/home/susers/s218176/cuda3/cuda/samples/common/inc/ -I/home/susers/s218176/cuda3/C/common/inc/ -L/home/susers/s218176/cuda3/C/lib/ -L/home/susers/s218176/cuda3/cuda/lib64/ -lcutil_x86_64 -lcudart -lm --ptxas-options=-v -gencode=arch=compute_13,code=sm_13 -gencode=arch=compute_13,code=compute_13 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_20,code=compute_20 mcgpu.cu -o mpgpu.x
And I got some errors:
/usr/include/x86_64-linux-gnu/bits/byteswap.h(47): error: identifier "__builtin_bswap32" is undefined
/usr/include/x86_64-linux-gnu/bits/byteswap.h(111): error: identifier "__builtin_bswap64" is undefined
/usr/include/c++/4.8/cstdlib(178): error: identifier "__int128" is undefined
/usr/include/c++/4.8/cstdlib(179): error: identifier "__int128" is undefined
kernel.cu(175): error: identifier "clock64" is undefined
kernel.cu(187): error: identifier "__ballot" is undefined
6 errors detected in the compilation of "/tmp/tmpxft_00007068_00000000-6_mcgpu.compute_13.cpp1.ii".
I read that its because my gcc version is incompatible with this version of CUDA. Is there possibility to do a downgrade (or something like install in home directory and to tell nvcc to use this ver.) without full permissions? Please help.
Edit: Already installed g++:
/usr/bin/g++ /usr/bin/g++-4.8
Kernel version:
Linux supermicro 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux