Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
sycl.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
19#include "typeAliasBase.hpp" // IWYU pragma: export
20#include "typeAliasFp16.hpp" // IWYU pragma: export
21#include "typeAliasVec.hpp" // IWYU pragma: export
22#include <sycl/sycl.hpp>
23
24enum SYCLImplementation { ACPP, DPCPP, UNKNOWN };
25
26#ifdef SYCL_COMP_ACPP
27constexpr SYCLImplementation sycl_implementation = ACPP;
28#else
29 #ifdef SYCL_COMP_INTEL_LLVM
30constexpr SYCLImplementation sycl_implementation = DPCPP;
31 #else
32constexpr SYCLImplementation sycl_implementation = UNKNOWN;
33 #endif
34#endif
SYCLImplementation
IWYU pragma: export.
Definition sycl.hpp:24