15aed82e4SJeremy L Thompson // Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors. 23d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3c532df63SYohann // 43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 5c532df63SYohann // 63d8e8822SJeremy L Thompson // This file is part of CEED: http://github.com/ceed 7*509d4af6SJeremy L Thompson #pragma once 83d576824SJeremy L Thompson 949aac155SJeremy L Thompson #include <ceed.h> 10ec3da8bcSJed Brown #include <ceed/backend.h> 11c532df63SYohann #include <cuda.h> 122b730f8bSJeremy L Thompson 13c532df63SYohann typedef struct { 14c532df63SYohann CUmodule module; 15437930d1SJeremy L Thompson CUfunction Interp; 169e201c85SYohann CUfunction InterpTranspose; 17437930d1SJeremy L Thompson CUfunction Grad; 189e201c85SYohann CUfunction GradTranspose; 19437930d1SJeremy L Thompson CUfunction Weight; 20437930d1SJeremy L Thompson CeedScalar *d_interp_1d; 21437930d1SJeremy L Thompson CeedScalar *d_grad_1d; 22437930d1SJeremy L Thompson CeedScalar *d_collo_grad_1d; 23437930d1SJeremy L Thompson CeedScalar *d_q_weight_1d; 24c532df63SYohann CeedScalar *c_B; 25c532df63SYohann CeedScalar *c_G; 26c532df63SYohann } CeedBasis_Cuda_shared; 27c532df63SYohann 282b730f8bSJeremy L Thompson CEED_INTERN int CeedBasisCreateTensorH1_Cuda_shared(CeedInt dim, CeedInt P_1d, CeedInt Q_1d, const CeedScalar *interp_1d, const CeedScalar *grad_1d, 29437930d1SJeremy L Thompson const CeedScalar *q_ref_1d, const CeedScalar *q_weight_1d, CeedBasis basis); 30