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

Issue using fortran compiler for Arch-type Intel 64

Bastien_T_
Beginner
1,165 Views

Hi everyone,

We acquiered recently Parallel Studio XE 2015, in order to be able to compile user subroutine for mechanical simulation software. I think installation of the product went alright until I tried making use of it.

Issue is, when I want to build my subroutine, I need to set the Arch-type for the compiler to Intel-64 (running on Intel Xeon, Win7). So I modified of command-prompt's target to :

C:\Windows\SysWOW64\cmd.exe /k "E:\App\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" ARCHTYPE"

When ARCHTYPE is defined to IA32, it works fine, despite not building to the right architecture and thus getting error during linking. When ARCHTYPE is defined toIntel64, I got the message the configuration file is missing (though Intel64 sources are present in the install directory). It is compiling though, but LINK is not defined.

Has anyone had the same situation or have any tips to help me out ?

Thank you,

Bastien

PS. I have experience in programing in c++ back few year, yet is was on linux plateform.

0 Kudos
10 Replies
TimP
Honored Contributor III
1,165 Views

There is a separate forum for Windows ifort, in case you have questions specific to Fortran.

Did your command prompt shortcut work before you edited it?  The way you have unbalanced the quote marks, it may not be surprising that ARCHTYPE isn't communicated.  If you actually completed installation of the intel64 compiler, there would be a shortcut set up, with the spelling intel64, and the Visual Studio version following.

Did you select that E:\App\ path when you installed the compiler?  I don't have experience with non-default install paths, but there are edits in the .bat files which must correspond with the install path.

0 Kudos
Bastien_T_
Beginner
1,165 Views

Hi Tim,

Thank you for your reply!

That is not specific to ifort but with the install/configuration of those compilers with Parallel Studio I think.
The issue arises but with my command prompt but also with the default command prompt from Parallel Studio. (and yes there is a mistake in what I wrote in the previous post).

The command prompt target from PS-XE is actually the following :
C:\Windows\SysWOW64\cmd.exe /E:ON /V:ON /K ""E:\App\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" intel64 vs2010"

When I launch this prompt, I get this message : The specified configuration type is missing. The tools for the configuration might not be installed. It works fine with IA32.

I didn't do the installation myself, but my IT department did. Yet I am positive that all bin, lib etc for intel64 are in the install directory

Is there any simple way to find out which or what component is missing ?

Thank again,

Bastien

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,165 Views

What happens when you launch a CMD window(Start | Run | CMD), then type in

"E:\App\Intel\Composer XE 2015\bin\ipsxe-comp-vars.bat" intel64 vs2010

Only enquote the .bat file (with path).

Jim Dempsey

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,165 Views

By the way the SysWOW64 folder contains the 32-bit programs and environment. The System32 folder contains the 64-bit programs.
(Don't blame the messenger)

Is there a specific reason why you are using the 32-bit compiler to produce a 64 bit application?

Jim Dempsey

0 Kudos
Bastien_T_
Beginner
1,165 Views

Hi Jim,

I just tested your line. Same error as before, it is telling me that configuration type is missing. By the way, I am not trying to use the 32-bit compiler to make 64b. It is just that the command prompt from the installation of PSXE target to that cmd.exe with different bat files defining compiler and version based on IA32/Intel64 arch-type parameters (as the line i showed before).

Maybe my installation is messed up somehow...

Bastien

 

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,165 Views

Save ipsxe-comp-vars.bat (elsewhere)

Then edit it and remove any @ECHO OFF, save it back in place (but keep the edit window open) You may need to add ECHO ON too.

Then re-run the command.

This will (should) show you the commands as they execute with the macros expanded. It is likely that some environment variable is bunged up. follow the execution and try to map it to the position in the edit window (this may be difficult with batch CALL's and macro expansion). With any luck, you will be able to identify the culprit.

Jim Dempsey

0 Kudos
Bastien_T_
Beginner
1,165 Views

Hello Jim,

I've just tried what you told me to do. So I went down to the culprit : it appears that the file vcvars64.bat was missing in the VC\bin directory of VisualStudio2010, despite 64bits tools were installed.

I found on a forum to try to create that file, containing the line :

CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64

Now, I do not have any more error launching the command prompt shorcut for 64bits in Parrallel Studio. And my program seems to run (or at least it compiles).

So far so good, but I will make more test on Monday just to be sure.

Thank again for your help,

Bastien T.

0 Kudos
KitturGanesh
Employee
1,165 Views

Hi Bastien,
Thanks to Tim/Jim you've the right response anyways to your issue but nevertheless I'll transfer this issue to the Intel Fortran Compiler Forum so the support folks there can triage if you bump into any further issue as well.
_Kittur

0 Kudos
KitturGanesh
Employee
1,165 Views

BTW, the Fortran Forum page is: https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x  to which I'll transfer your issue to, fyi.

_Kittur

0 Kudos
Steven_L_Intel1
Employee
1,165 Views

It could be that you don't have the X64 Compiler and Tools component of VS2010 installed. Are you using the VS Shell bundled with Parallel Studio (in which case you do have the X64 tools installed), or are you using a separate VS2010? Does the folder C:\Program Files (x86)\Microsoft Visual Studio 10.0\bin\x64 exist and is there anything in it? (This won't be there if you're using the bundled shell.)

0 Kudos
Reply