Frequently Asked Question

How to integrate with KAYA SDK and NVIDIA GPUDirect?
Last Updated 3 years ago

NVIDIA GPUDirect for video technology helps to efficiently transfer video frames in and out of NVIDIA GPU memory. It enables you to establish a direct connection between frame grabber and GPU, “cutting the middleman” memory copy and minimizing latency issues. All that is required is a simple and straight forward integration process, made even simpler by this manual.

image


Integrating compatible NVIDIA[1] cards is quick and easy:

  • Use our "KYFGLib_Example_QueuedBuffers.c" as your starting point.
  • Replace all '_aligned_malloc' function calls with ‘cudaHostAlloc’.
The following call of KAYA’s ‘KYFG_BufferAnnounce’ function will attempt to internally map virtual memory to physical addresses needed for DMA operations. Since that memory has already been mapped by ‘cudaHostAlloc’, the resulting physical addresses map will be identical - which means the video stream physical memory used by KAYA’s frame grabber will become immediately available to NVIDIA stack, avoiding the need for additional memory transfer.



[1] A list of compatible GPU’s can be found at: NVIDIA DESIGNWORKS - NVIDIA GPUDirect™ for Video

Please Wait!

Please wait... it will take a second!