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

how to compile x64 in hpc linux?

turkeydodo
Beginner
567 Views
We have both windows solver in local windows machine and linux solver in high performance computer (hpc). We compile both solvers using Intel fortran compilers. In windows, we have intel visual fortran so I can specify platform either win32 or x64. On hpc linux, I always use the command line like

ifort -c *.f and ifort -o abc *.o

to compile and link and get the solver

Recently, we need improve the array size which exceed the limit of win32 allowed.

1.75G is the max, see the link http://redfort-software.intel.com/en-us/forums/showthread.php?t=71017

So we change the platform in windows from win32 to x64.

I don't know on hpc linux system

(1) the command listed above in linux is for 32 bit or 64 bit?

(2) if not, is there any command to specify to 64 bit

Thanks a lot!
0 Kudos
2 Replies
Steven_L_Intel1
Employee
567 Views
On Linux, you use an argument to a "source" command to specify the platform you want to compile for.  (You do something similar on Windows in the command line.)  This is how the ifort command becomes available.  So what you want is to type:

source /opt/intel/bin/compilervars.sh intel64

Once you do that, "ifort" gets you the x64 compiler.
0 Kudos
turkeydodo
Beginner
567 Views
Thanks a lot!




0 Kudos
Reply