To get the best data transfer performance, pinned memory is usually required for the host buffer. Boost.Compute provides pinned_allocator for this. But it\
pinned_allocator