[petsc-users] PetscDeviceInitialize for Fortran 90

Han Tran tranduchan at gmail.com
Wed Jul 27 11:59:45 CDT 2022


Hello,

As shown in https://petsc.org/release/docs/changes/317/?highlight=petsccudainitialize <https://petsc.org/release/docs/changes/317/?highlight=petsccudainitialize>, PetscCUDAInitialize(MPI_Comm comm, PetscInt device) is replaced by PetscDeviceInitialize(PetscDeviceType type) in petsc-3.17. My Fortran-90 code gives a compile error as there is no header file “petscdevicetypes.h” in include/petsc/finclude. How can I use PetscDeviceInitialize() in Fortran 90?

Thank you,
-Han
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220727/0010fd8f/attachment.html>


More information about the petsc-users mailing list