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

Fackler, Philip facklerpw at ornl.gov
Wed Jun 7 09:10:31 CDT 2023


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/b1ea815b/attachment.html>


More information about the petsc-users mailing list