Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Beginner
51 Views

Can I get a running sample code for Intel Fortran 9.0 for EM64T, Windows XP 64?

We bought IVF 9.0. We knew that we cannot use the Visual Studio IDE to compile the EM64T program. The only way is to use MS Platform SDK. But there is no sample to make a makefile to compile the fortran 9.0 program in the use's guide or help file.
We have nearly 100 fortran file (fortran 90 and fortran 77) in our current project. We can use the VS.net 2003 to compile and build them for a win32 program. But we need overcome the 2GB memory limit. So we should use the win64 program. But we cannot compile our program now.
So could the Intel give us some sample program to compile fortran program in EM64T at Windows? Also can Intel give a makefile sample for EM64T at Windows application?
Thanks a lot!
0 Kudos
9 Replies
51 Views

I'm not sure what you're asking for. Surely a makefile would be specific to your application?

There isn't really any difference for building an application. A simple:

ifort myprog.f90

will do it when you have opened a "Build Environment for Fortran EM64T-Based Applications" command window.

Whatever command line you use for IA-32 would work for EM64T, unless you used certain architecture-specific switches not supported in EM64T (eg. /QxK).

What problems are you running into?
0 Kudos
Beginner
51 Views

A sample program is as follow.

myfor.f90

program myfor

write(*,*) 'Hello World'

end program myfor

I can compile this program under VS 6.0 with CVF6.0. And get the correct result. But I cannot compile it under Win-XP 64 with EM64T and the fortran compiler:Intel Fortran Compiler build environment for EM64T-based applications.
Message is as follow:
------------------------------------------------------------------------
D:Kuilin>ifort myfor.f90
Intel Fortran Compiler for Intel EM64T-based applications, Version 9.0
Build 20050430
Copyright (C) 1985-2005 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
-out:myfor.exe
-subsystem:console
-entry:mainCRTStartup
myfor.obj
myfor.obj : fatal error LNK1136: invalid or corrupt file
D:Kuilin>ifort myfor.f90
Intel Fortran Compiler for Intel EM64T-based applications, Version 9.0
Build 20050430
Copyright (C) 1985-2005 Intel Corporation. All rights reserved.
Microsoft Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
-out:myfor.exe
-subsystem:console
-entry:mainCRTStartup
myfor.obj
myfor.obj : fatal error LNK1136: invalid or corrupt file
----------------------------------------------------------------------
Thanks
0 Kudos
51 Views

You're using the CVF/MSVC6 linker. Make sure that the "Build Environment" is invoking the Platform SDK vcvars32.bat or setenv.cmd correctly. There should be a line similar to the following in the Intel Fortran EM64TBINIfortvars.bat file:

call "C:Program FilesMicrosoft Platform SDKSetEnv" /X64 /RETAIL

Note that you need to install the PSDK first, then Intel Fortran.
0 Kudos
Beginner
51 Views

Thanks Steve.
But I cannot intall the platform sdk (either PSDK-ia64.exe or PSDK-x86.exe)at Xeon EM64T Win-XP 64 computer. Can you?
I installed the platform sdk at P4 Win-XP 32. and then the Intel Fortran.
The Ifortvars.bat is as follow:
----------------------------
@echo off
Title Intel Fortran Compiler build environment for EM64T-based applications
echo.
echo Intel Fortran Compiler 9.0 build environment for EM64T-based applications
echo Copyright (C) 1985-2005 Intel Corporation. All rights reserved.
echo.
call "C:Program FilesMicrosoft Platform SDKSetEnv" /X64 /RETAIL
Title Intel Fortran Compiler build environment for EM64T-based applications
SET IFORT_COMPILER90=C:Program FilesIntelCompilerFortran9.0
SET INTEL_LICENSE_FILE=C:Program FilesCommon FilesIntelLicenses
Set Path=%IFORT_COMPILER90%EM64TBin;%path%
Set Lib=%IFORT_COMPILER90%EM64TLib;%LIB%
SET Include=%IFORT_COMPILER90%EM64TInclude;%Include%
SET INTEL_SHARED=C:Program FilesCommon FilesIntelShared Files
----------------------------
And the error is as follow:
C:Users>ifort myfor.90
Intel Fortran Compiler for Intel EM64T-based applications, Version 9.0
Build 20050430
Copyright (C) 1985-2005 Intel Corporation. All rights reserved.
ifort: Command line warning: unrecognized source type 'myfor.90'; object file as
sumed
Fatal error cannot open "myfor.90"
ifort: error: problem during multi-file optimization compilation (code 1)
Thanks,
Kuilin
0 Kudos
51 Views

I don't recognize those EXE names. The Platform SDK from Microsoft installs fine. And it would seem that you have it installed.

Your error now is that the file type should be .f90, not .90.
0 Kudos
Beginner
51 Views

Thank you Steve.

0 Kudos
51 Views

You're welcome. Now please download a more recent compiler from Intel Premier Support - 9.0.024 is current.
0 Kudos
Beginner
51 Views

I am looking for a download that is compatiable or is Microsoft Windows 32exe Applaction.

Do you have a download or can you help with Microsoft, I have look at all of there downloads and I can't seen to find it.

Kind regards,

Larry Bowman

210-877-0573

0 Kudos
51 Views

Larry, I don't understand what you're asking for. Please elaborate.
0 Kudos