13d8e8822SJeremy L Thompson // Copyright (c) 2017-2022, 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 83d576824SJeremy L Thompson #ifndef _ceed_cuda_gen_h 93d576824SJeremy L Thompson #define _ceed_cuda_gen_h 103d576824SJeremy L Thompson 11ec3da8bcSJed Brown #include <ceed/backend.h> 12*2b730f8bSJeremy L Thompson #include <ceed/ceed.h> 13241a4b83SYohann #include <cuda.h> 14*2b730f8bSJeremy L Thompson 157fcac036SJeremy L Thompson #include "../cuda/ceed-cuda-common.h" 16241a4b83SYohann 17241a4b83SYohann typedef struct { 18241a4b83SYohann CeedInt dim; 199e201c85SYohann CeedInt Q_1d; 209e201c85SYohann CeedInt max_P_1d; 21241a4b83SYohann CUmodule module; 22241a4b83SYohann CUfunction op; 239e201c85SYohann FieldsInt_Cuda indices; 249e201c85SYohann Fields_Cuda fields; 259e201c85SYohann Fields_Cuda B; 269e201c85SYohann Fields_Cuda G; 27241a4b83SYohann CeedScalar *W; 28241a4b83SYohann } CeedOperator_Cuda_gen; 29241a4b83SYohann 30241a4b83SYohann typedef struct { 319e201c85SYohann char *q_function_name; 329e201c85SYohann char *q_function_source; 33241a4b83SYohann void *d_c; 34241a4b83SYohann } CeedQFunction_Cuda_gen; 35241a4b83SYohann 36241a4b83SYohann CEED_INTERN int CeedQFunctionCreate_Cuda_gen(CeedQFunction qf); 37241a4b83SYohann 38241a4b83SYohann CEED_INTERN int CeedOperatorCreate_Cuda_gen(CeedOperator op); 39241a4b83SYohann 403d576824SJeremy L Thompson #endif // _ceed_cuda_gen_h 41