#ifndef CK_STATIC_BUFFER_HPP #define CK_STATIC_BUFFER_HPP #include "statically_indexed_array.hpp" namespace ck { template struct StaticBuffer : public StaticallyIndexedArray { using type = T; using base = StaticallyIndexedArray; __host__ __device__ constexpr StaticBuffer() : base{} {} __host__ __device__ static constexpr AddressSpace GetAddressSpace() { return BufferAddressSpace; } __host__ __device__ static constexpr bool IsStaticBuffer() { return true; } __host__ __device__ static constexpr bool IsDynamicBuffer() { return false; } }; template __host__ __device__ constexpr auto make_static_buffer(Number) { return StaticBuffer{}; } } // namespace ck #endif