Closed JinwoongKim closed 8 years ago
We can avoid the cost of the transfer between pageable and pinned host arrays by directly allocating our host arrays in pinned memory.
However, It is possible for pinned memory allocation to fail, so you should always check for errors.
cudaError_t status = cudaMallocHost((void**)&h_aPinned, bytes); if (status != cudaSuccess) printf("Error allocating pinned host memoryn");
I implemented it in Chunk Manager
We can avoid the cost of the transfer between pageable and pinned host arrays by directly allocating our host arrays in pinned memory.
However, It is possible for pinned memory allocation to fail, so you should always check for errors.