Arcane  v3.15.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
AcceleratorCoreGlobalInternal.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/* AcceleratorCoreGlobalInternal.h (C) 2000-2024 */
9/* */
10/* Déclarations générales pour le support des accélérateurs. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_ACCELERATOR_CORE_INTERNAL_ACCELERATORCOREGLOBALINTERNAL_H
13#define ARCANE_ACCELERATOR_CORE_INTERNAL_ACCELERATORCOREGLOBALINTERNAL_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane::Accelerator::impl
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
29extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT bool isUsingCUDARuntime();
30
32extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT void setUsingCUDARuntime(bool v);
33
35extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT IRunnerRuntime*
36getCUDARunQueueRuntime();
37
39extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT void setCUDARunQueueRuntime(IRunnerRuntime* v);
40
41/*---------------------------------------------------------------------------*/
42/*---------------------------------------------------------------------------*/
43
45extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT bool isUsingHIPRuntime();
46
48extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT void setUsingHIPRuntime(bool v);
49
51extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT IRunnerRuntime*
52getHIPRunQueueRuntime();
53
55extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT void setHIPRunQueueRuntime(IRunnerRuntime* v);
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
61extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT bool isUsingSYCLRuntime();
62
64extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT void setUsingSYCLRuntime(bool v);
65
67extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT IRunnerRuntime*
68getSYCLRunQueueRuntime();
69
71extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT void setSYCLRunQueueRuntime(IRunnerRuntime* v);
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
83extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT IRunnerRuntime*
84getAcceleratorRunnerRuntime();
85
86/*---------------------------------------------------------------------------*/
87/*---------------------------------------------------------------------------*/
88
90extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT IRunnerRuntime*
91getSequentialRunQueueRuntime();
92
94extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT IRunnerRuntime*
95getThreadRunQueueRuntime();
96
97/*---------------------------------------------------------------------------*/
98/*---------------------------------------------------------------------------*/
99
101extern "C++" ARCANE_ACCELERATOR_CORE_EXPORT void
102printUUID(std::ostream& o, char bytes[16]);
103
104/*---------------------------------------------------------------------------*/
105/*---------------------------------------------------------------------------*/
106
108class ARCANE_ACCELERATOR_CORE_EXPORT RuntimeStaticInfo
109{
110 public:
111
114
115 static void
116 checkPointerIsAcccessible(eExecutionPolicy policy, const void* ptr,
117 const char* name, const TraceInfo& ti);
118};
119
120/*---------------------------------------------------------------------------*/
121/*---------------------------------------------------------------------------*/
122
123} // End namespace Arcane::Accelerator::impl
124
125/*---------------------------------------------------------------------------*/
126/*---------------------------------------------------------------------------*/
127
128#endif
Informations sur une adresse mémoire.
Classe statique fournissant des fonctions internes à Arcane.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:149
ePointerAccessibility getPointerAccessibility(eExecutionPolicy policy, const void *ptr, PointerAttribute *ptr_attr)
Accessibilité de l'adresse ptr pour une politique d'exécutionpolicy.
ePointerAccessibility
Informations d'accessibilité d'une adresse mémoire.
eExecutionPolicy
Politique d'exécution pour un Runner.