Unverified Commit a670a5a0 authored by Po Yen Chen's avatar Po Yen Chen Committed by GitHub
Browse files

Move literal ""_uz & ""_zu into namespace 'ck::literals' (#354)

* Move literal ""_uz & ""_zu into namespace 'literals'

* Move namespace 'literals' as 'ck::literals'
parent 0c6ef7c1
...@@ -22,6 +22,8 @@ struct ExecutionConfig final ...@@ -22,6 +22,8 @@ struct ExecutionConfig final
bool run_gemm_add_add_fastgelu(const ProblemSize& problem_size, const ExecutionConfig& config) bool run_gemm_add_add_fastgelu(const ProblemSize& problem_size, const ExecutionConfig& config)
{ {
using namespace ck::literals;
auto& [M, N, K, StrideA, StrideB, StrideD0, StrideD1, StrideE] = problem_size; auto& [M, N, K, StrideA, StrideB, StrideD0, StrideD1, StrideE] = problem_size;
auto f_host_tensor_descriptor = auto f_host_tensor_descriptor =
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#pragma once #pragma once
namespace ck {
namespace literals {
// [P0330] Literal Suffix for (signed) size_t (C++23) // [P0330] Literal Suffix for (signed) size_t (C++23)
// ref: https://wg21.link/p0330r8 // ref: https://wg21.link/p0330r8
inline constexpr std::size_t operator""_uz(unsigned long long size) inline constexpr std::size_t operator""_uz(unsigned long long size)
...@@ -14,3 +16,5 @@ inline constexpr std::size_t operator""_zu(unsigned long long size) ...@@ -14,3 +16,5 @@ inline constexpr std::size_t operator""_zu(unsigned long long size)
{ {
return static_cast<std::size_t>(size); return static_cast<std::size_t>(size);
} }
} // namespace literals
} // namespace ck
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment