PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

using IF statement in data region

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



Joined: 23 Nov 2009
Posts: 35

PostPosted: Fri Mar 23, 2012 9:49 pm    Post subject: using IF statement in data region Reply with quote

Why is this not allowed?

Code:

!$acc data region if (.not. openshell)
!$acc> copyin(ca_acc_t(1:l1,1:na))
C
!$acc data region if (openshell)
!$acc> copyin(ca_acc_t(1:l1,1:na))
!$acc> copyin(cb_acc_t(1:l1,1:na))

... some code ...

!$acc end data region
!$acc end data region
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Mar 26, 2012 9:58 am    Post subject: Reply with quote

Hi sslgamess,

The IF Clause can only be applied to compute regions, not data regions.

- Mat
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