[MITgcm-support] mpi=PATH option for genmake2

Martin Losch Martin.Losch at awi.de
Thu Sep 19 10:23:12 EDT 2013


Hi Dan,
try this:

export MPI_INC_DIR=/exports/applications/apps/SL6/MPI/openmpi/intel/1.6.2-intel_12.0/include
../../tools/genmake2 -mods=../code_rise -adof=../../tools/adjoint_options/adjoint_f95 -mpi -of ../../tools/build_options/linux_amd64_ifort

Martin

In the long run it may be useful to have a specific build_options file for your machine.


On Sep 19, 2013, at 3:27 PM, Daniel Goldberg <dngoldberg at gmail.com> wrote:

> Hi all,
> 
> I usually write to the "devel" list but this seemed more a support issue.
> 
> I am trying for the first time to build on a computer that is not at MIT -- and I am attempting to use genmake2 with the "--mpi=PATH" option. 
> 
> I check where my mpif77 is:
> [dgoldber at frontend04 build_rise]$ which mpif77
> /exports/applications/apps/SL6/MPI/openmpi/intel/1.6.2-intel_12.0/bin/mpif77
> 
> and then I call genmake2:
> 
>  ../../tools/genmake2 -mods=../code_rise -adof=../../tools/adjoint_options/adjoint_f95 -mpi=/exports/applications/apps/SL6/MPI/openmpi/intel/1.6.2-intel_12.0
> 
> is this supposed to append the /bin, /include, and /lib directories to the appropriate paths? It does not seem to on inspection of the Makefile, and "make depend" fails.
> 
> According to genmake2, linux_amd64_gfortran was chosen by default, I don't know if I should specify a different one (or if there is not an appropriate one available, as I doubt MITgcm has been compiled here before!)
> 
> Thanks all,
> Dan
> 
> -- 
> 
> Daniel Goldberg, PhD
> Lecturer in Glaciology
> School of Geosciences, University of Edinburgh
> Geography Building, Drummond Street, Edinburgh EH8 9XP
> 
> 
> em: Dan.Goldberg at ed.ac.uk
> web: http://ocean.mit.edu/~dgoldberg
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list