mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-04 08:00:58 +08:00
[Reland2] fix missing-prototypes warnings in torch_cpu (Part 4) (#102228)
This PR relands the changes introduced in PR https://github.com/pytorch/pytorch/pull/100849. The old PR turnd nnc_* functions into static. We now add declarations for them and hope that inter builds will pass. Pull Request resolved: https://github.com/pytorch/pytorch/pull/102228 Approved by: https://github.com/albanD
This commit is contained in:
@ -41,7 +41,7 @@ std::unordered_map<std::string, worker_id_t> collectNames(
|
||||
return nameToId;
|
||||
}
|
||||
|
||||
std::vector<std::string> splitString(
|
||||
static std::vector<std::string> splitString(
|
||||
const std::string& s,
|
||||
const std::string& delim) {
|
||||
std::vector<std::string> tokens;
|
||||
@ -154,7 +154,7 @@ const string storeKeyActiveCallCount = "ACTIVE_CALLS";
|
||||
const string storeKeyReady = "READY";
|
||||
static std::atomic<int> barrierId(0);
|
||||
|
||||
std::tuple<std::string, std::string, std::string> getNextKeyIds() {
|
||||
static std::tuple<std::string, std::string, std::string> getNextKeyIds() {
|
||||
barrierId++;
|
||||
std::string processCountKey =
|
||||
fmt::format("{}{}{}", storeKeyProcessCount, storeKeyBarrierId, barrierId);
|
||||
|
||||
Reference in New Issue
Block a user