alpaka
Abstraction Library for Parallel Kernel Acceleration
Traits.hpp File Reference
#include "alpaka/core/Common.hpp"
#include "alpaka/core/Concepts.hpp"
#include <algorithm>
#include <cctype>
#include <cstddef>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  alpaka::trait::DevType< TDev, std::enable_if_t< concepts::ImplementsConcept< ConceptDev, TDev >::value > >
 Get device type. More...
 

Namespaces

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

Typedefs

template<typename T >
using alpaka::Dev = typename trait::DevType< T >::type
 The device type trait alias template to remove the ::type. More...
 

Functions

template<typename T >
ALPAKA_FN_HOST auto alpaka::getDev (T const &t)
 
template<typename TDev >
ALPAKA_FN_HOST auto alpaka::getFreeMemBytes (TDev const &dev) -> std::size_t
 
template<typename TDev >
ALPAKA_FN_HOST auto alpaka::getMemBytes (TDev const &dev) -> std::size_t
 
template<typename TDev >
ALPAKA_FN_HOST auto alpaka::getName (TDev const &dev) -> std::string
 
template<typename TDev >
constexpr ALPAKA_FN_HOST auto alpaka::getPreferredWarpSize (TDev const &dev) -> std::size_t
 
template<typename TDev >
ALPAKA_FN_HOST auto alpaka::getWarpSizes (TDev const &dev) -> std::vector< std::size_t >
 
template<typename TDev >
ALPAKA_FN_HOST auto alpaka::reset (TDev const &dev) -> void
 Resets the device. What this method does is dependent on the accelerator. More...
 
auto alpaka::detail::trim (std::string s) -> std::string
 

Variables

template<typename TDev >
constexpr bool alpaka::isDevice = concepts::ImplementsConcept<ConceptDev, TDev>::value
 True if TDev is a device, i.e. if it implements the ConceptDev concept. More...