alpaka
Abstraction Library for Parallel Kernel Acceleration
Traits.hpp File Reference
#include "alpaka/core/Common.hpp"
#include "alpaka/core/Interface.hpp"
#include "alpaka/wait/Traits.hpp"
#include <type_traits>
#include <utility>

Go to the source code of this file.

Namespaces

 alpaka
 The alpaka accelerator library.
 
 alpaka::trait
 The accelerator traits.
 

Typedefs

template<typename TEnv , typename TProperty >
using alpaka::Queue = typename trait::QueueType< TEnv, TProperty >::type
 Queue based on the environment and a property. More...
 

Functions

template<typename TQueue >
ALPAKA_FN_HOST auto alpaka::empty (TQueue const &queue) -> bool
 Tests if the queue is empty (all ops in the given queue have been completed). More...
 
template<typename TQueue , typename TTask >
ALPAKA_FN_HOST auto alpaka::enqueue (TQueue &queue, TTask &&task) -> void
 Queues the given task in the given queue. More...
 

Variables

template<typename TQueue >
constexpr bool alpaka::isQueue = interface::ImplementsInterface<ConceptQueue, std::decay_t<TQueue>>::value
 True if TQueue is a queue, i.e. if it implements the ConceptQueue concept. More...