// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. // // SPDX-License-Identifier: BSD-2-Clause // // This file is part of CEED: http://github.com/ceed #ifndef _ceed_hip_shared_h #define _ceed_hip_shared_h #include #include #include #include "../hip/ceed-hip-common.h" typedef struct { hipModule_t module; hipFunction_t Interp; hipFunction_t Grad; hipFunction_t Weight; CeedInt block_sizes[3]; // interp, grad, weight thread block sizes CeedScalar *d_interp_1d; CeedScalar *d_grad_1d; CeedScalar *d_collo_grad_1d; CeedScalar *d_q_weight_1d; } CeedBasis_Hip_shared; CEED_INTERN int CeedBasisCreateTensorH1_Hip_shared(CeedInt dim, CeedInt P1d, CeedInt Q1d, const CeedScalar *interp1d, const CeedScalar *grad1d, const CeedScalar *qref1d, const CeedScalar *qweight1d, CeedBasis basis); #endif // _ceed_hip_shared_h