Files
composable_kernel/src/include/constant_integral.hip.hpp
2019-03-17 03:22:41 -05:00

13 lines
235 B
C++

#pragma once
template <class T, T N>
struct integral_constant
{
static const T value = N;
__host__ __device__ constexpr T Get() const { return value; }
};
template <unsigned N>
using Number = integral_constant<unsigned, N>;