Sean,

It looks like you are using the wrong compiler. If you want to use CUDA, 
you should use nvcc_wrapper as your C++ compiler. You want something like 
`-DCMAKE_CXX_COMPILER=/path/nvcc_wrapper`. You should already have used 
`nvcc_wrapper` to compiler Kokkos.

Best,

Bruno

On Monday, February 5, 2024 at 2:40:37 AM UTC-5 sljoh...@gmail.com wrote:

> Hey,
>
> I am trying to get deal.ii to compile with p4est and cuda. Due to cuda it 
> also needs MPI and Kokkos from me. I can't even make the make file yet. I 
> tried to find any similar problems in the mailing list and was unable to.
>
> I am running Ubuntu 22.04
>
> The Error at the end reads:
> [ 50%] Building CXX object 
> CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o
>  /usr/bin/c++   -fopenmp-simd -O0 -ggdb -Wa,--compress-debug-sections 
> -extended-lambda
>  -Wext-lambda-captures-this -arch=sm_89 -DKOKKOS_DEPENDENCE 
> -Wno-non-template-friend -o
>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c
>  /home/sean/dealii-9.5.2/cmake/macros/check_compiler_setup/dummy.cpp
>  c++: error: unrecognized command-line option -Wext-lambda-captures-this
>  c++: error: unrecognized command-line option -arch=sm_89
>  gmake[2]: *** [CMakeFiles/CheckCompilerSetupExec.dir/build.make:78:
>  CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o] Error 1
>  gmake[2]: Leaving directory
>
>  
> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>  gmake[1]: *** [CMakeFiles/Makefile2:86: 
> CMakeFiles/CheckCompilerSetupExec.dir/all] Error 2
>  gmake[1]: Leaving directory
>
>  
> '/home/sean/dealii-9.5.2/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG'
>  gmake: *** [Makefile:94: all] Error 2
>
>
>  CMake Error at cmake/setup_finalize.cmake:126 (message):
>
>
>      Configuration error: Cannot compile a test program with the final set 
> of
>      compiler and linker flags:
>        CXX flags (DEBUG): -fopenmp-simd -O0 -ggdb 
> -Wa,--compress-debug-sections
>        LD flags  (DEBUG): -rdynamic  -fopenmp -ggdb 
> -Wl,--compress-debug-sections=zlib
>        LIBRARIES (DEBUG): rt;
>
> Attached are the output and error logs.
>
> Thanks for any help,
> Sean
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/35028a90-801b-4bbe-a1ea-e672900aaa69n%40googlegroups.com.

Reply via email to