Arcane  v3.14.10.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
101class ARCANE_ACCELERATOR_CORE_EXPORT RuntimeStaticInfo
102{
103 public:
104
107
108 static void
109 checkPointerIsAcccessible(eExecutionPolicy policy, const void* ptr,
110 const char* name, const TraceInfo& ti);
111};
112
113/*---------------------------------------------------------------------------*/
114/*---------------------------------------------------------------------------*/
115
116} // End namespace Arcane::Accelerator::impl
117
118/*---------------------------------------------------------------------------*/
119/*---------------------------------------------------------------------------*/
120
121#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:120
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.