alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
include
alpaka
api
syclGeneric
Api.hpp
Go to the documentation of this file.
1
/* Copyright 2024 René Widera
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/concepts.hpp
"
8
9
#include <memory>
10
#include <string>
11
12
namespace
alpaka
13
{
14
namespace
api
15
{
16
template
<
typename
TApiInterface>
17
struct
GenericSycl
:
detail::ApiBase
18
{
19
using
element_type
= TApiInterface;
20
21
auto
get
()
const
22
{
23
return
static_cast<
TApiInterface const*
>
(
this
);
24
}
25
26
void
_
()
27
{
28
static_assert
(
concepts::Api<GenericSycl<TApiInterface>
>);
29
}
30
31
static
std::string
getName
()
32
{
33
return
"GenericSycl"
;
34
}
35
};
36
}
// namespace api
37
}
// namespace alpaka
alpaka::concepts::Api
Concept to check for APIs.
Definition
api.hpp:42
concepts.hpp
alpaka::api
Definition
api.hpp:47
alpaka
main alpaka namespace.
Definition
alpaka.hpp:76
alpaka::api::GenericSycl
Definition
Api.hpp:18
alpaka::api::GenericSycl::getName
static std::string getName()
Definition
Api.hpp:31
alpaka::api::GenericSycl::_
void _()
Definition
Api.hpp:26
alpaka::api::GenericSycl::get
auto get() const
Definition
Api.hpp:21
alpaka::api::GenericSycl::element_type
TApiInterface element_type
Definition
Api.hpp:19
alpaka::detail::ApiBase
Definition
api.hpp:16
Generated on
for alpaka by
1.16.1