Can someone provide an example of mapping/binding vx_image to a cuda array? There are some words in the Visionworks document section cuda-openvx interop but they are not very helpful. Mapping function, vxMapImagePatch(…) does exist but I don’t know how to get “struct nvx_cuarray_handle_2d_t” from it?
My goal is to be able to bind vx_image to a cuda texture so I can access top bottom pixels with cache misses. The only viable solution I can see is this flag, NVX_MEMORY_TYPE_CUDA_ARRAY. I can bind a CuArray as a cuda texutre and access cuda texture in a kernel. Please help.
In general, Visionworks document is not really strong. I hope it could be improved in the future.