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. 37d8d0e25Snbeams // 43d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause 57d8d0e25Snbeams // 63d8e8822SJeremy L Thompson // This file is part of CEED: http://github.com/ceed 7509d4af6SJeremy L Thompson #pragma once 83d576824SJeremy L Thompson 949aac155SJeremy L Thompson #include <ceed.h> 10ec3da8bcSJed Brown #include <ceed/backend.h> 1149aac155SJeremy L Thompson #include <ceed/jit-source/hip/hip-types.h> 123d576824SJeremy L Thompson #include <hip/hip_runtime.h> 132b730f8bSJeremy L Thompson 147d8d0e25Snbeams typedef struct { 157d8d0e25Snbeams CeedInt dim; 169e201c85SYohann CeedInt Q_1d; 179e201c85SYohann CeedInt max_P_1d; 187d8d0e25Snbeams hipModule_t module; 197d8d0e25Snbeams hipFunction_t op; 209e201c85SYohann FieldsInt_Hip indices; 219e201c85SYohann Fields_Hip fields; 229e201c85SYohann Fields_Hip B; 239e201c85SYohann Fields_Hip G; 247d8d0e25Snbeams CeedScalar *W; 25*3a2968d6SJeremy L Thompson Points_Hip points; 267d8d0e25Snbeams } CeedOperator_Hip_gen; 277d8d0e25Snbeams 287d8d0e25Snbeams typedef struct { 2909095acaSJeremy L Thompson const char *qfunction_name; 307d8d0e25Snbeams void *d_c; 317d8d0e25Snbeams } CeedQFunction_Hip_gen; 327d8d0e25Snbeams 337d8d0e25Snbeams CEED_INTERN int CeedQFunctionCreate_Hip_gen(CeedQFunction qf); 347d8d0e25Snbeams 357d8d0e25Snbeams CEED_INTERN int CeedOperatorCreate_Hip_gen(CeedOperator op); 36