/* Portions of this code are under: Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. */ #pragma once #include #if PETSC_PKG_HIP_VERSION_GE(5, 2, 0) #include #else #include #endif #include struct Mat_MPIAIJHIPSPARSE { /* The following are used by GPU capabilities to store matrix storage formats on the device */ MatHIPSPARSEStorageFormat diagGPUMatFormat = MAT_HIPSPARSE_CSR; MatHIPSPARSEStorageFormat offdiagGPUMatFormat = MAT_HIPSPARSE_CSR; };