PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

-fast compiler instruction is producing incorrect results.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
cparrott



Joined: 02 May 2011
Posts: 146

PostPosted: Mon Mar 31, 2014 12:04 pm    Post subject: Reply with quote

Harry,

Thanks for the report. I have been able to reproduce the issue with your code here at PGI. I have filed a bug report on this today, and will let you know as soon as I hear something on this.

As for -acc, the compiler should only be generating accelerator code at points where there are 'acc' directives in your code. (via #pragma in C/C++, or !$ in Fortran.) Thus, the way to disable accelerator code generation in certain sections of your program is to simply remove the directives. One way to do this is to change !$acc to !$xxx at a given region, which makes Fortran treat it as just a comment instead of a directive.

Passing the -acc switch likely causes certain other optimizations to be enabled, so I suspect the problem with this code actually could be an optimization issue rather than an OpenACC issue.

Best regards,

+chris
Back to top
View user's profile
cparrott



Joined: 02 May 2011
Posts: 146

PostPosted: Mon Mar 31, 2014 2:50 pm    Post subject: Reply with quote

Well, that was fast!

Our developer has just fixed this issue in the compiler, and the fix should be included in the PGI 14.4 update, due in a few weeks.

Best regards,

+chris
Back to top
View user's profile
haz13



Joined: 17 Mar 2014
Posts: 13

PostPosted: Wed Apr 02, 2014 6:48 am    Post subject: Reply with quote

Thank you for sorting that out for me!

I'm afraid I have a deadline in a week's time so 14.4 may come too late for me... my plan now is to move the OpenACC routines that I want into a seperate file/module, compile that with the -acc flag and then compile my other original modules without the optimisation flags before linking them.

(I'm assuming you couldn't give me a prerelease version of 14.4 with those fixes)

Thanks again, Harry
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 436

PostPosted: Fri May 02, 2014 9:29 am    Post subject: TPR 20141 is fixed in the 14.4 release. Reply with quote

14.4 is out now, and provides the correct answers.

regards,
dave
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
Goto page Previous  1, 2
Page 2 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