9.1
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-2025 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 "base/cs_defs.h"
30
31#include "base/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/*----------------------------------------------------------------------------*/
64/*----------------------------------------------------------------------------*/
65
66void
68 cudaStream_t stream,
69 cs_halo_type_t sync_mode,
70 cs_datatype_t data_type,
71 cs_lnum_t stride,
72 const void *val,
73 void *send_buffer);
74
75/*----------------------------------------------------------------------------*/
76
cs_datatype_t
Definition: cs_defs.h:315
#define BEGIN_C_DECLS
Definition: cs_defs.h:554
#define END_C_DECLS
Definition: cs_defs.h:555
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:350
cs_halo_type_t
Definition: cs_halo.h:57
void cs_halo_cuda_pack_send_buffer(const cs_halo_t *halo, cudaStream_t stream, 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:78