[petsc-users] Kokkos error at NERSC

Barry Smith bsmith at petsc.dev
Sat Apr 24 12:09:44 CDT 2021


   In kokkos-kernels.py comment out 

#self.includes         = ['KokkosBlas.hpp','KokkosSparse_CrsMatrix.hpp']


   I don't know why this didn't hit has a long long time ago.



> On Apr 24, 2021, at 8:21 AM, Mark Adams <mfadams at lbl.gov> wrote:
> 
> I don't see this in kokkos-kernels.py.
> I seem to get past Kokkos but it does in KK.
> 
> On Fri, Apr 23, 2021 at 4:41 PM Junchao Zhang <junchao.zhang at gmail.com <mailto:junchao.zhang at gmail.com>> wrote:
> 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 <mailto: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?
> <configure.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210424/94d38b3e/attachment.html>


More information about the petsc-users mailing list