MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / GetCurrentThreadName

Function GetCurrentThreadName

paddle/phi/core/os_info.cc:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::string GetCurrentThreadName() {
96 const auto& thread_name =
97 ThreadDataRegistry<std::string>::GetInstance().GetCurrentThreadData();
98 return thread_name.empty() ? kDefaultThreadName : thread_name;
99}
100
101std::unordered_map<uint64_t, std::string> GetAllThreadNames() {
102 return ThreadDataRegistry<std::string>::GetInstance()

Callers 7

SetXdlCtxMethod · 0.85
GetXdlCtxMethod · 0.85
ThreadEventRecorderMethod · 0.85
InitMethod · 0.85
RunInstructionMethod · 0.85
RunInstructionBaseMethod · 0.85
TESTFunction · 0.85

Calls 2

GetInstanceFunction · 0.85
emptyMethod · 0.45

Tested by 1

TESTFunction · 0.68