CuPySyncNumbaManager

class cubie.memory.cupy_emm.CuPySyncNumbaManager(context)[source]

Bases: CuPyNumbaManager

Numba EMM plugin using CuPy MemoryPool for allocation and freeing.

Parameters:

context – CUDA context for memory management.

Notes

Uses CuPy’s synchronous memory pool which provides standard memory operations.

initialize() None[source]

Initialize the sync memory pool.

Returns:

None.

Return type:

None

memalloc(nbytes: int) FakeMemoryPointer[source]

Allocate memory from the sync CuPy pool.

Parameters:

nbytes – Number of bytes to allocate.

Returns:

Numba memory pointer wrapping the CuPy allocation.

Return type:

MemoryPointer