PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

real-to-complex 'in place' transforms with cufft and fortran

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
nrattermann



Joined: 12 Dec 2011
Posts: 1

PostPosted: Mon Apr 09, 2012 10:31 am    Post subject: real-to-complex 'in place' transforms with cufft and fortran Reply with quote

Can you do in place real-to-complex transforms with CUFFT using cuda fortran? It's possible with CUDA C by casting the variable to a 'real' data type (pointer?) as is in the following example...

/∗ Use the CUFFT plan to transform the signal in place. ∗/
if (cufftExecR2C(plan,(cufftReal∗)data, data ) != CUFFT_SUCCESS ) {
fprintf(stderr,"CUFFT error: ExecC2C Forward failed");
return;
}

where data is of type cufftComplex.

this is also using a cufft module which uses iso_c_binding to utilize the c routines.
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 132

PostPosted: Mon Apr 09, 2012 1:17 pm    Post subject: Reply with quote

Did you write the module? It depends on how the interface is written in the module.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
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