alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
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
11#include "alpaka/api/trait.hpp"
12
13#include <string>
14
15namespace 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 */
25 {
26 static std::string getName()
27 {
28 return "AnyExecutor";
29 }
30 };
31
32 /** @copydoc 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
constexpr AnyExecutor anyExecutor
Automatic executor selection.
Definition executor.hpp:33
main alpaka namespace.
Definition alpaka.hpp:76
Automatic executor selection.
Definition executor.hpp:25
static std::string getName()
Definition executor.hpp:26