Determining if the CUDA compiler works failed with the following output: Change Dir: /home/sebas/test/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_e5edf/fast" /usr/bin/make -f CMakeFiles/cmTC_e5edf.dir/build.make CMakeFiles/cmTC_e5edf.dir/build make[1]: Entering directory '/home/sebas/test/CMakeFiles/CMakeTmp' Building CUDA object CMakeFiles/cmTC_e5edf.dir/main.cu.o /opt/cuda/bin/nvcc -x cu -c /home/sebas/test/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_e5edf.dir/main.cu.o nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). Linking CUDA device code CMakeFiles/cmTC_e5edf.dir/cmake_device_link.o /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e5edf.dir/dlink.txt --verbose=1 /opt/cuda/bin/nvcc -Xcompiler=-fPIC -Wno-deprecated-gpu-targets -shared -dlink CMakeFiles/cmTC_e5edf.dir/main.cu.o -o CMakeFiles/cmTC_e5edf.dir/cmake_device_link.o Linking CUDA executable cmTC_e5edf /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e5edf.dir/link.txt --verbose=1 g++ CMakeFiles/cmTC_e5edf.dir/main.cu.o CMakeFiles/cmTC_e5edf.dir/cmake_device_link.o -o cmTC_e5edf -L"/opt/cuda/lib64/stubs" -L"/opt/cuda/lib64" -lcudadevrt -lcudart_static -lrt -lpthread -ldl /usr/bin/ld: CMakeFiles/cmTC_e5edf.dir/main.cu.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_e5edf.dir/build.make:117: cmTC_e5edf] Error 1 make[1]: Leaving directory '/home/sebas/test/CMakeFiles/CMakeTmp' make: *** [Makefile:126: cmTC_e5edf/fast] Error 2