Actual source code: mpihipsparsematimpl.h

  1: /* Portions of this code are under:
  2:    Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
  3: */
  4: #pragma once

  6: #include <petscpkg_version.h>
  7: #include <hipsparse/hipsparse.h>
  8: #include <petsc/private/veccupmimpl.h>

 10: struct Mat_MPIAIJHIPSPARSE {
 11:   /* The following are used by GPU capabilities to store matrix storage formats on the device */
 12:   MatHIPSPARSEStorageFormat diagGPUMatFormat    = MAT_HIPSPARSE_CSR;
 13:   MatHIPSPARSEStorageFormat offdiagGPUMatFormat = MAT_HIPSPARSE_CSR;
 14: };