Arcane  v3.15.0.0
Documentation développeur
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
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane::Accelerator::impl
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
31class ARCANE_ACCELERATOR_CORE_EXPORT KernelLaunchArgs
32{
34
35 public:
36
37 KernelLaunchArgs() = default;
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
Arguments pour lancer un kernel.
Object temporaire pour conserver les informations d'exécution d'une commande et regrouper les tests.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:149
std::int32_t Int32
Type entier signé sur 32 bits.