Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29281 Discussions

Trying to rebuild application with .bat files

Jonas231
Beginner
7,255 Views

Hi,

I am trying to recompile a legacy code "http://ecalculations.com/".

 

The recompile and the link are done with simple .BAT files.

How can I do this with Visual Studio and Intel One APi? Or should I use the Command Line environment?

Which commands to use?

 

There are various .bat-files:

 

MAKE.bat:

-------------------------------

CD\WINOPT
DEL ODP.EXE
DEL PRG.EXE
CALL AM
link @automake.lnk

 

AM.bat

--------------------------------

@Echo OFF
AUTOMAKE type=%1 %2 %3 %4 %5 %6 %7 %8 %9
@IF ERRORLEVEL 1 GOTO delete
call AMTEMP
:delete
DEL AMTEMP.BAT

 

MAKEKDP_IVF.bat

---------------------------------

CALL IFORTVARS
CD\WINOPT_IVF
del kdp2.exe
call am
link @automake.lnk
DEL *.F90

 

ifortvars.bat

-----------------------------------

@Echo off
Rem Intel(R) Visual Fortran Compiler Build Environment for 32-bit applications

echo.
echo Intel(R) Visual Fortran Compiler 9.1.024 Build Environment for 32-bit applications
echo Copyright (C) 1985-2006 Intel Corporation. All rights reserved.
echo.

@call "C:\Program Files\Microsoft Visual Studio 8\VC\Bin\Vcvars32.bat"
title Intel(R) Visual Fortran Compiler 9.1.024 Build Environment for 32-bit applications

echo.

SET IFORT_COMPILER91=C:\Program Files\Intel\Compiler\Fortran\9.1

SET INTEL_SHARED=C:\Program Files\Common Files\Intel\Shared Files

SET INTEL_LICENSE_FILE=C:\Program Files\Common Files\Intel\Licenses

SET PATH=%IFORT_COMPILER91%\Ia32\Bin;%INTEL_SHARED%\Ia32\Bin;%PATH%

SET LIB=C:\Program Files\Intel\Compiler\Fortran\9.1\IA32\LIB;C:\Program Files\Microsoft Visual Studio 8\VC\lib;%IFORT_COMPILER91%\Ia32\Lib;%LIB%

SET INCLUDE=%IFORT_COMPILER91%\Ia32\Include;%INCLUDE%

if exist "C:\Program Files\Intel\Compiler\Fortran\9.1\ia32\Bin\imsl.bat" call "C:\Program Files\Intel\Compiler\Fortran\9.1\ia32\Bin\imsl.bat"

 

Does anyone have a clue what is done here? Where can I read about compiling and building

with .bat-files?

 

Kind regards,

Jonas

 

 

 

 

 

0 Kudos
25 Replies
mecej4
Honored Contributor III
1,269 Views

OK, I now see that you have exposed a regression in not only the slightly earlier compiler version that you reported about but also the latest Ifort Version 2021.2.0 Build 20210228_000000 and Ifx Version 2021.2.0 Beta Build 20210317 compilers.

0 Kudos
cean
New Contributor II
1,239 Views

I installed 2021.1 first, then upgraded to 2021.2.

Under my d:/oneAPI/compiler, there are folders of 2021.1.1 and 2021.2.0

So have to wait for another upgrade now? 

0 Kudos
mecej4
Honored Contributor III
1,190 Views

If  Intel personnel do not read this thread and create a bug report in time for the forthcoming release, you may have to wait until the second next release.

0 Kudos
cean
New Contributor II
1,188 Views
0 Kudos
cean
New Contributor II
1,269 Views

Interesting project.

 

Is the 64bit version ever released?

0 Kudos
Reply