Skip to content

Commit

Permalink
Unvendor nlohmann json (#15956)
Browse files Browse the repository at this point in the history
Bring json in from CPM package manager.
  • Loading branch information
blozano-tt authored Dec 13, 2024
1 parent b314a49 commit 8d1206f
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 27,559 deletions.
6 changes: 6 additions & 0 deletions dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ CPMAddPackage(NAME range-v3 GITHUB_REPOSITORY ericniebler/range-v3 GIT_TAG 0.12.
############################################################################################################################

CPMAddPackage(NAME pybind11 GITHUB_REPOSITORY pybind/pybind11 GIT_TAG b8f28551cc3a98ea9fbfc15c05b513c8f2d23e84)

############################################################################################################################
# nlohmann/json : https://github.com/nlohmann/json
############################################################################################################################

CPMAddPackage(NAME json GITHUB_REPOSITORY nlohmann/json GIT_TAG v3.9.1)
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ target_link_libraries(
INTERFACE
pthread
gmock_main
nlohmann_json::nlohmann_json
magic_enum
fmt::fmt-header-only
span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#pragma once

#include "tt_metal/third_party/json/json.hpp"
#include <nlohmann/json.hpp>
#include "tt_metal/common/core_coord.hpp"

static inline std::string to_string(pkt_dest_size_choices_t choice) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "impl/event/event.hpp"
#include "impl/program/program.hpp"
#include "tests/tt_metal/tt_metal/common/dispatch_fixture.hpp"
#include "third_party/json/json.hpp"
#include <nlohmann/json.hpp>
#include "tt_metal/common/logger.hpp"
#include "ttnn/device.hpp"
#include "ttnn/graph/graph_operation_queries.hpp"
Expand Down
1 change: 1 addition & 0 deletions tt_metal/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ target_link_libraries(common PRIVATE yaml-cpp::yaml-cpp)
target_link_libraries(
common
PUBLIC
nlohmann_json::nlohmann_json
magic_enum
fmt::fmt-header-only
span
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/common/core_coord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <string>
#include <vector>

#include "third_party/json/json.hpp"
#include <nlohmann/json.hpp>
#include "umd/device/tt_xy_pair.h"
#include "tt_metal/tt_stl/reflection.hpp"
#include "tt_metal/tt_stl/span.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tt_metal/impl/buffers/buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "umd/device/types/xy_pair.h"
#include "tt_metal/tt_stl/concepts.hpp"
#include "tt_metal/common/assert.hpp"
#include "third_party/json/json.hpp"
#include <nlohmann/json.hpp>

#include "llrt/hal.hpp"

Expand Down
Loading

0 comments on commit 8d1206f

Please sign in to comment.