Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Discussions

Preferred install directory for mixed-language applications

Deleted_U_Intel
Employee
674 Views

Some admins prefer to install the Intel 8.x Fortran and C compilers both
in the same directory, in the style of the Intel 7 compiler installer,
but this is not what the version 8.x installers do by default.

It is clear why one would install both compilers in the same directory:
this way, with no further work, the libraries of both installations will
be found when using the compiler as a linker. (Otherwise, when linking
mixed-language applications, you have to provide explicit paths to the
libraries.)

Is there any reason not to install the compilers in the same directory?
If not, why do the installers by default put them in separate directories?

0 Kudos
3 Replies
TimP
Honored Contributor III
674 Views
It should be OK to install both C and Fortran in the same directory, provided that any upgrades are done so as to keep both versions synchronized. Upgrading one, a move which I make frequently, could break the other until it is upgraded. If you are extra cautious, or not, you want the ability to upgrade and test one at a time.
0 Kudos
Steven_L_Intel1
Employee
674 Views
I will have to disagree with Tim - we recommend that you don't do it. The issue has to do with the tools and libraries used with the -ipo option - if there are inconsistencies, your programs will not build. If you don't use -ipo, then you can probably get away with it.
0 Kudos
Deleted_U_Intel
Employee
674 Views

Both of your replies are interesting.

If I may paraphrase:

Tim says, it's OK so long as you remember to update both compilers at the same time.

(The argument that the compiler might be temporarily unstable while being
updated isn't an argument against this arrangement. The compiler is temporarily
unstable during an update whether the two compilers are in separate directories
or not.)

Sblionel says, better not do it, because "any inconsistencies" might cause problems
if you use the "-ipo" option.

(How would such an inconsistency arise? Are you saying the installers
would cause an inconsistency if they were both pointed at the same directory?)

I should say, I know of several installations on big computer systems that are
arranged this way. If it's so dangerous, maybe they should be alerted!

0 Kudos
Reply