[petsc-users] Initializing kokkos before petsc causes a problem

Junchao Zhang junchao.zhang at gmail.com
Wed Jun 7 21:45:09 CDT 2023


Hi, Philip,
  Thanks for reporting. I will have a look at the issue.
--Junchao Zhang


On Wed, Jun 7, 2023 at 9:30 AM Fackler, Philip via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> I'm encountering a problem in xolotl. We initialize kokkos before
> initializing petsc. Therefore...
>
> The pointer referenced here:
>
> https://gitlab.com/petsc/petsc/-/blob/main/src/vec/is/sf/impls/basic/kokkos/sfkok.kokkos.cxx#L363
> <https://gitlab.com/petsc/petsc/-/blob/main/include/petsc_kokkos.hpp>
>
> from here:
> https://gitlab.com/petsc/petsc/-/blob/main/include/petsc_kokkos.hpp
>
> remains null because the code to initialize it is skipped here:
>
> https://gitlab.com/petsc/petsc/-/blob/main/src/sys/objects/kokkos/kinit.kokkos.cxx#L28
> See line 71.
>
> Can this be modified to allow for kokkos to have been initialized by the
> application before initializing petsc?
>
> Thank you for your help,
>
>
> *Philip Fackler *
> Research Software Engineer, Application Engineering Group
> Advanced Computing Systems Research Section
> Computer Science and Mathematics Division
> *Oak Ridge National Laboratory*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230607/d417a227/attachment.html>


More information about the petsc-users mailing list