alpaka
Abstraction Library for Parallel Kernel Acceleration
DimArithmetic.hpp
Go to the documentation of this file.
1
/* Copyright 2022 Benjamin Worpitz, Bernhard Manfred Gruber
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/dim/DimIntegralConst.hpp
"
8
9
#include <type_traits>
10
11
namespace
alpaka::trait
12
{
13
//! The arithmetic type dimension getter trait specialization.
14
template
<
typename
T>
15
struct
DimType
<T, std::enable_if_t<std::is_arithmetic_v<T>>>
16
{
17
using
type
=
DimInt<1u>
;
18
};
19
}
// namespace alpaka::trait
DimIntegralConst.hpp
alpaka::trait
The accelerator traits.
Definition:
AccCpuOmp2Blocks.hpp:112
alpaka::DimInt
std::integral_constant< std::size_t, N > DimInt
Definition:
DimIntegralConst.hpp:15
alpaka::trait::DimType< T, std::enable_if_t< std::is_arithmetic_v< T > > >::type
DimInt< 1u > type
Definition:
DimArithmetic.hpp:17
alpaka::trait::DimType
The dimension getter type trait.
Definition:
Traits.hpp:14
include
alpaka
dim
DimArithmetic.hpp
Generated on Thu Nov 21 2024 22:46:14 for alpaka by
1.9.1