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

ifort slow performance

hmomm
Beginner
1,155 Views
Hi,

I recently installed composer XE 2011 on UBUNTU 11.04.

$ sudo uname -a
Linux MS08-WPP-HM-LAP 2.6.38-13-generic #55-Ubuntu SMP Tue Jan 24 15:34:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

The installation process went fine and I ifort seems to be working properlly. However, ifort is taking an extreme long time just to execute.

Here are some examples:

Example 1:
$ time ifort -v
ifort version 12.1.3

real 1m50.132s
user 0m0.020s
sys 0m0.000s

Example 2:

program hello
print *,"hello"
end program hello

$ time gfortran -c hello.f90

real 0m0.149s
user 0m0.010s
sys 0m0.020s

$ time ifort -c hello.f90

real 1m50.181s
user 0m0.010s
sys 0m0.040s

Please advice.

hmomm





0 Kudos
4 Replies
TimP
Honored Contributor III
1,155 Views
Please compare ifort and gfortran (both compile and run times) at similar levels of optimization, remembering that ifort default resembles
'gfortran -O3 -ffast-math -fno-cx-limited-range -mno-math-errno -funroll-loops --param max-unroll-times=2' (in case you don't want to continue over-simplifying).
In this case, since you chose no optimization for gfortran, ifort -O0 would be reasonable, but ifort doesn't really try to compete on speed of compilation without optimization.
0 Kudos
Georg_Z_Intel
Employee
1,155 Views
Hello,

you might also set $INTEL_LMD_DEBUG=1 and watch the status of the license validation. If you notice it being being updated during those nearly 2 minutes it's the license validation that's slowing down the compiler.

Once you see
INTEL_LMD: flex_return_license: done
the whole license check is done. If it's printed right after you've started the compiler there are no license related problems.

Please do not publish the output of the debug messages here as it contains critical information (your serial number, for example).

Best regards,

Georg Zitzlsberger
0 Kudos
hmomm
Beginner
1,155 Views
Georg,

You got it. The problem is the license validation procedure. It is taking too long to find the license information even tough the license file is located at /opt/intel/license/.

Do you have any suggestion on how to fix this issue?

Thank you so much.

Henrique
0 Kudos
Georg_Z_Intel
Employee
1,155 Views
Hello Henrique,

the simplest way on top of my head would be to set $INTEL_LICENSE_FILE to point to a valid license file directly. This will always be checked first. Thus the license check does not need to search license files in other directories, adding latency.

Would this be a working solution for you?

Btw.: It should be "/opt/intel/licenses", just to be correct.

Best regards,

Georg Zitzlsberger
0 Kudos
Reply