Compile Issues

I am crashing out on a compile with the following error:

nvcc fatal : Value ‘sm_10’ is not defined for option ‘gpu-architecture’

Why is this happening?

As I recall support for sm_10 was deprecated/removed from CUDA 6.

ubuntu@tegra-ubuntu:~/$ nvcc --help
--gpu-architecture <gpu architecture name>
Allowed values for this option:  'compute_20','compute_30','compute_32',

Check the makefile and remove sm_10.

I edited the Makefile and changed it to sm_20 and it compiled!

Dear all,

I found this thread, because I have the same problem as Pyrex.
However I do not know where to find the Makefile, where the corresponding line can be commented out or changed to omit the -arch=sm_13 definition.

In the following the full error message:

[Kraut@Wzmbx001 build44]$ make
Scanning dependencies of target log4lama
[ 0%] Building CXX object logging/CMakeFiles/log4lama.dir/GenLogger.cpp.o
[ 1%] Building CXX object logging/CMakeFiles/log4lama.dir/GenLoggerCreator.cpp.o
[ 1%] Building CXX object logging/CMakeFiles/log4lama.dir/Level.cpp.o
[ 2%] Building CXX object logging/CMakeFiles/log4lama.dir/Logger.cpp.o
[ 2%] Building CXX object logging/CMakeFiles/log4lama.dir/LoggerProvider.cpp.o
[ 3%] Building CXX object logging/CMakeFiles/log4lama.dir/SourceLocation.cpp.o
Linking CXX shared library
[ 3%] Built target log4lama
[ 3%] Building NVCC (Device) object lama/cuda/CMakeFiles/cuda_compile.dir//./
nvcc fatal : Value ‘sm_13’ is not defined for option ‘gpu-architecture’
CMake Error at (message):
Error generating

make[2]: *** [lama/cuda/CMakeFiles/cuda_compile.dir/./] Error 1
make[1]: *** [lama/cuda/CMakeFiles/amacuda.dir/all] Error 2
make: *** [all] Error 2

Thanks a log for any hints. I am stuck on this right now.
All help is highly


Hi KingKraut,

The makefiles should be existing within the each sample code directory you wish to build.


Hi kayccc,

thanks a lot for the hint.
I found the respective lines in file lama/Cmake/Modules/SetNVCCFlags.cmake.
There the value 13 needs to be deleted since it is not supported by newer CUDA versions.