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

Fortran compiler environmental setting problem

Xu_H_1
Beginner
2,313 Views

Hi,

I just installed 30 day trial version of Intel Parallel Studio XE 2015 for Professonal Edition Fortran. Before I install this fortran, I installed MS Visual Studio 2012 Express version. Now I am trying to link the fortran compiler to another engineering software called ABAQUS. To link it, I need to run "ifortvars.bat" to set up the environments. What I did I go to the Path "C:\Program Files (x86)\Intel\Composer XE 2015\bin" from cmd command line and then type "ifortvars.bat". But if I do it, it gives error such as

****************************************

<arch> mush be is onethe following:

......

<vs> must be one of the following:

.......

*****************************************

 

Then I checked ifortvars.bat file and I found

*****************************************

set TARGET_VS=
set TARGET_ARCH=
set C_TARGET_ARCH=
set LP64_ILP64=
set QUIET=

************************

and the options are all empty. I tried to put Target_vs=vs2015 and Target_arch=intel64.  It shows error

*************************

Syntax:

mklvars.bat <arch> [MKL_interface] [mod]

<arch> mush be one of the following

ia32 : ....

intel64:....

*************************

Now I don't know how to solve it. Could someone help me on this? Thanks.

 

Xu

0 Kudos
13 Replies
TimP
Honored Contributor III
2,313 Views

Abaqus instructions no doubt bear on this. For target vs2015, you would need to install vs2015 community or pro then update ifort.  Vs express is designed to exclude ifort and probably is missing libraries abaqus requires.

0 Kudos
Steven_L_Intel1
Employee
2,313 Views

VS Express Edition does not support Intel Fortran. As Tim suggests, VS2015 Community is probably the best free choice, though you'd need to have Update 4 or later of our 2015 product. We are currently offering the 2016 product as a trial.

0 Kudos
Xu_H_
Beginner
2,313 Views

Tim and Steve,

Thanks a lot for your reply. Now I do not need to do the coding and debugging under VS environment and what I need is just Intel Fortran workable which allows the abaqus to compile the fortran code. In this situation, do I still need VS community or Pro version to be installed?

If I do need to install VS in order to make use of Intel Fortran, is there any early free version of VS community such as vs 2012, 2013 which allows me to use early version of ifort?

 

Best regards

Xu  

0 Kudos
Steven_L_Intel1
Employee
2,313 Views

There was a VS2013 Community Edition, but not earlier. Note that Commercial or Academic licenses for Intel Visual Fortran include a VS-based Fortran development environment, so you don't have to buy anything else.

0 Kudos
Greg_T_
Valued Contributor I
2,313 Views

It may help to use the Intel Fortran console window to run the Abaqus job.  Instead of running the ifortvars.bat file separately, you could try opening an Intel Fortran console window so that the Fortran environment variables get set, and then run Abaqus from the command line within that console window.  I open the Intel Fortran console window from: Start -> All Programs -> Intel Parallel Studio XE 2016 -> Compiler and Performance Libraries -> Command Prompt with Intel Compiler 16.0 -> Intel 64 Visual Studio 2015 environment

Regards,
Greg

0 Kudos
TimP
Honored Contributor III
2,313 Views

Abaqus may have library dependencies which aren't satisfied either by VS Express or by the VS Shell provided with recent ifort releases.  Their docs would specify which versions of VS and ifort were tested with your chosen Abaqus distribution.  Newer versions of the same level of VS are likely to work.   If VS2012 Pro is specified, chances are VS2013 Community would work; certainly it is a better bet than any VS Express.

0 Kudos
Xu_H_
Beginner
2,313 Views

Hi Greg, 

Thank you very much for your help. I tried the way you suggested by running abaqus through Intel Fortran console. But it shows error Visual Studio 2015 not found. I guess it is because the VS express version does not support the Intel Fortran like Tim and Steve said. Thank you again.

 

Regards

Xu

0 Kudos
Xu_H_
Beginner
2,313 Views

Tim and Steve,

I checked abaqus document, it says "Generally, Abaqus 6.13 officially supports Intel Fortran Composer XE 2011 and the Microsoft Visual Studio 2010 development environment with Visual C++ 10 SP1 (Windows), ". Now I plan to purchase them. But my question is if I need to purchase Visual C++ 10 SP1 separately or they are included in VS? 

Also, if I want to purchase VS2012, what is the compatible version of Inter Fortran Composer? Though VS2012 is not officially supported by abaqus software (VS 2010 is), the abaqus document does say the new version can work as well.

Really appreciate your help.

 

Xu

0 Kudos
Steven_L_Intel1
Employee
2,313 Views

You will need to purchase Visual Studio separately - we include a Fortran-only environment, no C++.  Note that you can't specifically buy old versions of Intel Fortran, but you can buy the current version and then download and install an older version. I do not recommend using an old version unless you are unable to get the current version to work. It looks as if Mathworks has not updated their recommendation in years, but there's nothing obvious as to why you HAVE to use an old, unsupported version.

0 Kudos
Xu_H_
Beginner
2,313 Views

Steve,

I see. So if I purchase Visual Studio separately, the visual C++ compiler will be included in VS, am I right? Basically, if I purchase VS from microsoft and intel fortran from you, that should include both C++ and fortran compiler, am I right? I was confused if I need to purchase both C++ compiler and VS, in additional to intel fortran compiler.

Xu 

0 Kudos
Steven_L_Intel1
Employee
2,313 Views

If you purchase Visual Studio, that gives you C++. (If you buy VS2015 you must select a Custom install and select C++ as it is not installed by default.) Then you install Intel Parallel Studio XE and you'll have Fortran in VS along with C++.

0 Kudos
Xu_H_
Beginner
2,313 Views

Steve,

I see. I am wondering if it is anyway I can run intel fortran stand alone version without visual studio. For example, I can write and edit my fortran code in some other editor and just compile it by command line "ifort"?

 

Regards

Xu 

0 Kudos
Steven_L_Intel1
Employee
2,313 Views

We support building applications from the command line. However, you still need a supported Visual Studio installed to provide Microsoft tools and libraries Fortran needs.

0 Kudos
Reply