"src/vscode:/vscode.git/clone" did not exist on "c06d254a7cd4f279396d155ca0a1ab80e024761f"
constant_integral.hip.hpp 233 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#pragma once

template <class T, T N>
struct integral_constant
{
    static const T value = N;

    __host__ __device__ constexpr T Get() const { return value; }
};

Chao Liu's avatar
Chao Liu committed
11
12
template <index_t N>
using Number = integral_constant<index_t, N>;