PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

How to use fft in PGI Fortran Accelerator?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
hzhcapricorn



Joined: 21 Mar 2011
Posts: 6

PostPosted: Wed Mar 23, 2011 8:04 am    Post subject: How to use fft in PGI Fortran Accelerator? Reply with quote

I am a new user of PGI Fortran. I need to do fft on GPU. I used fftw before, and I do not know what should I use if I want to run fft on GPU. Someone said I can use CUFFT but I do not know how to start. Any good articles, examples or suggestions about fft?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Wed Mar 23, 2011 8:30 am    Post subject: Reply with quote

Hi hzhcapricorn,

While this article focuses on CUBLAS, CULA, and MAGMA, you should be able to apply similar methods to CUFFT.
http://www.pgroup.com/lit/articles/insider/v3n1a5.htm

Let me know if you have any questions!
Mat
Back to top
View user's profile
hzhcapricorn



Joined: 21 Mar 2011
Posts: 6

PostPosted: Wed Mar 23, 2011 8:56 am    Post subject: Reply with quote

mkcolg wrote:
Hi hzhcapricorn,

While this article focuses on CUBLAS, CULA, and MAGMA, you should be able to apply similar methods to CUFFT.
http://www.pgroup.com/lit/articles/insider/v3n1a5.htm

Let me know if you have any questions!
Mat


Thanks. But I still want to know if I can use fftw in GPU?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6134
Location: The Portland Group Inc.

PostPosted: Wed Mar 23, 2011 9:32 am    Post subject: Reply with quote

Are you asking if you can call a fftw routine from within an accelerator region? Function calls are not yet supported on a GPU unless the routine can be in-lined. This a general restriction in GPU program since there isn't a linker for device code nor hardware support. This may change in the future, though.

Of course, you could implement your own FFT within an Accelerator region. That would be fine.

- Mat
Back to top
View user's profile
hzhcapricorn



Joined: 21 Mar 2011
Posts: 6

PostPosted: Wed Mar 23, 2011 3:38 pm    Post subject: Reply with quote

mkcolg wrote:
Are you asking if you can call a fftw routine from within an accelerator region? Function calls are not yet supported on a GPU unless the routine can be in-lined. This a general restriction in GPU program since there isn't a linker for device code nor hardware support. This may change in the future, though.

Of course, you could implement your own FFT within an Accelerator region. That would be fine.

- Mat


Does that mean even if I used functions of cufft within an accelerator region, I can still not run that on GPU?
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group