Expose nholmann json to torch (#129570)

Summary:

Expose nlohmann json library so that it can be used from inside Pytorch. The library already exists in the `third_party` directory. This PR is making `nlohmann/json.hpp` header available to be used from `torch.distributed`.
The next PR makes actual use of this header.

imported-using-ghimport

Test Plan: Imported from OSS

Reviewed By: malfet

Differential Revision: D59035246

Pulled By: c-p-i-o

Pull Request resolved: https://github.com/pytorch/pytorch/pull/129570
Approved by: https://github.com/d4l3k, https://github.com/malfet
This commit is contained in:
Chirag Pandya
2024-06-26 21:59:23 +00:00
committed by PyTorch MergeBot
parent 5ad2ad5921
commit 64f1111d38
7 changed files with 39 additions and 1 deletions

View File

@ -174,6 +174,12 @@ new_local_repository(
path = "third_party/cpp-httplib",
)
new_local_repository(
name = "nlohmann",
build_file = "//third_party:nlohmann.BUILD",
path = "third_party/nlohmann",
)
new_local_repository(
name = "tensorpipe",
build_file = "//third_party:tensorpipe.BUILD",