def alloc_host(num_bytes):
    ptr = ct.c_void_p(0)
    c_num_bytes = c_dim_t(num_bytes)
    safe_call(backend.get().af_alloc_host(ct.pointer(ptr), c_num_bytes))
    return ptr.value
Allocate a buffer on the host with specified number of bytes.
dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/device.py/alloc_host