alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::concepts::Api Concept Reference

Concept to check for APIs. More...

#include <api.hpp>

Concept definition

template<typename T>
concept Api = isApi_v<T> && requires(T t) { requires HasStaticName<T>; }
Concept to check for APIs.
Definition api.hpp:42
constexpr bool isApi_v
Definition api.hpp:29

Detailed Description

Concept to check for APIs.

This concept requires that the template is an API. An API in alpaka is the representation of a software library that can target one or multiple accelerators. Examples of APIs are alpaka::api::Cuda and alpaka::api::Host. An Api together with an alpaka::concepts::DeviceKind can make up an alpaka::onHost::Device.

Definition at line 42 of file api.hpp.