Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
SyclAccelerator.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/* SyclAccelerator.h (C) 2000-2024 */
9/* */
10/* Backend 'SYCL' pour les accélérateurs. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_ACCELERATOR_SYCL_SYCLACCELERATOR_H
13#define ARCANE_ACCELERATOR_SYCL_SYCLACCELERATOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19#include <sycl/sycl.hpp>
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24#ifdef ARCANE_COMPONENT_arcane_sycl
25#define ARCANE_SYCL_EXPORT ARCANE_EXPORT
26#else
27#define ARCANE_SYCL_EXPORT ARCANE_IMPORT
28#endif
29
30namespace Arcane::Accelerator::Sycl
31{
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
35
36extern "C++" ARCANE_SYCL_EXPORT Arccore::IMemoryAllocator*
37getSyclMemoryAllocator();
38
39extern "C++" ARCANE_SYCL_EXPORT Arccore::IMemoryAllocator*
40getSyclDeviceMemoryAllocator();
41
42extern "C++" ARCANE_SYCL_EXPORT Arccore::IMemoryAllocator*
43getSyclUnifiedMemoryAllocator();
44
45extern "C++" ARCANE_SYCL_EXPORT Arccore::IMemoryAllocator*
46getSyclHostPinnedMemoryAllocator();
47
48/*---------------------------------------------------------------------------*/
49/*---------------------------------------------------------------------------*/
50
51} // namespace Arcane::Accelerator::Sycl
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56#endif
Déclarations des types utilisés dans Arcane.