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

Function InSameStream

paddle/phi/core/memory/malloc.cc:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool InSameStream(const std::shared_ptr<Allocation>& allocation,
54 const phi::Stream& stream) {
55 return allocation::AllocatorFacade::Instance().InSameStream(allocation,
56 stream);
57}
58
59void* GetBasePtr(const std::shared_ptr<Allocation>& allocation) {
60 return allocation::AllocatorFacade::Instance().GetBasePtr(allocation);

Callers 1

mutable_dataMethod · 0.50

Calls 2

InstanceFunction · 0.85
InSameStreamMethod · 0.45

Tested by

no test coverage detected