MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetUniqueMemCaseId

Function GetUniqueMemCaseId

oneflow/core/memory/memory_case_util.cpp:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79int64_t GetUniqueMemCaseId(int64_t machine_id, const MemoryCase& mem_case) {
80 int64_t id = 0;
81 id |= (machine_id << kNodeIndexShift << kPinnedDeviceShift);
82 id |= GetMemCaseId(mem_case);
83 return id;
84}
85
86std::shared_ptr<MemoryCase> MakeMemCaseShared(const DeviceType device_type,
87 const int64_t device_id) {

Callers 3

AddChunkProtoMethod · 0.85
MergeReusedChunkFunction · 0.85

Calls 1

GetMemCaseIdFunction · 0.85

Tested by

no test coverage detected