Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

release v.s. debug

tiho
Beginner
1,071 Views

I have tried this in Intel 12, 13, 14 - the same result. I have a computation that crashes in release but it doesn't crash in  debug and thus I cant find out why it crashes. Any ideas on what to do? Compiler options that can be tried? Thanks a lot in advance!!!!!

0 Kudos
7 Replies
Steven_L_Intel1
Employee
1,071 Views

Not a lot to go on here. What is the exact error you get? Typically this situation means you have a programming error that is masked by the lack of optimization. In release mode you should get a traceback indicating about where in the code the error occurred. You can study that to see if you can figure out what went wrong. You could try, in the debug configuration, changing the optimization level to 1 and then 2 to see if the error appears. You may also need to turn off run-time checks that are disabled in a Release configuration.

0 Kudos
Roman1
New Contributor I
1,071 Views

 

You did not indicate what options you are already using.  In Debug mode, can you make sure you are compiling the code with the following:

/check:all   /fpe:0  /warn:all

 

0 Kudos
tiho
Beginner
1,071 Views

Wow - you guys are awesome. /O2 cracked it. Thanks a lot.

0 Kudos
Steven_L_Intel1
Employee
1,071 Views

Well, what exactly did you do? /O2 is the default for a release configuration.

0 Kudos
tiho
Beginner
1,071 Views

Used /O2 with Debug. The problem was that an array subroutine argument was sometimes a pointer, sometimes an allocatable array and sometimes an array from the stack.

BTW, can you guys comment on my performance benchmark computation using two processors, parallel computation

Intel 12: 136 seconds

Intel 13: 156 seconds

Intel 14: 160 seconds

Has anyone else found the same thing?

 

 

0 Kudos
tiho
Beginner
1,071 Views

No comment?

0 Kudos
Steven_L_Intel1
Employee
1,071 Views

We regularly test performance of new versions and compare to previous versions. We don't find it acceptable for there to be a general slowdown, and for most applications, performance improves. We can't test every possible application though and there have been sporadic cases of specific applications slowing down. If you're willing to provide a test case, we'll be glad to investigate.
 

0 Kudos
Reply