MCPcopy Create free account
hub / github.com/LMCache/LMCache / alloc_numa_ptr

Function alloc_numa_ptr

lmcache/python_ops_fallback.py:534–537  ·  view source on GitHub ↗

Non-CUDA equivalent of allocating numa memory and returning pointer to it. Note: Numa memory is not supported on non-CUDA.

(size: int, numa_id: int = 0)

Source from the content-addressed store, hash-verified

532
533
534def alloc_numa_ptr(size: int, numa_id: int = 0) -> int:
535 """Non-CUDA equivalent of allocating numa memory and returning pointer
536 to it. Note: Numa memory is not supported on non-CUDA."""
537 return alloc_pinned_numa_ptr(size, numa_id)
538
539
540def free_numa_ptr(ptr: int, size: int | None = None) -> None:

Callers

nothing calls this directly

Calls 1

alloc_pinned_numa_ptrFunction · 0.85

Tested by

no test coverage detected