mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-13 17:55:48 +00:00
13 lines
235 B
C++
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>;
|