There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Possible async memory copy issue
I've just noticed that in CudaGPU.DoCopyToDeviceAsync (line 941), if this method makes a call to the async copy method, then it immediately unpins the host array, which could occur before the async copy is completed. Is this a problem?