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

error #7013: This module file was not generated by any release of this compiler. [MPI]

Liuwh
Beginner
3,956 Views

Dear Forum Staff,

When I am compiling WRFDA, running

. /compile all_wrfvar >& compile.wrfda.log

it generates 43 exe files, missing da_wrfvar.exe file, and the following error is reported in compile.wrfda.log, I don't know how to solve it:

 

/home/liuwenhao/wrfchem4/WRFDA/tools/standard.exe module_dm.bb | /lib/cpp -P -nostdinc -traditional-cpp > module_dm.f90
rm -f module_dm.G module_dm.H module_dm.bb
time mpif90 -f90=ifort -o module_dm.o -c -O3 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -r8 -real-size `expr 8 \* 8` -i4 module_dm.f90
module_dm.f90(1305): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^
module_dm.f90(1345): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^
module_dm.f90(1385): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^
module_dm.f90(6464): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODULE_DM]
USE module_dm

 

The above is part of the error message, the full file can refer to the attachment.

Would like to know how to solve the above problem.

 

 

 

PS.

Here are some system settings:

[liuwenhao@server WRFDA]$ which mpicc
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpicc

[liuwenhao@server WRFDA]$ which mpif90
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpif90

[liuwenhao@server WRFDA]$ which mpiicc
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpiicc

liuwenhao@server WRFDA]$ which mpifort
/public/software/anaconda3/bin/mpifort

[liuwenhao@server WRFDA]$ which mpiifort
/apps/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/bin/mpiifort

 

vi ~/.bashrc  Some of the settings are as follows

source /apps/intel/bin/compilervars.sh intel64
source /apps/intel/impi/2017.2.174/bin64/mpivars.sh
export CC=icc
export CXX=icpc
export FC=ifort

 

Labels (1)
0 Kudos
2 Replies
jimdempseyatthecove
Honored Contributor III
3,931 Views

The first error:

module_dm.f90(1305): error #7013: This module file was not generated by any release of this compiler. [MPI]
use mpi
----------^

Indicates the file mpi.mod was located but was not that which was compiled by ifort. This may be due to an alternat vendor's mpi.mod file was found on the include path (perhaps gfortran's mpi.mod). Alternatively, you could have installed a newer version of Intel's software of which the version 2017 that you are using to compile, is incompatible with the newer version's supplied .mod files.

The last error is due to the first error.

Jim Dempsey

 

0 Kudos
Ron_Green
Moderator
3,925 Views

Jim most likely answered this - it's probably another mpi on the system.  A lot of linux installations come with MPI built for gfortran, which is not compatible.

 

you can check where it's looking for mpi.mod with a couple of simple tests:

 

echo $INCLUDE

 

and search those paths for mpi.mod

also, which mpif90 are you using?  Is it Intel MPI or the default system mpif90 which is built for mpich or openmpi?

which mpif90

 

ANd you can try the -dryrun option to dump all the paths and libs used in your compilation:

mpif90 -f90=ifort -o module_dm.o -c -O3 -dryrun -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big_endian -r8 -real-size `expr 8 \* 8` -i4 module_dm.f90

0 Kudos
Reply