xref: /libCEED/include/ceed/jit-source/hip/hip-jit.h (revision 0d627ac128dbf360e78b18bad1cfd2089ff3d6d8)
1 // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3 //
4 // SPDX-License-Identifier: BSD-2-Clause
5 //
6 // This file is part of CEED:  http://github.com/ceed
7 
8 /// @file
9 /// Internal header for HIP backend macro and type definitions for JiT source
10 #ifndef _ceed_hip_jit_h
11 #define _ceed_hip_jit_h
12 
13 #define CEED_QFUNCTION(name) inline __device__ int name
14 #define CEED_QFUNCTION_HELPER inline __device__
15 #define CeedPragmaSIMD
16 #define CEED_Q_VLA 1
17 
18 #include <ceed/types.h>
19 
20 typedef struct { const CeedScalar* inputs[16]; CeedScalar* outputs[16]; } Fields_Hip;
21 
22 #endif
23