Skip to content
Snippets Groups Projects
Unverified Commit 20443d00 authored by cheng cheng's avatar cheng cheng Committed by GitHub
Browse files

Remove MemoryCaseUtil::MergeThrdMemZoneId (#4705)


Co-authored-by: default avataroneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
parent 28eeb94d
No related branches found
No related tags found
No related merge requests found
......@@ -76,10 +76,6 @@ bool MemoryCaseUtil::IsHostUnPinnedMemoryCase(const MemoryCase& mem_case) {
&& !mem_case.host_mem().used_by_network();
}
int64_t MemoryCaseUtil::MergeThrdMemZoneId(int64_t thrd_id, const MemoryCase& mem_case) {
return (thrd_id << 21) | (MemoryCaseUtil::GenMemZoneId(mem_case));
}
std::shared_ptr<MemoryCase> MemoryCaseUtil::MakeMemCase(const DeviceType device_type,
const int64_t device_id) {
const auto& mem_case = std::make_shared<MemoryCase>();
......
......@@ -48,8 +48,6 @@ struct MemoryCaseUtil {
static int64_t GenMemZoneId(const MemoryCase& mem_case);
static int64_t MergeThrdMemZoneId(int64_t thrd_id, const MemoryCase& mem_case);
static bool IsHostUnPinnedMemoryCase(const MemoryCase& mem_case);
static std::shared_ptr<MemoryCase> MakeMemCase(const DeviceType device_type,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment