PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Vector array assignments within a $acc parallel region
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Mon Nov 25, 2013 8:45 am    Post subject: Reply with quote

Hi Rob,
Quote:
Does that mean that two copyout statements are generated (line 35 and 41)?
This is a common question. Those are "present_or_copyout" which checks if the data is already on the device before copying. The compiler adds them to allow for such things as pointer swapping and for data regions to span across subroutine boundaries.

In this case, the data is already there so the copy is only performed once at the end of the data region.

- Mat
Back to top
View user's profile
anirbanjana



Joined: 11 Aug 2012
Posts: 28

PostPosted: Wed Nov 27, 2013 12:37 pm    Post subject: Reply with quote

Hi,
I was going through this post as the issue here seems to be somewhat related to mine, where I also have vector assignments that give different results on CPU and GPU. I wanted to try mine with -acc=noautopar, but then I get
Code:

$ pgf90    -O -Mdalign -acc=noautopar -ta=nvidia,time -Minfo=inline,accel -Munixlogical -c -I. -Mnosave -Mfreeform -Mrecursive -Mreentrant -byteswapio -Minline=name:des_crossprdct_2d,name:des_crossprdct_3d,name:des_dotproduct,name:CFRELVEL_wall ./des/calc_force_des.f
pgf90-Error-Switch -acc with unknown keyword noautopar
-acc[=strict|verystrict]
                    Enable OpenACC directives
    strict          Issue warnings for non-OpenACC accelerator directives
    verystrict      Fail with an error for any non-OpenACC accelerator directive



My version of PGI is 13.3. Is that the problem here?

Thanks much
Anirban
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Nov 27, 2013 1:36 pm    Post subject: Reply with quote

Quote:
My version of PGI is 13.3. Is that the problem here?
Yes. We didn't add the -acc=noautopar sub-option until 13.6.

- Mat
Back to top
View user's profile
anirbanjana



Joined: 11 Aug 2012
Posts: 28

PostPosted: Wed Nov 27, 2013 2:52 pm    Post subject: Reply with quote

Thanks Mat. Thought so. I will request that our PGI compilers be updated here.
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 Previous  1, 2, 3
Page 3 of 3

 
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