MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / get

Method get

src/targets/gpu/hip.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 std::unordered_map<void*, std::weak_ptr<void>> cache;
76 std::mutex m;
77 std::shared_ptr<void> get(void* ptr)
78 {
79 std::lock_guard<std::mutex> lock(m);
80 auto it = cache.find(ptr);
81 if(it != cache.end())
82 return it->second.lock();
83 return nullptr;
84 }
85
86 void put(const std::shared_ptr<void>& p)
87 {

Callers 7

putMethod · 0.45
register_on_gpuFunction · 0.45
write_to_gpuFunction · 0.45
allocate_gpuFunction · 0.45
hip_async_memsetFunction · 0.45
hip_async_copyFunction · 0.45
gpu_copyFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected