Application Programming Interface for NumaAllocators.jl

NumaAllocators.NumaAllocators — Module
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.numa — Function
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.NumaAllocator — Type
NumaAllocator(node)

Cross-platform NUMA allocator

Example

julia> using NumaAllocators

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

Platform Specific Interface

Windows

NumaAllocators.Windows — Module
NumaAllocators.Windows

NUMA support for Windows.

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

source
NumaAllocators.Windows.WinNumaAllocator — Type
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