alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
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
12namespace 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 {
29 }
30
31 static std::string getName()
32 {
33 return "GenericSycl";
34 }
35 };
36 } // namespace api
37} // namespace alpaka
Concept to check for APIs.
Definition api.hpp:42
main alpaka namespace.
Definition alpaka.hpp:76
static std::string getName()
Definition Api.hpp:31
auto get() const
Definition Api.hpp:21
TApiInterface element_type
Definition Api.hpp:19