pinned memory allocation to speed up Host <-> Device transfer