Can I use thrust::host_vector or I must use cudaHostAlloc for zero-copy with Thrust?

Viewed 1388

I want to use zero-copy on mapped memory by cudaHostGetDevicePointer. Can I use thrust::host_vector or I must use cudaHostAlloc(...,cudaHostAllocMapped)? Or is it somehow easier to do with Thrust?

1 Answers
Related