# problem with zerocopy

**URL:** <https://forums.developer.nvidia.com/t/problem-with-zerocopy/13185>\
**Category:** CUDA Programming and Performance\
**Created:** [November 11, 2009, 6:59am UTC](https://forums.developer.nvidia.com/t/problem-with-zerocopy/13185 "2009-11-11T06:59:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![queeten](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@queeten](https://forums.developer.nvidia.com/u/queeten)\
**Post date:** [November 11, 2009, 6:59am UTC](https://forums.developer.nvidia.com/t/problem-with-zerocopy/13185/1 "2009-11-11T06:59:40Z")

</div>

hi all,  
I now have a problem with zero copy.  
everytime I lauch the app, runtime hints me that " unspecified launch failure in prior launch."  
and I checked that line, it was: cutilSafeCall(cudaHostGetDevicePointer((void \*\*)&d\_a, (void \*)a, 0));  
this error occurred before any kernel was launched.  
i called  
cutilSafeCall(cudaHostAlloc((void \*\*)&a, a\_size \* sizeof(unsigned), cudaHostAllocMap));  
cudaDeviceProp deviceProp;  
cutilSafeCall(cudaGetDeviceProperties(&deviceProp, 0));  
if (!deviceProp.canMapHostMemory)  
{  
fprintf(stderr, “zero copy not supported\n”);  
exit(0);  
}  
cudaSetDeviceFlags(cudaDeviceMapHost);  
before I want to get the mapped device pointer. I think this should just be the routine to use zero copy feature.  
is there any one ever encountered this problem; and what might be the crux?  
thanks in advance.

---

<div class="post-metadata">

**Author:** ![Simon\_Green](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Simon\_Green](https://forums.developer.nvidia.com/u/Simon_Green)\
**Post date:** [November 11, 2009, 11:40am UTC](https://forums.developer.nvidia.com/t/problem-with-zerocopy/13185/2 "2009-11-11T11:40:13Z")

</div>

Does the “simpleZeroCopy” SDK sample work on your machine?
