Tech Articles
| Tech Articles ID: | KB8020394 | |
| Status: | Published | |
| Published date: | 01/31/2012 | |
| Updated: | 03/21/2012 | |
| Reported In: | Easy5 - EASY5 | |
| Environment: | Intel IA-32 (32-bit compat) |
Abstract (Question)
How do I force EASY5 to call the ifortvars.bat file?
Description (Answer)
Edit the file called EZ5VARS.BAT which is in the EASY5 installation directory (usually C:\MSC.Software\EASY5\2010.1.2 for EASY5 2010.1.2) per the instructions below.
NOTE: Make sure to make a back up of the file first in case the newly edited version doesn't work.
For the 32 bit version of the Intel compiler, add the following line to the ":SETUP_IF91" section:
call "C:\Program Files\Intel\Compiler\11.1\035\bin\ifortvars.bat" ia32
making sure that the path to the ifortvars.bat file is correct. The added line should go just before the last line in the section as shown in red below:
:SETUP_IF91
REM Setup environment for Intel Visual Fortran 11.x compiler:
PATH | call %EZHOME%\grep.bat -i "C:\Program Files\Intel\Compiler\11.1\035\bin" > NUL
if ERRORLEVEL 1 call "C:\Program Files\Intel\Compiler\11.1\035\bin\ifortvars.bat" ia32 > NUL
if defined LIB echo %LIB% | call %EZHOME%\grep.bat -i "C:\Program Files\Intel\Compiler\11.1\035\lib" > NUL
if ERRORLEVEL 1 call "C:\Program Files\Intel\Compiler\11.1\035\bin\ifortvars.bat" ia32 > NUL
if not defined INTEL_LICENSE_FILE call "C:\Program Files\Intel\Compiler\11.1\035\bin\ifortvars.bat" ia32 > NUL
if not defined LIB call "C:\Program Files\Intel\Compiler\11.1\035\bin\ifortvars.bat" ia32 > NUL
call "C:\Program Files\Intel\Compiler\11.1\035\bin\ifortvars.bat" ia32
if defined MSVCDir goto SETUP_IF91_MSVC7
For the 64 bit version of the Intel compiler, add the following line to the ":SETUP_em64t_IF91" section:
call "C:\Program Files (x86)\Intel\Compiler\11.1\054\bin\ifortvars.bat" intel64
making sure that the path to the ifortvars.bat file is correct. The added line should go just before the last line in the section as shown in red below:
:SETUP_em64t_IF91
REM Setup environment for Intel Visual Fortran 11.x compiler for Intel64:
PATH | call %EZHOME%\grep.bat -i "C:\Program Files (x86)\Intel\Compiler\11.1\054\bin" > NUL
if ERRORLEVEL 1 call "C:\Program Files (x86)\Intel\Compiler\11.1\054\bin\ifortvars.bat" intel64 > NUL
if defined LIB echo %LIB% | call %EZHOME%\grep.bat -i "C:\Program Files (x86)\Intel\Compiler\11.1\054\lib" > NUL
if ERRORLEVEL 1 call "C:\Program Files (x86)\Intel\Compiler\11.1\054\bin\ifortvars.bat" intel64 > NUL
if not defined LIB call "C:\Program Files (x86)\Intel\Compiler\11.1\054\bin\ifortvars.bat" intel64 > NUL
if not defined INTEL_LICENSE_FILE call "C:\Program Files (x86)\Intel\Compiler\11.1\054\bin\ifortvars.bat" intel64 > NUL
:SETUP_em64t_IF91_EZ5
PATH | call %EZHOME%\grep.bat -i "C:\MSC.Software\EASY5\2010.1.2\easy5x\lib_em64t_IF91" > NUL
if ERRORLEVEL 1 set PATH=%_Q%%PATH%%_Q%;%_Q%C:\MSC.Software\EASY5\2010.1.2\easy5x\lib_em64t_IF91%_Q%
set WSLIBDIR=lib_em64t_IF91
set EZ5_NO_BUILD=
call "C:\Program Files (x86)\Intel\Compiler\11.1\054\bin\ifortvars.bat" intel64
goto SETUP_END
Discuss this Tech Articles


