22 template<
typename T,
typename TSfinae =
void>
26 template<
typename T,
typename TSfinae =
void>
30 template<
typename TDev,
typename TSfinae =
void>
34 template<
typename TDev,
typename TSfinae =
void>
38 template<
typename T,
typename TSfinae =
void>
42 template<
typename T,
typename TSfinae =
void>
46 template<
typename T,
typename TSfinae =
void>
50 template<
typename T,
typename TSfinae =
void>
63 template<
typename TDev>
76 inline auto trim(std::string s) -> std::string
78 auto const pred = [](
char c) {
return !std::isspace(c); };
79 s.erase(std::find_if(rbegin(s), rend(s), pred).base(),
end(s));
86 template<
typename TDev>
94 template<
typename TDev>
103 template<
typename TDev>
110 template<
typename TDev>
117 template<
typename TDev>
125 template<
typename TDev>
134 template<
typename TDev>
135 struct DevType<TDev, std::enable_if_t<interface::ImplementsInterface<ConceptDev, TDev>::value>>
auto trim(std::string s) -> std::string
typename detail::ImplementationBaseType< TInterface, TDerived >::type ImplementationBase
Returns the type that implements the given interface in the inheritance hierarchy.
ALPAKA_FN_HOST auto end(TView &view) -> Iterator< TView >
ALPAKA_FN_HOST auto begin(TView &view) -> Iterator< TView >
The alpaka accelerator library.
ALPAKA_FN_HOST auto getName(TDev const &dev) -> std::string
typename trait::DevType< T >::type Dev
The device type trait alias template to remove the ::type.
ALPAKA_FN_HOST auto getWarpSizes(TDev const &dev) -> std::vector< std::size_t >
ALPAKA_FN_HOST auto reset(TDev const &dev) -> void
Resets the device. What this method does is dependent on the accelerator.
ALPAKA_FN_HOST auto getFreeMemBytes(TDev const &dev) -> std::size_t
ALPAKA_FN_HOST auto getMemBytes(TDev const &dev) -> std::size_t
constexpr ALPAKA_FN_HOST auto getPreferredWarpSize(TDev const &dev) -> std::size_t
ALPAKA_FN_HOST auto getDev(T const &t)
constexpr bool isDevice
True if TDev is a device, i.e. if it implements the ConceptDev concept.
Checks whether the interface is implemented by the given class.
typename interface::ImplementationBase< ConceptDev, TDev > type
The device free memory size get trait.
The device memory size get trait.
The device name get trait.
The device preferred warp size get trait.
The device warp size get trait.