Arcane
v4.1.1.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
HipAccelerator.h
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2025 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
/* HipAccelerator.h (C) 2000-2025 */
9
/* */
10
/* Backend 'ROCM/HIP' pour les accélérateurs. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_HIP_HIPACCELERATOR_H
13
#define ARCANE_HIP_HIPACCELERATOR_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "arccore/common/CommonGlobal.h"
18
#include "
arccore/base/BaseTypes.h
"
19
20
#include <hip/hip_runtime.h>
21
22
/*---------------------------------------------------------------------------*/
23
/*---------------------------------------------------------------------------*/
24
25
#ifdef ARCANE_COMPONENT_arcane_hip
26
#define ARCANE_HIP_EXPORT ARCCORE_EXPORT
27
#else
28
#define ARCANE_HIP_EXPORT ARCCORE_IMPORT
29
#endif
30
31
namespace
Arcane::Accelerator::Hip
32
{
33
34
/*---------------------------------------------------------------------------*/
35
/*---------------------------------------------------------------------------*/
36
37
extern
"C++"
ARCANE_HIP_EXPORT
void
38
arcaneCheckHipErrors(
const
TraceInfo& ti,hipError_t e);
39
40
extern
"C++"
ARCANE_HIP_EXPORT
void
41
arcaneCheckHipErrorsNoThrow(
const
TraceInfo& ti,hipError_t e);
42
43
#define ARCANE_CHECK_HIP(result) \
44
Arcane::Accelerator::Hip::arcaneCheckHipErrors(A_FUNCINFO,result)
45
47
#define ARCANE_CHECK_HIP_NOTHROW(result) \
48
Arcane::Accelerator::Hip::arcaneCheckHipErrorsNoThrow(A_FUNCINFO,result)
49
50
/*---------------------------------------------------------------------------*/
51
/*---------------------------------------------------------------------------*/
52
53
}
// End namespace Arcane::accelerator::Hip
54
55
/*---------------------------------------------------------------------------*/
56
/*---------------------------------------------------------------------------*/
57
58
#endif
BaseTypes.h
Déclarations des types de la composante 'base' de Arccore.
arccore
src
accelerator_native
arccore
accelerator_native
HipAccelerator.h
Généré le Lundi 1 Décembre 2025 03:39:31 pour Arcane par
1.13.2