mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-13 01:36:06 +00:00
13 lines
233 B
C++
13 lines
233 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 <index_t N>
|
|
using Number = integral_constant<index_t, N>;
|