alloc_device

arrayfire_wrapper.lib.alloc_device(num_bytes: int, /) int

source: https://arrayfire.org/docs/group__device__func__alloc.htm#gaa8868199b29eae4bac42cc22ff5891a9

Allocate a buffer on the device with specified number of bytes.