>>106482084
If I do that with CUDA 12.x I get an "unsupported gpu architecture" error in this step:
# cmake -B build -DGGML_CUDA=ON
[...]
-- Check for working CUDA compiler: /home/user/anaconda3/envs/llamacpp/bin/nvcc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCUDACompiler.cmake:59 (message):
The CUDA compiler
"/home/user/anaconda3/envs/llamacpp/bin/nvcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/user/llamacpp/build/CMakeFiles/CMakeScratch/TryCompile-lOrwxG'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_28439/fast
/usr/bin/gmake -f CMakeFiles/cmTC_28439.dir/build.make CMakeFiles/cmTC_28439.dir/build
gmake[1]: Entering directory '/home/user/llamacpp/build/CMakeFiles/CMakeScratch/TryCompile-lOrwxG'
Building CUDA object CMakeFiles/cmTC_28439.dir/main.cu.o
/home/user/anaconda3/envs/llamacpp/bin/nvcc -forward-unknown-to-host-compiler "--generate-code=arch=compute_75,code=[sm_75]" "--generate-code=arch=compute_80,code=[sm_80]" "--generate-code=arch=compute_86,code=[sm_86]" "--generate-code=arch=compute_89,code=[sm_89]" "--generate-code=arch=compute_90,code=[sm_90]" "--generate-code=arch=compute_100,code=[sm_100]" "--generate-code=arch=compute_103,code=[sm_103]" "--generate-code=arch=compute_120,code=[sm_120]" "--generate-code=arch=compute_121,code=[compute_121,sm_121]" -MD -MT CMakeFiles/cmTC_28439.dir/main.cu.o -MF CMakeFiles/cmTC_28439.dir/main.cu.o.d -x cu -c /home/user/llamacpp/build/CMakeFiles/CMakeScratch/TryCompile-lOrwxG/main.cu -o CMakeFiles/cmTC_28439.dir/main.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_103'
gmake[1]: *** [CMakeFiles/cmTC_28439.dir/build.make:82: CMakeFiles/cmTC_28439.dir/main.cu.o] Error 1
gmake[1]: Leaving directory '/home/user/llamacpp/build/CMakeFiles/CMakeScratch/TryCompile-lOrwxG'
gmake: *** [Makefile:134: cmTC_28439/fast] Error 2