| View previous topic :: View next topic |
| Author |
Message |
Nikosl
Joined: 14 Nov 2012 Posts: 2
|
Posted: Wed Nov 14, 2012 2:19 pm Post subject: Executing whet targeting 64bit fails |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Nov 15, 2012 1:27 pm Post subject: |
|
|
| 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 |
|
 |
Nikosl
Joined: 14 Nov 2012 Posts: 2
|
Posted: Thu Nov 15, 2012 2:04 pm Post subject: |
|
|
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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Fri Nov 16, 2012 11:58 am Post subject: |
|
|
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 |
|
 |
|