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

Transitioning to ifx

whatheway
New Contributor I
1,095 Views

What would be the new intel compiler options for these old compilers?

  export CC=icc
  export CXX=icpc
  export FC=ifort
  export F77=ifort
  export F90=ifort
  export MPIFC=mpiifort
  export MPIF77=mpiifort
  export MPIF90=mpiifort
  export MPICC=mpiicc
  export MPICXX=mpiicpc
  export CFLAGS="-fPIC -fPIE -O3 "
  export FFLAGS="-m64"
  export FCFLAGS="-m64"
0 Kudos
1 Solution
Ron_Green
Moderator
1,086 Views
  export CC=icx
  export CXX=icpx
  export FC=ifx
  export F77=ifx
  export F90=ifx
  export MPIFC="mpiifort -fc=ifx"
  export MPIF77="mpiifort -fc=ifx"
  export MPIF90="mpiifort -fc=ifx"
  export MPICC="mpiicc -cc=icx"
  export MPICXX="mpiicpc -cxx=icpx"
  export CFLAGS="-fPIC -fPIE -O3 "
  export FFLAGS="-m64"
  export FCFLAGS="-m64"

View solution in original post

3 Replies
Ron_Green
Moderator
1,087 Views
  export CC=icx
  export CXX=icpx
  export FC=ifx
  export F77=ifx
  export F90=ifx
  export MPIFC="mpiifort -fc=ifx"
  export MPIF77="mpiifort -fc=ifx"
  export MPIF90="mpiifort -fc=ifx"
  export MPICC="mpiicc -cc=icx"
  export MPICXX="mpiicpc -cxx=icpx"
  export CFLAGS="-fPIC -fPIE -O3 "
  export FFLAGS="-m64"
  export FCFLAGS="-m64"
whatheway
New Contributor I
281 Views

export CC=icx
export CXX=icpx
export FC=ifx
export F77=ifx
export F90=ifx
export MPIFC=mpiifx
export MPIF77=mpiifx
export MPIF90=mpiifx
export MPICC=mpiicx
export MPICXX=mpiicpx

Would these work @Ron_Green  since the mpiifort command is going away?

0 Kudos
Ron_Green
Moderator
183 Views

@whatheway Yes, the Intel MPI team added mpiifx wrapper somewhat recently.  The old way of 

mpiifort -fc=ifx 

should probably be replaced with mpiifx and won't need the "-fc=ifx"

 

 

0 Kudos
Reply