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

64-bit with ifort 10.0 on Linux?

gary7
Beginner
527 Views

% uname -a

Linux hostname 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

% icc -o junk_c junk.C

% ifort -o junk_f junk.f

% file junk_c

junk_c: ELF 64-bit LSB executable, AMD x86-64

% file junk_f

junk_f: ELF 32-bit LSB executable

Why the heck is the fortran compiler generating 32-bit binaries? All the installed dynamic libraries are 64-bit so I can't even run the resulting binary if it needs linkage to one of the libraries.

This is with the Intel 10.0.026 compiler suite.

Thanks in advance!

Gary

0 Kudos
2 Replies
gary7
Beginner
527 Views

Well, it turns out to be a simple solution. There are two compilers one is fc/10.0.026/bin/ifort and the other is fce/10.0.026/bin/ifort. The one in the "fc" generates 32-bit binaries while the one in "fce" generates 64-bit binaries.

I don't own this system and didn't install the compilers so maybe this is obvious if you have the compiler installation manual?

Gary

0 Kudos
Steven_L_Intel1
Employee
527 Views

If you read the compiler documentation, this is described. In version 11 it will work a bit differently in that there is one ifortvars.sh script and you supply an argument to it to specify which platform you want to compile for.

0 Kudos
Reply