[petsc-users] Kokkos error at NERSC

Junchao Zhang junchao.zhang at gmail.com
Fri Apr 23 15:41:23 CDT 2021


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 <mfadams at lbl.gov> 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?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210423/00d99f6c/attachment.html>


More information about the petsc-users mailing list