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

Using ifort.exe other than ifx.exe in setvars.bat for EMsoft

JosephYC
Beginner
589 Views

Dear all.

I am installing the EMsoft SDK Superbuild on https://github.com/EMsoft-org/EMsoftSuperbuild

with latest Intel Fortran and visual studio.

But during the installation, error occur

"-- The Fortran compiler identification is IntelLLVM 2023.1.0 with MSVC-like command-line
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/ifx.exe - skipped
-- **************************************************************************
-- * Platform: Windows
-- * ONLY NVidia GPUs are supported on Windows platforms. Please ensure that
-- * the NVidia GPU computing toolkit version 10.0 is installed on your
-- * computer before trying to compile EMsoft.
-- **************************************************************************
-- EMsoft_SDK Folder: C:/Users/best1/EMsoft_SDK
-- EMsoft_SDK_FILE: C:/Users/best1/EMsoft_SDK/EMsoft_SDK.cmake
-- Workspace Folder:
-- The Fortran compiler is NOT recognized. EMsoft may not support it.
CMake Error at CMakeLists.txt:190 (message):
Current Fortran Compiler is C:/Program Files
(x86)/Intel/oneAPI/compiler/latest/windows/bin/ifx.exe"

 

This program do not accept ifx.exe and only accept ifort.exe.

How can I change from ifx.exe to ifort.exe in setvars.bat?

Thank you.

 

0 Kudos
4 Replies
Ron_Green
Moderator
553 Views

Cmake version should be very new.  3.24.2 or above, preferably 3.26.  What version are you using?

0 Kudos
JosephYC
Beginner
538 Views

I use CMake 3.27.0-rc3.

0 Kudos
mecej4
Honored Contributor III
522 Views

The EMsoft page states that the expected compiler is Intel Fortran v17/v19. The layout of the directories under OneAPI is somewhat different from what you would see in Parallel Studio 2019. The compiler driver IFX.EXE is in ...\windows\bin,  whereas IFORT.EXE is in ...\windows\bin\intel64. As a consequence of this altered directory structure, you may need to modify the Cmake and other configuration files to get EMsoft to build properly.

0 Kudos
Ron_Green
Moderator
508 Views

With a quick search, it appears this repo and software hasn't been touched since 2018.  You should contact the CMU developers to see if they have any plans to support newer Windows version, VS versions, and Intel compiler versions.  Also their gfortran support is way back to gfortran 6.2 which is also ancient by now. 

0 Kudos
Reply