[MITgcm-support] Unable to compile

kunal madkaiker kunal.madkaiker02 at gmail.com
Wed Sep 2 11:51:25 EDT 2020


Dear All,

Am sorry for the confusion. I meant the "optfiles" instead of modules.
I haven't added any modules so far, and was just trying to compile using
the already provided optfiles.

Also, Tried to run compile.sh using...
.../tools/genmake2 -mpi
make depend
make

When run on a local machine, it chooses gfortran and mpi77 as the suitable
combination. But not in the case for HPC
===  Searching for possible settings for OPTFILE  ===
  The platform appears to be:  linux_amd64
  The possible FORTRAN compilers found in your path are:  gfortran f95
  Setting OPTFILE to: ../../../../tools/build_options/linux_amd64_gfortran
    using OPTFILE="../../../../tools/build_options/linux_amd64_gfortran"
../../../../tools/build_options/linux_amd64_gfortran: line 131: nf-config:
command not found
Package ompi was not found in the pkg-config search path.
Perhaps you should add the directory containing `ompi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ompi' found
MPI_HOME is not set and pkg-config not available, aborting
make: *** No rule to make target `depend'.  Stop.
make: *** No targets specified and no makefile found.  Stop.

Kindly assist as to what changes I need to make, in this case,
linux_amd64_gfortran optfile.
I apologise for my lack of knowledge, since I have just started handling
HPC.

Regards
Kunal

On Thu, Aug 27, 2020 at 4:35 AM Michael Schaferkotter <
schaferk at bellsouth.net> wrote:

> 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
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20200902/90644766/attachment.html>


More information about the MITgcm-support mailing list