#ifndef CK_DIMENSION_HPP #define CK_DIMENSION_HPP #include "common_header.hpp" namespace ck { template struct Dimension { __host__ __device__ static constexpr auto GetLength() { return Number{}; } }; template struct NativeDimension { __host__ __device__ static constexpr auto GetLength() { return Number{}; } __host__ __device__ static constexpr auto GetStride() { return Number{}; } __host__ __device__ static constexpr index_t GetOffset(index_t i) { return i * Stride; } __host__ __device__ static constexpr index_t GetOffsetDiff(index_t i_diff) { return i_diff * Stride; } }; } // namespace ck #endif