Skip to content

Commit

Permalink
Bump MagicEnum to v0.9.7 (#16065)
Browse files Browse the repository at this point in the history
### Ticket
Closes #16036

### Problem description
Consumers cannot opt to use an external MagicEnum as the #include
statements are incompatible.

### What's changed
Bump to MagicEnum v0.9.7 which unifies the way to consume it across
source and post-install.
  • Loading branch information
afuller-TT authored Dec 16, 2024
1 parent 8d01f5d commit 923b2bb
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ endif()
# magic_enum : https://github.com/Neargye/magic_enum
############################################################################################################################

CPMAddPackage(NAME magic_enum GITHUB_REPOSITORY Neargye/magic_enum GIT_TAG v0.9.6)
CPMAddPackage(NAME magic_enum GITHUB_REPOSITORY Neargye/magic_enum GIT_TAG v0.9.7)

############################################################################################################################
# fmt : https://github.com/fmtlib/fmt
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_bcast_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/data_movement/bcast/bcast.hpp"
#include "common/constants.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <ttnn/operations/functions.hpp>

using namespace tt;
Expand Down
2 changes: 1 addition & 1 deletion tests/tt_eager/ops/test_sfpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <cmath>
#include <sstream>

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

#include "tt_metal/host_api.hpp"
#include "tt_metal/detail/tt_metal.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/common/tt_backend_api_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

#include "tt_backend_api_types.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

std::string tt::get_string(tt::ARCH arch) {
switch (arch) {
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/impl/allocator/allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "tt_metal/impl/allocator/allocator.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "tt_metal/common/math.hpp"
#include "tt_metal/detail/util.hpp"
#include "tt_metal/impl/allocator/algorithms/free_list.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/impl/dispatch/command_queue_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#pragma once
#include <climits>
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <mutex>

#include "tt_metal/common/base.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/impl/dispatch/data_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "tt_metal/impl/kernels/kernel.hpp"
#include "tt_metal/common/core_coord.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

using namespace tt;
using namespace tt::tt_metal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "common/bfloat16.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

using namespace tt;
using namespace tt::tt_metal;
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/programming_examples/matmul_common/bmm_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "tt_metal/common/bfloat16.hpp"

#include "umd/device/tt_xy_pair.h"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

#include "tt_metal/common/work_split.hpp"

Expand Down
2 changes: 1 addition & 1 deletion tt_metal/tools/profiler/op_profiler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "ttnn/tensor/tensor.hpp"
#include <nlohmann/json.hpp>
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "tools/profiler/profiler.hpp"
#include "tt_metal/impl/kernels/kernel.hpp"
#include "ttnn/operation.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/tt_stl/reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include "concepts.hpp"
#include <nlohmann/json.hpp>
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "type_name.hpp"
#include "tt_metal/common/logger.hpp"

Expand Down
2 changes: 1 addition & 1 deletion ttnn/cpp/pybind11/export_enum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

namespace py = pybind11;

Expand Down
2 changes: 1 addition & 1 deletion ttnn/cpp/ttnn/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <csignal>
#include <optional>

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/tensor/tensor_impl.hpp" // TTNN_TENSOR_PRINT_PROFILE
#include "ttnn/tensor/types.hpp"
Expand Down
2 changes: 1 addition & 1 deletion ttnn/cpp/ttnn/operations/core/to_layout/to_layout_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <optional>

#include "ttnn/tensor/tensor.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/tensor/host_buffer/functions.hpp"
#include "ttnn/tensor/tensor_utils.hpp"
#include "ttnn/operations/core/compute_kernel/compute_kernel_config.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "reshard_op.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

#include "reshard_program_factory.hpp"
#include "tt_metal/common/constants.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0

#include "binary_composite_op.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <utility>
#include "ttnn/operations/eltwise/binary/binary.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <functional>
#include <optional>
#include "ttnn/tensor/tensor.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/operations/core/core.hpp"

namespace ttnn::operations::binary {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include <functional>
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <optional>
#include <variant>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "ttnn/operations/creation.hpp"
#include "ttnn/common/constants.hpp"
#include "ttnn/operations/eltwise/binary_backward/binary_backward.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <utility>

namespace ttnn::operations::binary_backward {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <functional>
#include <optional>
#include "ttnn/tensor/tensor.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/operations/eltwise/complex/complex.hpp"

namespace ttnn::operations::complex_binary {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <functional>
#include <optional>
#include "ttnn/tensor/tensor.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/operations/eltwise/complex/complex.hpp"

namespace ttnn::operations::complex_unary {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <functional>
#include <optional>
#include "ttnn/tensor/tensor.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/operations/eltwise/complex/complex.hpp"

namespace ttnn::operations::complex_unary_backward {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <functional>
#include <optional>

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/tensor/tensor.hpp"
#include "ttnn/operations/core/core.hpp"
#include "ttnn/run_operation.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "tt_metal/host_api.hpp"
#include "tt_metal/tools/profiler/op_profiler.hpp"
#include "ttnn/operations/eltwise/ternary_backward/ternary_backward.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

namespace ttnn::operations::ternary_backward {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <functional>
#include <optional>

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <utility>
#include "tt_metal/common/bfloat16.hpp"
#include "ttnn/operations/data_movement/reshape_on_device/reshape.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <functional>
#include <optional>
#include "ttnn/tensor/tensor.hpp"
#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "ttnn/cpp/ttnn/operations/eltwise/ternary/where.hpp"
#include "ttnn/operations/eltwise/unary/unary.hpp"
#include "ttnn/operations/eltwise/binary/binary.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "unary_device_operation.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include "tt_metal/common/constants.hpp"
#include "tt_metal/host_api.hpp"
#include "tt_metal/tools/profiler/op_profiler.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <utility>
#include "ttnn/operations/data_movement/bcast/bcast.hpp"
#include "tt_metal/common/constants.hpp"
Expand Down
2 changes: 1 addition & 1 deletion ttnn/cpp/ttnn/operations/moreh/moreh_helper_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "moreh_helper_functions.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>
#include <utility>

#include "common/constants.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "tt_metal/common/constants.hpp"
#include "tt_metal/detail/util.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

#include <optional>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "tt_metal/common/constants.hpp"
#include "tt_metal/detail/util.hpp"

#include <magic_enum.hpp>
#include <magic_enum/magic_enum.hpp>

#include <optional>

Expand Down

0 comments on commit 923b2bb

Please sign in to comment.