9.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-2026 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
* Macro definitions
35
*============================================================================*/
36
37
/*=============================================================================
38
* Type definitions
39
*============================================================================*/
40
41
/*============================================================================
42
* Public function prototypes
43
*============================================================================*/
44
45
/*----------------------------------------------------------------------------*/
60
/*----------------------------------------------------------------------------*/
61
62
void
63
cs_halo_cuda_pack_send_buffer
(
const
cs_halo_t
*halo,
64
cudaStream_t stream,
65
cs_halo_type_t
sync_mode,
66
cs_datatype_t
data_type,
67
cs_lnum_t
stride,
68
const
void
*val,
69
void
*send_buffer);
70
71
/*----------------------------------------------------------------------------*/
cs_defs.h
cs_datatype_t
cs_datatype_t
Definition:
cs_defs.h:290
cs_lnum_t
int cs_lnum_t
local mesh entity id
Definition:
cs_defs.h:325
cs_halo.h
cs_halo_type_t
cs_halo_type_t
Definition:
cs_halo.h:53
cs_halo_cuda_pack_send_buffer
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.
cs_halo_t
Definition:
cs_halo.h:74
src
base
cs_halo_cuda.h
Generated on Mon Jul 6 2026 11:49:54 for code_saturne by
1.9.4