Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
RunQueueBuildInfo.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* RunQueueBuildInfo.h (C) 2000-2022 */
9/* */
10/* Informations pour créer une RunQueue. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_ACCELERATOR_CORE_RUNQUEUEBUILDINFO_H
13#define ARCANE_ACCELERATOR_CORE_RUNQUEUEBUILDINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane::Accelerator
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
30class ARCANE_ACCELERATOR_CORE_EXPORT RunQueueBuildInfo
31{
32 public:
33
34 RunQueueBuildInfo() = default;
35 explicit RunQueueBuildInfo(int priority)
36 : m_priority(priority)
37 {}
38
39 public:
40
49 void setPriority(int priority) { m_priority = priority; }
50 int priority() const { return m_priority; }
51
53 bool isDefault() const { return m_priority == 0; }
54
55 private:
56
57 int m_priority = 0;
58};
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63} // End namespace Arcane::Accelerator
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
67
68#endif
Informations pour créer une RunQueue.
void setPriority(int priority)
Positionne la priorité.
bool isDefault() const
Indique si l'instance a uniquement les valeurs par défaut.
Espace de nom pour l'utilisation des accélérateurs.