Hi, Mark, It is because in configure check of CUDA, we compile conftest.cc (which includes kokkos headers) with mpicxx. Kokkos complains it was configured with cuda but now is not compiled with cudac.
A workaround is in kokkos.py and kokkos-kernels.py, comment out lines as follows, to disable the check. #self.includes = ['Kokkos_Macros.hpp'] --Junchao Zhang On Fri, Apr 23, 2021 at 1:59 PM Mark Adams <[email protected]> wrote: > I had Kokkos working here but I seemed to have broken it: > > global/homes/m/madams/petsc/arch-cori-gpu-opt-kokkos-gcc/include/setup/Kokkos_Setup_Cuda.hpp:54:2: > error: #error "KOKKOS_ENABLE_CUDA defined but the compiler is not defining > the __CUDACC__ macro as expected" > #error \ > > Any ideas? >
