// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. // // SPDX-License-Identifier: BSD-2-Clause // // This file is part of CEED: http://github.com/ceed #ifndef CEED_HIP_GEN_H #define CEED_HIP_GEN_H #include #include #include #include typedef struct { CeedInt dim; CeedInt Q_1d; CeedInt max_P_1d; hipModule_t module; hipFunction_t op; FieldsInt_Hip indices; Fields_Hip fields; Fields_Hip B; Fields_Hip G; CeedScalar *W; } CeedOperator_Hip_gen; typedef struct { char *q_function_name; char *q_function_source; void *d_c; } CeedQFunction_Hip_gen; CEED_INTERN int CeedQFunctionCreate_Hip_gen(CeedQFunction qf); CEED_INTERN int CeedOperatorCreate_Hip_gen(CeedOperator op); #endif // CEED_HIP_GEN_H