From fe74c4febc2bbbe1c16a63cd842029c2e4bb25c4 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Wed, 10 May 2023 16:12:44 +0200 Subject: [PATCH] use Type::Code refactored in https://github.com/nv-legate/legate.core/pull/697 --- legate/cpp/legate_kvikio.cpp | 4 ++-- legate/cpp/tile_io.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/legate/cpp/legate_kvikio.cpp b/legate/cpp/legate_kvikio.cpp index f37cd25bab..4899fdece4 100644 --- a/legate/cpp/legate_kvikio.cpp +++ b/legate/cpp/legate_kvikio.cpp @@ -32,7 +32,7 @@ namespace legate_kvikio { * @brief Functor converting Legate type code to size */ struct elem_size_fn { - template + template size_t operator()() { return sizeof(legate::legate_type_of); @@ -45,7 +45,7 @@ struct elem_size_fn { * @param code Legate type code * @return The number of bytes */ -size_t sizeof_legate_type_code(legate::LegateTypeCode code) +size_t sizeof_legate_type_code(legate::Type::Code code) { return legate::type_dispatch(code, elem_size_fn{}); } diff --git a/legate/cpp/tile_io.cpp b/legate/cpp/tile_io.cpp index 74d4e012d9..ddc9dc7ceb 100644 --- a/legate/cpp/tile_io.cpp +++ b/legate/cpp/tile_io.cpp @@ -74,7 +74,7 @@ std::filesystem::path get_file_path(const std::string& dirpath, */ template struct tile_read_write_fn { - template + template void operator()(legate::TaskContext& context, legate::Store& store) { using DTYPE = legate::legate_type_of;