[MITgcm-support] Unable to compile

Michael Schaferkotter schaferk at bellsouth.net
Wed Aug 26 18:25:43 EDT 2020


you using (in the first case) pgi build options, yet gfortran (gcc) is the compiler. 
you need the compiler to be ifort. no telling what modules you have loaded.

report what ‘module list’ returns.


Sent from Here3.

> On Aug 26, 2020, at 17:10, kunal madkaiker <kunal.madkaiker02 at gmail.com> wrote:
> 
> Dear MITgcm users,
> 
> I am trying to run the model on hpc. In order to compile, I am using the available modules from MITgcm/tools/build_options.
> Tried with 2 of the modules i.e. linux_amd64_pgf90+mpi_xd1 and linux_amd64_ifort+impi, but getting compilation error from both. I am using the MITgcm_c67f version
> 
> My compiling script is:
> /home/adrao/Model/MITgcm_c67f/MITgcm/tools/genmake2 --optfile=/home/adrao/Model/MITgcm_c67f/MITgcm/tools/build_options/linux_amd64_pgf90+mpi_xd1 -mpi
> make depend
> make
> ---------
> The error that I get for linux_amd64_pgf90+mpi_xd1 is,
> 
> cat chksum_tiled.F |  /usr/bin/cpp -P -traditional -DWORDLENGTH=4 -DALLOW_USE_MPI  -I/sopt/mpi/mpich/pgi/include -I/sopt/netcdf/netcdf3-gcc-serial/include | ../../../../tools/set64bitConst.sh  > chksum_tiled.f
> mpif90 -byteswapio -Mnodclchk -O2 -Munroll  -c chksum_tiled.f
> gfortran: error: unrecognized command line option ‘-byteswapio’
> gfortran: error: unrecognized command line option ‘-Mnodclchk’
> gfortran: error: unrecognized command line option ‘-Munroll’
> Makefile:1484: recipe for target 'chksum_tiled.o' failed
> make[1]: *** [chksum_tiled.o] Error 1
> make[1]: Leaving directory '/home/adrao/Model/MITgcm_c67f/MITgcm/verification/kunal_RUNTESTRUN/test_trial/testing_mpi_compiler'
> Makefile:1392: recipe for target 'fwd_exe_target' failed
> make: *** [fwd_exe_target] Error 2
> ---------
> Whereas, for linux_amd64_ifort+impi is,
> cat chksum_tiled.F |  cpp -traditional -P -DWORDLENGTH=4 -DALLOW_USE_MPI  -I/usr/local/netcdf3/include -I/usr/local/bin/mpich/include | ../../../../tools/set64bitConst.sh  > chksum_tiled.f
> mpiifort -m64 -convert big_endian -assume byterecl -mcmodel=medium -O2 -align -ip -fp-model source -xHost  -c chksum_tiled.f
> make[1]: mpiifort: Command not found
> Makefile:1491: recipe for target 'chksum_tiled.o' failed
> make[1]: *** [chksum_tiled.o] Error 127
> make[1]: Leaving directory '/home/adrao/Model/MITgcm_c67f/MITgcm/verification/kunal_RUNTESTRUN/test_trial/testing_mpi_compiler'
> Makefile:1399: recipe for target 'fwd_exe_target' failed
> make: *** [fwd_exe_target] Error 2
> 
> Also, attaching genmake2, genmake.log files for both.
> Kindly assist in case I need to edit the modules, or if an alternative is available. Thanks!
> 
> Regards
> Kunal
> <genmake2>
> <ifort_impi_genmake.log>
> <linux_amd64_pgf90+mpi_xd1_genmake.log>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support



More information about the MITgcm-support mailing list