PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Option like ifort's -check uninit in PGI?

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



Joined: 06 Jul 2009
Posts: 317
Location: Greenbelt, MD

PostPosted: Fri Oct 29, 2010 8:02 am    Post subject: Option like ifort's -check uninit in PGI? Reply with quote

I was wondering if there was a compiler option similar to ifort's '-check uninit' with PGI? The description is:

Code:
              check uninit               Enables  run-time  checking for
                                         uninitialized variables.  If  a
                                         variable  is  read before it is
                                         written, a run-time error  rou‐
                                         tine will be called. Only local
                                         scalar variables  of  intrinsic
                                         type  INTEGER,  REAL,  COMPLEX,
                                         and LOGICAL  without  the  SAVE
                                         attribute are checked.

This option recently found a subtle error that had been plaguing me for a week and I'd love to enable it on PGI as well.
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Oct 29, 2010 5:47 pm    Post subject: Reply with quote

Hi Matt,

Sorry, no. I typically recommend user use Valgrind (www.valgrind.org). If find it very good at finding UMR's (uninitialized memory reads) as well as many other memory issues.

- 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