Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-26-10, 02:59 AM   #1
dean1873
Registered User
 
Join Date: Feb 2009
Posts: 19
Exclamation 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!
dean1873 is offline   Reply With Quote
Old 06-26-10, 03:07 AM   #2
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default 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
conky is offline   Reply With Quote
Old 06-26-10, 07:08 AM   #3
dean1873
Registered User
 
Join Date: Feb 2009
Posts: 19
Default Re: Can I use CUDA and VDPAU together?

Awesome! Thank you so much
dean1873 is offline   Reply With Quote
Old 07-07-10, 12:03 PM   #4
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default 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?
Stephen Warren is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:28 AM.


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