1*5aed82e4SJeremy 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. 3241a4b83SYohann // 43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 5241a4b83SYohann // 63d8e8822SJeremy L Thompson // This file is part of CEED: http://github.com/ceed 77df94212SJeremy L Thompson 894b7b29bSJeremy L Thompson #ifndef CEED_CUDA_GEN_H 994b7b29bSJeremy L Thompson #define CEED_CUDA_GEN_H 103d576824SJeremy L Thompson 1149aac155SJeremy L Thompson #include <ceed.h> 12ec3da8bcSJed Brown #include <ceed/backend.h> 1349aac155SJeremy L Thompson #include <ceed/jit-source/cuda/cuda-types.h> 14241a4b83SYohann #include <cuda.h> 152b730f8bSJeremy L Thompson 16241a4b83SYohann typedef struct { 17241a4b83SYohann CeedInt dim; 189e201c85SYohann CeedInt Q_1d; 199e201c85SYohann CeedInt max_P_1d; 20241a4b83SYohann CUmodule module; 21241a4b83SYohann CUfunction op; 229e201c85SYohann FieldsInt_Cuda indices; 239e201c85SYohann Fields_Cuda fields; 249e201c85SYohann Fields_Cuda B; 259e201c85SYohann Fields_Cuda G; 26241a4b83SYohann CeedScalar *W; 27241a4b83SYohann } CeedOperator_Cuda_gen; 28241a4b83SYohann 29241a4b83SYohann typedef struct { 3009095acaSJeremy L Thompson const char *qfunction_name; 3109095acaSJeremy L Thompson const char *qfunction_source; 32241a4b83SYohann void *d_c; 33241a4b83SYohann } CeedQFunction_Cuda_gen; 34241a4b83SYohann 35241a4b83SYohann CEED_INTERN int CeedQFunctionCreate_Cuda_gen(CeedQFunction qf); 36241a4b83SYohann 37241a4b83SYohann CEED_INTERN int CeedOperatorCreate_Cuda_gen(CeedOperator op); 38241a4b83SYohann 3994b7b29bSJeremy L Thompson #endif // CEED_CUDA_GEN_H 40