[petsc-users] Kokkos error at NERSC

Mark Adams mfadams at lbl.gov
Sat Apr 24 08:21:04 CDT 2021


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>
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> 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/20210424/ba516d2d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 6834612 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210424/ba516d2d/attachment-0001.obj>


More information about the petsc-users mailing list