PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Executing whet targeting 64bit fails

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Nikosl



Joined: 14 Nov 2012
Posts: 2

PostPosted: Wed Nov 14, 2012 2:19 pm    Post subject: Executing whet targeting 64bit fails Reply with quote

Hi, i have a problem when i compile a 3D transport model.

Untill now my colleagues used these flags to compile it with pgi 10:

-O2 -tp p6 -pc 64 -Kieee -Mdalign -Mextend -Mnoframe -byteswapio

and the code runs ok either on a 32 bit linux system or 64 bit.

I'm trying to compile it for newer processors in order to take advantage of their optimization options with the following flags:

-O2 -tp nehalem-64 -pc 64 -Kieee -Mdalign -Mextend -Mnoframe -byteswapio -mcmodel=medium

and after about 5-10 minutes of simulation the program exits with signal 11 error.

My processor is a last generation quad core i7, and i use Ubuntu x64 12.04 LTS

How is it possible not to get segmentation faults in 32bit builds and when i build and run for x64 to get such?
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Nov 15, 2012 1:27 pm    Post subject: Reply with quote

Quote:
How is it possible not to get segmentation faults in 32bit builds and when i build and run for x64 to get such?
I could be any number of things. Does the code seg fault when using just the "-g" flag (i.e. debug mode wihtout optimization)?

- Mat
Back to top
View user's profile
Nikosl



Joined: 14 Nov 2012
Posts: 2

PostPosted: Thu Nov 15, 2012 2:04 pm    Post subject: Reply with quote

Yeap, no compile error with -g flag, but again i get seg fault during the simulation, pointing as error something about svode ode solver subroutine, which i think cannot be true since its a piece of code that is used for a plenty of years.


Update: I get the same segfault even with -tp nehalem-32 option and now i am completely clueless.
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Nov 16, 2012 11:58 am    Post subject: Reply with quote

Hi Nikosl,

You'll need to try and narrow down the options that's causing the problem, then add "-gopt" and run your code through the PGI debugger (pgdbg). Please post your findings.

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