MCPcopy
hub / github.com/dmlc/dgl / pin_memory_

Method pin_memory_

python/dgl/_ffi/ndarray.py:362–364  ·  view source on GitHub ↗

Pin host memory and map into GPU address space (in-place)

(self)

Source from the content-addressed store, hash-verified

360 return target
361
362 def pin_memory_(self):
363 """Pin host memory and map into GPU address space (in-place)"""
364 check_call(_LIB.DGLArrayPinData(self.handle))
365
366 def unpin_memory_(self):
367 """Unpin host memory pinned by pin_memory_()"""

Callers 2

pin_memory_inplaceFunction · 0.45
__init__Method · 0.45

Calls 1

check_callFunction · 0.85

Tested by

no test coverage detected