8.2
general documentation
cs_halo_cuda.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*============================================================================
4  * Functions dealing with ghost cells using CUDA.
5  *============================================================================*/
6 
7 /*
8  This file is part of code_saturne, a general-purpose CFD tool.
9 
10  Copyright (C) 1998-2024 EDF S.A.
11 
12  This program is free software; you can redistribute it and/or modify it under
13  the terms of the GNU General Public License as published by the Free Software
14  Foundation; either version 2 of the License, or (at your option) any later
15  version.
16 
17  This program is distributed in the hope that it will be useful, but WITHOUT
18  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
20  details.
21 
22  You should have received a copy of the GNU General Public License along with
23  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
24  Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 */
26 
27 /*----------------------------------------------------------------------------*/
28 
29 #include "cs_defs.h"
30 
31 #include "cs_halo.h"
32 
33 /*----------------------------------------------------------------------------*/
34 
36 
37 /*============================================================================
38  * Macro definitions
39  *============================================================================*/
40 
41 /*=============================================================================
42  * Type definitions
43  *============================================================================*/
44 
45 /*============================================================================
46  * Public function prototypes
47  *============================================================================*/
48 
49 /*----------------------------------------------------------------------------*/
63 /*----------------------------------------------------------------------------*/
64 
65 void
67  cs_halo_type_t sync_mode,
68  cs_datatype_t data_type,
69  cs_lnum_t stride,
70  const void *val,
71  void *send_buffer);
72 
73 /*----------------------------------------------------------------------------*/
74 
cs_datatype_t
Definition: cs_defs.h:284
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
#define END_C_DECLS
Definition: cs_defs.h:529
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
cs_halo_type_t
Definition: cs_halo.h:56
void cs_halo_cuda_pack_send_buffer(const cs_halo_t *halo, cs_halo_type_t sync_mode, cs_datatype_t data_type, cs_lnum_t stride, const void *val, void *send_buffer)
Pack cs_real_t halo data to send into dense buffer, using CUDA.
Definition: cs_halo.h:77