alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
include
alpaka
api
oneApi
executor.hpp
Go to the documentation of this file.
1
/* Copyright 2025 Simeon Ehrig
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/api/syclGeneric/tag.hpp
"
8
#include "
alpaka/api/trait.hpp
"
9
10
namespace
alpaka
11
{
12
namespace
exec
13
{
14
struct
OneApi
15
{
16
static
std::string
getName
()
17
{
18
return
"OneApi"
;
19
}
20
};
21
22
constexpr
OneApi
oneApi
{};
23
}
// namespace exec
24
25
namespace
trait
26
{
27
template
<>
28
struct
IsExecutor
<
exec
::OneApi> : std::true_type
29
{
30
};
31
}
// namespace trait
32
33
namespace
onAcc::trait
34
{
35
template
<
typename
T_AtomicScope>
36
struct
GetAtomicImpl::Op
<
alpaka
::
exec::OneApi
, T_AtomicScope>
37
{
38
constexpr
decltype
(
auto
)
operator
()(
alpaka::exec::OneApi
const
, T_AtomicScope
const
)
const
39
{
40
return
alpaka::onAcc::internal::syclAtomic;
41
}
42
};
43
}
// namespace onAcc::trait
44
}
// namespace alpaka
tag.hpp
trait.hpp
alpaka::exec
Definition
executor.hpp:16
alpaka::exec::oneApi
constexpr OneApi oneApi
Definition
executor.hpp:22
alpaka::onAcc::trait
Definition
executor.hpp:38
alpaka
main alpaka namespace.
Definition
alpaka.hpp:76
alpaka::exec::OneApi
Definition
executor.hpp:15
alpaka::exec::OneApi::getName
static std::string getName()
Definition
executor.hpp:16
alpaka::onAcc::trait::GetAtomicImpl::Op
Definition
trait.hpp:223
alpaka::trait::IsExecutor
Definition
trait.hpp:104
Generated on
for alpaka by
1.16.1