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

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

* Move namespace 'literals' as 'ck::literals'

[ROCm/composable_kernel commit: a670a5a092]
This commit is contained in:
Po Yen Chen
2022-08-13 06:48:35 +08:00
committed by GitHub
parent 53be609c5f
commit c25a7c2ac3
2 changed files with 6 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ struct ExecutionConfig final
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 f_host_tensor_descriptor =

View File

@@ -3,6 +3,8 @@
#pragma once
namespace ck {
namespace literals {
// [P0330] Literal Suffix for (signed) size_t (C++23)
// ref: https://wg21.link/p0330r8
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)
{
return static_cast<std::size_t>(size);
}
} // namespace literals
} // namespace ck