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/backend.h> 12 #include <ceed/ceed.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_owned; 25 void *data_borrowed; 26 void *data_read_only_copy; 27 } CeedQFunctionContext_Memcheck; 28 29 CEED_INTERN int CeedQFunctionCreate_Memcheck(CeedQFunction qf); 30 31 CEED_INTERN int CeedQFunctionContextCreate_Memcheck(CeedQFunctionContext ctx); 32 33 #endif // _ceed_memcheck_h 34