Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

impi(intel fortran) can I use mpich for the compiler, File 'netcdf.mod' opened at (1) is not a GNU Fortran module file

Hi All, I'm using CESM1-2-2-1, BTW, I'm using intel for the compiler and saw impi as the mpi, can I use mpich for the parallel compiler? Also I compiled the code with intel but in the csm_share there is error related to GNU! can not guess the reason. File 'netcdf.mod' opened at (1) is not a GNU Fortran module file Attached please find the Macros and the logfiles. Cheers PS: I tried downloding CESM1_0_6 version, but there was error in downloading pio repos, is it still available?
 

jedwards

CSEG and Liaisons
Staff member
There is a note elsewhere in this forum about downloading pio for older cesm versions.   You didn't attach any logs, but the error indicates that you are not finding the compiler you think you are.   Yes you can use mpich with the intel compilers.   Have you considered using cesm2?
 

jedwards

CSEG and Liaisons
Staff member
There is a note elsewhere in this forum about downloading pio for older cesm versions.   You didn't attach any logs, but the error indicates that you are not finding the compiler you think you are.   Yes you can use mpich with the intel compilers.   Have you considered using cesm2?
 

jedwards

CSEG and Liaisons
Staff member
There is a note elsewhere in this forum about downloading pio for older cesm versions.   You didn't attach any logs, but the error indicates that you are not finding the compiler you think you are.   Yes you can use mpich with the intel compilers.   Have you considered using cesm2?
 

jedwards

CSEG and Liaisons
Staff member
There is a note elsewhere in this forum about downloading pio for older cesm versions.   You didn't attach any logs, but the error indicates that you are not finding the compiler you think you are.   Yes you can use mpich with the intel compilers.   Have you considered using cesm2?
 
Thanks for the info about the pio note for the older version of CESM. Oops, sorry for not attaching. Attached please find the logs and Macro. Thanks.  Thanks, After finishing with the CESM1-2-2-1, I plan for the CESM2. Sorry the error is in pio log. mct & gptl seems OK.
 
Thanks for the info about the pio note for the older version of CESM. Oops, sorry for not attaching. Attached please find the logs and Macro. Thanks.  Thanks, After finishing with the CESM1-2-2-1, I plan for the CESM2. Sorry the error is in pio log. mct & gptl seems OK.
 
Thanks for the info about the pio note for the older version of CESM. Oops, sorry for not attaching. Attached please find the logs and Macro. Thanks.  Thanks, After finishing with the CESM1-2-2-1, I plan for the CESM2. Sorry the error is in pio log. mct & gptl seems OK.
 
Thanks for the info about the pio note for the older version of CESM. Oops, sorry for not attaching. Attached please find the logs and Macro. Thanks.  Thanks, After finishing with the CESM1-2-2-1, I plan for the CESM2. Sorry the error is in pio log. mct & gptl seems OK.
 

jedwards

CSEG and Liaisons
Staff member
/opt/app/intel/impi/2017.4.256/intel64/bin/mpif90 -DNO_C_SIZEOF -DUSEMPIIO -D_NETCDF -D_NOPNETCDF -D_NOUSEMCT
-D_USEBOX -O -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -fno-range-check -DLINUX -DNDEBUG -DMCT_INTERFACE
-DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI
-DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/LARGE0/gr20001/b30861/tmp1/cesm/cesm1_2_2_1/scripts/test1/EXEROOT/intel/mpich/nodebug/nothreads/include

This line shows several problems - it shows you are trying to use both impi and mpich.
It shows that the compiler defined is GNU not intel.
I think you need to work from the command line on a simple program like mpi_hello.F90
until you figure out how to get the correct combination of compiler, mpi, and netcdf libraries.
 

jedwards

CSEG and Liaisons
Staff member
/opt/app/intel/impi/2017.4.256/intel64/bin/mpif90 -DNO_C_SIZEOF -DUSEMPIIO -D_NETCDF -D_NOPNETCDF -D_NOUSEMCT
-D_USEBOX -O -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -fno-range-check -DLINUX -DNDEBUG -DMCT_INTERFACE
-DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI
-DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/LARGE0/gr20001/b30861/tmp1/cesm/cesm1_2_2_1/scripts/test1/EXEROOT/intel/mpich/nodebug/nothreads/include

