amgcl
amgcl copied to clipboard
Errors Compiling Examples with CUDA Backend (Nvidia Geforce GTX 2080 Ti, Cuda 12.0)
Hi Demidov, Thanks for this awesome repo, I was trying to build the examples with Cuda backend, in the root directory with command
cmake -DCMAKE_BUILD_TYPE=Release -DAMGCL_BUILD_TESTS=ON -DAMGCL_BUILD_EXAMPLES=ON
make
and got the following error:
...
[ 49%] Building NVCC (Device) object examples/CMakeFiles/solver_cuda.dir/solver_cuda_generated_solver.cu.o
nvcc fatal : Unsupported gpu architecture 'compute_30'
CMake Error at solver_cuda_generated_solver.cu.o.Release.cmake:220 (message):
Error generating
.../amgcl-1.4.3/examples/CMakeFiles/solver_cuda.dir//./solver_cuda_generated_solver.cu.o
make[2]: *** [examples/CMakeFiles/solver_cuda.dir/build.make:77: examples/CMakeFiles/solver_cuda.dir/solver_cuda_generated_solver.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1243: examples/CMakeFiles/solver_cuda.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
As a reference, I am compiling the latest amgcl (version 1.4.3) on the ubuntu 20.04 platform with a Geforce 2080 Ti GPU, the installed Nvidia driver version is 525.85.12 (Cuda version 12.0). Do you have any ideas on this error? Thanks:)