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. 37d8d0e25Snbeams // 43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 57d8d0e25Snbeams // 63d8e8822SJeremy L Thompson // This file is part of CEED: http://github.com/ceed 77d8d0e25Snbeams 83d576824SJeremy L Thompson #ifndef _ceed_hip_gen_h 93d576824SJeremy L Thompson #define _ceed_hip_gen_h 103d576824SJeremy L Thompson 11ec3da8bcSJed Brown #include <ceed/backend.h> 12*2b730f8bSJeremy L Thompson #include <ceed/ceed.h> 133d576824SJeremy L Thompson #include <hip/hip_runtime.h> 14*2b730f8bSJeremy L Thompson 157fcac036SJeremy L Thompson #include "../hip/ceed-hip-common.h" 167d8d0e25Snbeams 177d8d0e25Snbeams typedef struct { 187d8d0e25Snbeams CeedInt dim; 199e201c85SYohann CeedInt Q_1d; 209e201c85SYohann CeedInt max_P_1d; 217d8d0e25Snbeams hipModule_t module; 227d8d0e25Snbeams hipFunction_t op; 239e201c85SYohann FieldsInt_Hip indices; 249e201c85SYohann Fields_Hip fields; 259e201c85SYohann Fields_Hip B; 269e201c85SYohann Fields_Hip G; 277d8d0e25Snbeams CeedScalar *W; 287d8d0e25Snbeams } CeedOperator_Hip_gen; 297d8d0e25Snbeams 307d8d0e25Snbeams typedef struct { 319e201c85SYohann char *q_function_name; 329e201c85SYohann char *q_function_source; 337d8d0e25Snbeams void *d_c; 347d8d0e25Snbeams } CeedQFunction_Hip_gen; 357d8d0e25Snbeams 367d8d0e25Snbeams CEED_INTERN int CeedQFunctionCreate_Hip_gen(CeedQFunction qf); 377d8d0e25Snbeams 387d8d0e25Snbeams CEED_INTERN int CeedOperatorCreate_Hip_gen(CeedOperator op); 397d8d0e25Snbeams 403d576824SJeremy L Thompson #endif // _ceed_hip_gen_h 41