This line shows several problems - it shows you are trying to use both impi and mpich.
It shows that the compiler defined is GNU not intel.
I think you need to work from the command line on a simple program like mpi_hello.F90
until you figure out how to get the correct combination of compiler, mpi, and netcdf libraries.
 

jedwards

CSEG and Liaisons
Staff member
/opt/app/intel/impi/2017.4.256/intel64/bin/mpif90 -DNO_C_SIZEOF -DUSEMPIIO -D_NETCDF -D_NOPNETCDF -D_NOUSEMCT
-D_USEBOX -O -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -fno-range-check -DLINUX -DNDEBUG -DMCT_INTERFACE
-DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI
-DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/LARGE0/gr20001/b30861/tmp1/cesm/cesm1_2_2_1/scripts/test1/EXEROOT/intel/mpich/nodebug/nothreads/include

This line shows several problems - it shows you are trying to use both impi and mpich.
It shows that the compiler defined is GNU not intel.
I think you need to work from the command line on a simple program like mpi_hello.F90
until you figure out how to get the correct combination of compiler, mpi, and netcdf libraries.
 

jedwards

CSEG and Liaisons
Staff member
/opt/app/intel/impi/2017.4.256/intel64/bin/mpif90 -DNO_C_SIZEOF -DUSEMPIIO -D_NETCDF -D_NOPNETCDF -D_NOUSEMCT
-D_USEBOX -O -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -fno-range-check -DLINUX -DNDEBUG -DMCT_INTERFACE
-DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI
-DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRGNU -DHAVE_SLASHPROC -I. -I/LARGE0/gr20001/b30861/tmp1/cesm/cesm1_2_2_1/scripts/test1/EXEROOT/intel/mpich/nodebug/nothreads/include

This line shows several problems - it shows you are trying to use both impi and mpich.
It shows that the compiler defined is GNU not intel.
I think you need to work from the command line on a simple program like mpi_hello.F90
until you figure out how to get the correct combination of compiler, mpi, and netcdf libraries.
 
Thanks for your reply and comments, yest the problem is that netcdf is built with intel and the program connects to gnu, BTW, I checked and I could compile sample mpi fortran hello world both by mpiioft and mpif90.(I have pgi available as well but I guess netcdf assembled with intel)Also can I changed env_build.xml file in order to avoid accessing to mpif90 and gnu as follows?Cheers PS: even in this way I see the built Macros file has MPICC:= mpicc, MPICXX:= mpipc,MPIFC:= mpif90 and I need to manually change it for intel(mpiifort for example)Thanks in advance
 
Thanks for your reply and comments, yest the problem is that netcdf is built with intel and the program connects to gnu, BTW, I checked and I could compile sample mpi fortran hello world both by mpiioft and mpif90.(I have pgi available as well but I guess netcdf assembled with intel)Also can I changed env_build.xml file in order to avoid accessing to mpif90 and gnu as follows?Cheers PS: even in this way I see the built Macros file has MPICC:= mpicc, MPICXX:= mpipc,MPIFC:= mpif90 and I need to manually change it for intel(mpiifort for example)Thanks in advance
 
Thanks for your reply and comments, yest the problem is that netcdf is built with intel and the program connects to gnu, BTW, I checked and I could compile sample mpi fortran hello world both by mpiioft and mpif90.(I have pgi available as well but I guess netcdf assembled with intel)Also can I changed env_build.xml file in order to avoid accessing to mpif90 and gnu as follows?Cheers PS: even in this way I see the built Macros file has MPICC:= mpicc, MPICXX:= mpipc,MPIFC:= mpif90 and I need to manually change it for intel(mpiifort for example)Thanks in advance
 
Thanks for your reply and comments, yest the problem is that netcdf is built with intel and the program connects to gnu, BTW, I checked and I could compile sample mpi fortran hello world both by mpiioft and mpif90.(I have pgi available as well but I guess netcdf assembled with intel)Also can I changed env_build.xml file in order to avoid accessing to mpif90 and gnu as follows?Cheers PS: even in this way I see the built Macros file has MPICC:= mpicc, MPICXX:= mpipc,MPIFC:= mpif90 and I need to manually change it for intel(mpiifort for example)Thanks in advance
 
Top