PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

sum reduction

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
jand



Joined: 17 Aug 2008
Posts: 57

PostPosted: Sat Aug 04, 2012 7:32 am    Post subject: sum reduction Reply with quote

Hi,

I'd like to use the sum reductions for a complex valued array "sum_dev" as shown below:

Code:

!$acc region
  sumVal_dev = sum(sum_dev)
!$acc end region


When I compile, I get several compiler errors. The code works fine for real-valued array. Is it possible to use the acc region for sum of a complex array?

Thanks, Jan
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Aug 07, 2012 8:47 am    Post subject: Reply with quote

Hi Jan,

Sorry, but right now automatic reductions for complex values is not supported. We're actually in the process of revamping how we represent and compute complex values within Fortran across all target architectures. Once this work is completed, it will become much easier to support things like complex reductions within accelerator compute regions.

- Mat
Back to top
View user's profile
jand



Joined: 17 Aug 2008
Posts: 57

PostPosted: Tue Aug 07, 2012 8:52 am    Post subject: Reply with quote

Thanks Mat, that is good news. It would be great to have full support for complex valued variables, since it's one of the strongest points of fortran.

Cheers, Jan
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
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