[Reland]Use cpuinfo to determine c10::ThreadPool thread number (#107339)

Relands PR #107010 and fixes BUCK builds.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/107339
Approved by: https://github.com/ezyang
This commit is contained in:
cyy
2023-09-14 23:44:23 +00:00
committed by PyTorch MergeBot
parent fa62308673
commit 8cb96f5f2c
6 changed files with 21 additions and 9 deletions

View File

@ -11,6 +11,7 @@ cxx_library(
],
),
deps = [
"//third_party:cpuinfo",
"//third_party:fmt",
"//third_party:glog",
],