Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Make sure you're calling waitForCompletion between each method call. CUDA methods are asynchronous and can return immediately, and the work goes on until you copy the memory back.

You can see information about how that works in the Optimization section of this tutorial.