xref: /libCEED/backends/memcheck/ceed-memcheck.h (revision 121d4b7fb417fe929bc878bd436cd4820a8e3053)
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 #ifndef _ceed_memcheck_h
9 #define _ceed_memcheck_h
10 
11 #include <ceed/ceed.h>
12 #include <ceed/backend.h>
13 
14 typedef struct {
15   const CeedScalar **inputs;
16   CeedScalar **outputs;
17   bool setup_done;
18 } CeedQFunction_Memcheck;
19 
20 typedef struct {
21   int mem_block_id;
22   void *data;
23   void *data_allocated;
24   void *data_borrowed;
25   void *data_owned;
26 } CeedQFunctionContext_Memcheck;
27 
28 CEED_INTERN int CeedQFunctionCreate_Memcheck(CeedQFunction qf);
29 
30 CEED_INTERN int CeedQFunctionContextCreate_Memcheck(CeedQFunctionContext ctx);
31 
32 #endif // _ceed_memcheck_h
33