nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Can I use CUDA and VDPAU together? (http://www.nvnews.net/vbulletin/showthread.php?t=152408)

dean1873 06-26-10 02:59 AM

Can I use CUDA and VDPAU together?
 
Hi, guys,

I want to use the VDPAU to decode a series of YUV pictures from an H.264 stream, and then use CUDA to do the post-processing. I hope to keep the pictures in the graphic card memory where VdpVideoSurface points to, so that I don't need to store the pictures to CPU memory in order to improve the overall performance.

But as I know CUDA and VDPAU can not be used at the same time, so that I have to quit VDPAU and then launch CUDA. So the VpdVideoSurface will be destroy by then.

How can I keep the pointer information of those YUV pictures which are used to be pointed by the VdpVideoSurface handle? Is there any method that can avoid not violate the picture addresses by using CUDA malloc?

Thanks a lot!

conky 06-26-10 03:07 AM

Re: Can I use CUDA and VDPAU together?
 
They can be used together as of 256.25. The release announcement for that driver says there is information in the CUDA documentation on using VDPAU and CUDA together.
http://www.nvnews.net/vbulletin/showthread.php?t=151186

dean1873 06-26-10 07:08 AM

Re: Can I use CUDA and VDPAU together?
 
Awesome! Thank you so much :)

Stephen Warren 07-07-10 12:03 PM

Re: Can I use CUDA and VDPAU together?
 
FYI, even before 256.25, I'm not aware of any reason that CUDA and VDPAU can't be used together. The only issue is that since there was no interop API, surfaces would have to be copied to system memory (Vdp*GetBits*) and then uploaded to the GPU for use by CUDA. Are you aware of any issues that prevent this working, albeit at poor performance?


All times are GMT -5. The time now is 02:52 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.