Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
27 Views

ifort not recognized as an internal or external command

Jump to solution

Good afternoon 

I have Parallel Studio XE 2019 Cluster Edition, and now I am trying to run a *.bat file in my computer, I am a beginner the use of this kind of files. My computer has two units a SSD (C:) and  a HDD (D:). Parallel Studio was installed in the D: unit, and when I want to run ifort form the batch file I get the message "ifort is not recognized as an internal or external command". I find the ifort.exe file in "Program Files" folder. I do not know what could be bad. 

Thanks

Miguel

0 Kudos

Accepted Solutions
Highlighted
Black Belt
27 Views

You need to add this in your

Jump to solution

You need to add this in your .bat file:

call "%IFORT_COMPILER19%bin\ipsxe-comp-vars.bat" intel64 vs2017

This establishes the proper command line environment for the ifort command.

Replace "intel64" with "ia32" if you want 32-bit, and/or "vs2017" by the VS version you have.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran

View solution in original post

0 Kudos
4 Replies
Highlighted
Black Belt
28 Views

You need to add this in your

Jump to solution

You need to add this in your .bat file:

call "%IFORT_COMPILER19%bin\ipsxe-comp-vars.bat" intel64 vs2017

This establishes the proper command line environment for the ifort command.

Replace "intel64" with "ia32" if you want 32-bit, and/or "vs2017" by the VS version you have.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran

View solution in original post

0 Kudos
Highlighted
27 Views

Thanks, it works perfectly!!.

Jump to solution

Thanks, it works perfectly!!.

0 Kudos
Highlighted
27 Views

How to Fix “not recognized as

Jump to solution

How to Fix “not recognized as an internal or external command” in Windows?

 

set path=c:\foo;%path%
call "%IFORT_COMPILER19%bin\ipsxe-comp-vars.bat" intel64 vs2013
abq2019 job=plas_exp_axidisp user=code_exp cpus=4 interactive
 

This is my bat file. It is not working

0 Kudos
Highlighted
Black Belt
27 Views

I'm a bit surprised that the

Jump to solution

I'm a bit surprised that the .bat file even accepts "vs2013" as an option as that isn't supported by the 19.0 compiler.

What happens if you type:

ifort

after the call command completes?

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos