Arcane
v3.15.3.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
KernelLaunchArgs.h
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4
// See the top-level COPYRIGHT file for details.
5
// SPDX-License-Identifier: Apache-2.0
6
//-----------------------------------------------------------------------------
7
/*---------------------------------------------------------------------------*/
8
/* KernelLaunchArgs.h (C) 2000-2024 */
9
/* */
10
/* Arguments pour lancer un kernel. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_ACCELERATOR_CORE_KERNELLAUNCHARGS_H
13
#define ARCANE_ACCELERATOR_CORE_KERNELLAUNCHARGS_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "
arcane/accelerator/core/AcceleratorCoreGlobal.h
"
18
19
/*---------------------------------------------------------------------------*/
20
/*---------------------------------------------------------------------------*/
21
22
namespace
Arcane::Accelerator::impl
23
{
24
25
/*---------------------------------------------------------------------------*/
26
/*---------------------------------------------------------------------------*/
27
/*!
28
* \internal
29
* \brief Arguments pour lancer un kernel.
30
*/
31
class
ARCANE_ACCELERATOR_CORE_EXPORT
KernelLaunchArgs
32
{
33
friend
RunCommandLaunchInfo
;
34
35
public
:
36
37
KernelLaunchArgs
() =
default
;
38
KernelLaunchArgs
(Int32
nb_block_per_grid
, Int32
nb_thread_per_block
)
39
: m_nb_block_per_grid(
nb_block_per_grid
)
40
, m_nb_thread_per_block(
nb_thread_per_block
)
41
{
42
}
43
44
public
:
45
46
int
nbBlockPerGrid()
const
{
return
m_nb_block_per_grid; }
47
int
nbThreadPerBlock()
const
{
return
m_nb_thread_per_block; }
48
49
private
:
50
51
int
m_nb_block_per_grid = 0;
52
int
m_nb_thread_per_block = 0;
53
};
54
55
/*---------------------------------------------------------------------------*/
56
/*---------------------------------------------------------------------------*/
57
58
}
// End namespace Arcane::Accelerator::impl
59
60
/*---------------------------------------------------------------------------*/
61
/*---------------------------------------------------------------------------*/
62
63
#endif
AcceleratorCoreGlobal.h
Arcane::Accelerator::impl::KernelLaunchArgs
Definition
KernelLaunchArgs.h:32
Arcane::Accelerator::impl::RunCommandLaunchInfo
Definition
core/RunCommandLaunchInfo.h:36
Arccore::Ref
Référence à une instance.
Definition
arccore/src/base/arccore/base/Ref.h:143
arcane
accelerator
core
KernelLaunchArgs.h
Généré le Lundi 10 Février 2025 02:47:05 pour Arcane par
1.9.8