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

ifort -fast fails due to IPO

mrobin
Beginner
402 Views
Hi, I'm experiencing problems using -fast zith ifort. the Output is as folows


michael@blackbox /pic/matlab $ ifort -o fast-read -fast read.f90 ../pic_0.5/libmatFile.a IPO: performing single-file optimizations IPO: generating object file /tmp/ipo_ifortstOLwH.o /opt/intel/fortran90/lib/libifcore.a(for_open_proc.o): In function `for__compute_filename.': ./src/libfor/for_open_proc.c:(.text+0xc14): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ./src/libfor/for_open_proc.c:(.text+0xd05): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

it'a very simple program actually and libmatFile.a is a standard C library. when I remove -fast and anything related to IPO, the program compiles normally ( but i don't get the optimization) Michael Robin
0 Kudos
2 Replies
TimP
Honored Contributor III
402 Views
You may have a conflict when attempting to include a static library in a -fast build. If you think -fast is applicable for your task, does it work when you replace your .a library with objects built with icc -fast ? When you have only a single Fortran source file, and do not allow IPO to apply to the remaining files, ifort -O3 -xP should accomplish all available optimizations in the group included in -fast.
0 Kudos
mrobin
Beginner
402 Views
the library was built using gcc, maybe using icc might solve the problem, thanx
0 Kudos
Reply