Skip to content

Commit

Permalink
use Type::Code
Browse files Browse the repository at this point in the history
refactored in nv-legate/legate#697
  • Loading branch information
madsbk committed May 10, 2023
1 parent 37527b6 commit fe74c4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions legate/cpp/legate_kvikio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace legate_kvikio {
* @brief Functor converting Legate type code to size
*/
struct elem_size_fn {
template <legate::LegateTypeCode DTYPE>
template <legate::Type::Code DTYPE>
size_t operator()()
{
return sizeof(legate::legate_type_of<DTYPE>);
Expand All @@ -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{});
}
Expand Down
2 changes: 1 addition & 1 deletion legate/cpp/tile_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ std::filesystem::path get_file_path(const std::string& dirpath,
*/
template <bool IsReadOperation>
struct tile_read_write_fn {
template <legate::LegateTypeCode CODE, int32_t DIM>
template <legate::Type::Code CODE, int32_t DIM>
void operator()(legate::TaskContext& context, legate::Store& store)
{
using DTYPE = legate::legate_type_of<CODE>;
Expand Down

0 comments on commit fe74c4f

Please sign in to comment.