PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Differences between starting with and without debugging

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
H Hemingson



Joined: 14 May 2008
Posts: 1

PostPosted: Fri Aug 22, 2008 9:45 am    Post subject: Differences between starting with and without debugging Reply with quote

Hi,

I'm programming in Fortran using Microsoft Visual Studio.

I'm running into problems with my iterative code in that if I start the code without debugging, it will diverge immediately, while it will converge if I start it with debugging. It will work either way if I run less nodes. Are numbers treated differently in the two start modes?

I encountered a similar problem earlier, but managed to isolate a section of code that used array math and replaced it with imbeded do loops, which seemed to fix the problem.

Thank you.
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Aug 22, 2008 2:20 pm    Post subject: Reply with quote

Hi H Hemingson,

Some high optimizations reduce precision that can lead to this type of behavior. For applications that need stricter precision, from your project's property page, select the "Release" configuration and then select "Yes" for the "IEEE Arithmetic" under "Fortran->Floating-Point Options". This will have the compiler use more strict operations that more closely adheres to IEEE 754 standards.

Note that in debug mode, no optimization are used.

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling 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