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