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

Method AllocPinned

oneflow/core/ep/cpu/cpu_device.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70Maybe<void> CpuDevice::AllocPinned(const AllocationOptions& options, void** ptr, size_t size) {
71 AllocationOptions new_options = options;
72 new_options.ClearPinnedDevice();
73 return Alloc(new_options, ptr, size);
74}
75
76void CpuDevice::FreePinned(const AllocationOptions& options, void* ptr) {
77 AllocationOptions new_options = options;

Callers 5

AllocMethod · 0.45
PinnedMemoryGuardMethod · 0.45
TestAddFunction · 0.45
AllocateMethod · 0.45

Calls 1

ClearPinnedDeviceMethod · 0.80

Tested by 2

PinnedMemoryGuardMethod · 0.36
TestAddFunction · 0.36