17d8d0e25Snbeams // Copyright (c) 2017-2018, Lawrence Livermore National Security, LLC. 27d8d0e25Snbeams // Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-734707. 37d8d0e25Snbeams // All Rights reserved. See files LICENSE and NOTICE for details. 47d8d0e25Snbeams // 57d8d0e25Snbeams // This file is part of CEED, a collection of benchmarks, miniapps, software 67d8d0e25Snbeams // libraries and APIs for efficient high-order finite element and spectral 77d8d0e25Snbeams // element discretizations for exascale applications. For more information and 87d8d0e25Snbeams // source code availability see http://github.com/ceed. 97d8d0e25Snbeams // 107d8d0e25Snbeams // The CEED research is supported by the Exascale Computing Project 17-SC-20-SC, 117d8d0e25Snbeams // a collaborative effort of two U.S. Department of Energy organizations (Office 127d8d0e25Snbeams // of Science and the National Nuclear Security Administration) responsible for 137d8d0e25Snbeams // the planning and preparation of a capable exascale ecosystem, including 147d8d0e25Snbeams // software, applications, hardware, advanced system engineering and early 157d8d0e25Snbeams // testbed platforms, in support of the nation's exascale computing imperative. 163d576824SJeremy L Thompson 173d576824SJeremy L Thompson #ifndef _ceed_hip_shared_h 183d576824SJeremy L Thompson #define _ceed_hip_shared_h 193d576824SJeremy L Thompson 20ec3da8bcSJed Brown #include <ceed/ceed.h> 21ec3da8bcSJed Brown #include <ceed/backend.h> 223d576824SJeremy L Thompson #include <hip/hip_runtime.h> 23*7fcac036SJeremy L Thompson #include "../hip/ceed-hip-common.h" 247d8d0e25Snbeams 257d8d0e25Snbeams typedef struct { 267d8d0e25Snbeams hipModule_t module; 277d8d0e25Snbeams hipFunction_t interp; 287d8d0e25Snbeams hipFunction_t grad; 297d8d0e25Snbeams hipFunction_t weight; 309e31c45bSnbeams CeedInt blksizes[3]; // interp, grad, weight thread block sizes 317d8d0e25Snbeams CeedScalar *d_interp1d; 327d8d0e25Snbeams CeedScalar *d_grad1d; 337d8d0e25Snbeams CeedScalar *d_collograd1d; 347d8d0e25Snbeams CeedScalar *d_qweight1d; 357d8d0e25Snbeams } CeedBasis_Hip_shared; 367d8d0e25Snbeams 377d8d0e25Snbeams CEED_INTERN int CeedBasisCreateTensorH1_Hip_shared(CeedInt dim, CeedInt P1d, 387d8d0e25Snbeams CeedInt Q1d, const CeedScalar *interp1d, const CeedScalar *grad1d, 397d8d0e25Snbeams const CeedScalar *qref1d, const CeedScalar *qweight1d, CeedBasis basis); 40526015bcSnbeams 413d576824SJeremy L Thompson #endif // _ceed_hip_shared_h 42