How to copy the captured frame data to CUDA directly without copy to CPU first?
Closed this issue · 1 comments
GF-Huang commented
I had try cudaGraphicsD3D11RegisterResource
but got either cudaErrorInvalidDevice
or memory access violation. Could you give some suggestions?
robmikh commented
Unfortunately, I can't really provide much guidance here. I don't know much about CUDA. Some things to consider:
- Make sure your D3D device is on the same adapter as where your CUDA code will execute.
- Unless you can retrieve a D3D device from a CUDA object, you'll likely need to use shared textures.
- Are you able to get a texture from a CUDA object? It might be easier to do a video memory copy (CopyResource or CopySubresourceRegion) than to insert an outside texture into CUDA.
I'm going to close this, as CUDA is far outside the scope of this sample.