#! /bin/csh -f ######################################################################## # # # Copyright (c) 1986, 1991, 1995 # # Regents of the University of California # # # # All Rights Reserved # # # # Machine Dependency Handling System # # # # Bill Ross ross@cgl.ucsf.edu # # An extension of work of George Seibel # # # # Dependencies written by various authors. # # # # Permission to use, copy, modify, and distribute this software and # # its documentation for any purpose and without fee is hereby # # granted, provided that the above copyright notice appear in all # # copies and that both that copyright notice and this permission # # notice appear in supporting documentation, and that the name of # # the University of California not be used in advertising or # # publicity pertaining to distribution of the software without # # specific, written prior permission. # # # # THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL # # WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED # # WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE # # UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR # # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM # # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, # # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # # # ######################################################################## if ( ! $?MPICH_HOME ) then echo "****************************************************" echo " MPICH_HOME is not set in src/MACHINE file " echo " set MPICH_HOME environment variable in" echo " shell or in MACHINE file as the location" echo " of the include/ and lib/ directories" echo " containing mpif.h and libmpi.a or libmpich.a" echo " of our mpich distribution." echo " Use: setenv MPICH_HOME /usr/local/src/mpich/build/LINUX/ch_p4" echo " " echo " Also chek the name of the mpi library and adjust" echo " MPICH_LIB in src/MACHINE if necessary. " echo "****************************************************" exit 1 endif setenv MPICH_INCLUDE $MPICH_HOME/include setenv MPICH_LIBDIR $MPICH_HOME/lib setenv MPICH_LIB " -lmpich -lpmpich " # setenv MACHINE "linux/FreeBSD PC, intel compiler" setenv MACH Linux setenv MACHINEFLAGS " -DMEM_ALLOC -DMPI" # CPP is the cpp for this machine setenv CPP "/lib/cpp -traditional -I$MPICH_INCLUDE " setenv CC "icc" # SYSDIR is the name of the system-specific source directory relative to src/*/ setenv SYSDIR Machines/standard # COMPILER ALIASES: # LOADER/LINKER: setenv LOAD "ifort " setenv LOADLIB " -L$MPICH_LIBDIR $MPICH_LIB " # little or no optimization: setenv L0 "ifort -c -w -O0 " # modest optimization (local scalar): setenv L1 "ifort -c -w -O2 " # high scalar optimization (but not vectorization): setenv L2 "ifort -c -w -O2 " # high optimization (may be vectorization, not parallelization): setenv L3 "ifort -c -w -O3 " # ranlib, if it exists setenv RANLIB ranlib