alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
include
alpaka
api
executor.hpp
Go to the documentation of this file.
1
/* Copyright 2024 René Widera, Mehmet Yusufoglu
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/api/cuda/executor.hpp
"
8
#include "
alpaka/api/hip/executor.hpp
"
9
#include "
alpaka/api/host/executor.hpp
"
10
#include "
alpaka/api/oneApi/executor.hpp
"
11
#include "
alpaka/api/trait.hpp
"
12
13
#include <string>
14
15
namespace
alpaka
16
{
17
namespace
exec
18
{
19
/** Automatic executor selection
20
*
21
* If this executor is used in alpaka interfaces, the best fitting available executor will automatically
22
* select. The selection based often on the device or queue provided in the interfaces.
23
*/
24
struct
AnyExecutor
25
{
26
static
std::string
getName
()
27
{
28
return
"AnyExecutor"
;
29
}
30
};
31
32
/** @copydoc AnyExecutor */
33
constexpr
AnyExecutor
anyExecutor
;
34
}
// namespace exec
35
36
namespace
trait
37
{
38
template
<>
39
struct
IsExecutor
<
exec
::AnyExecutor> : std::true_type
40
{
41
};
42
}
// namespace trait
43
}
// namespace alpaka
executor.hpp
executor.hpp
executor.hpp
executor.hpp
trait.hpp
alpaka::exec
Definition
executor.hpp:16
alpaka::exec::anyExecutor
constexpr AnyExecutor anyExecutor
Automatic executor selection.
Definition
executor.hpp:33
alpaka::trait
Definition
api.hpp:21
alpaka
main alpaka namespace.
Definition
alpaka.hpp:76
alpaka::exec::AnyExecutor
Automatic executor selection.
Definition
executor.hpp:25
alpaka::exec::AnyExecutor::getName
static std::string getName()
Definition
executor.hpp:26
alpaka::trait::IsExecutor
Definition
trait.hpp:104
Generated on
for alpaka by
1.16.1