Application Programming Interface for NumaAllocators.jl

NumaAllocators.NumaAllocatorsModule
NumaAllocators

Extends ArrayAllocators to allocate memory on specific NUMA nodes.

Examples

using NumaAllocators

Array{UInt8}(numa(0), 100)
Array{UInt8}(NumaAllocator(1), 100)
source

Main Interface

NumaAllocators.numaFunction
numa(node)

Create a NumaAllocator on NUMA node node. Short hand for NumaAllocator constructor.

Example

julia> using NumaAllocators

julia> Array{UInt8}(numa(0), 32, 32);
source
NumaAllocators.NumaAllocatorType
NumaAllocator(node)

Cross-platform NUMA allocator

Example

julia> using NumaAllocators

julia> Array{UInt8}(NumaAllocator(0), 32, 32);
source

Platform Specific Interface

Windows

NumaAllocators.WindowsModule
NumaAllocators.Windows

NUMA support for Windows.

See also https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualallocexnuma

source
NumaAllocators.Windows.WinNumaAllocatorType
WinNumaAllocator

Allocate memory on a specific NUMA node with VirtualAllocExNuma.

See also https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualallocexnuma

source

Linux