#! /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. # # # ######################################################################## setenv MPICH_HOME /usr/local/mpich-1.2.5_pg setenv MPICH_INCLUDE $MPICH_HOME/include setenv MPICH_LIBDIR $MPICH_HOME/lib setenv MPICH_LIB mpich setenv MACHINE "linux/FreeBSD/Windows PC" setenv MACH Linux setenv MACHINEFLAGS "-DMPI" # CPP is the cpp for this machine setenv CPP "/lib/cpp -traditional" setenv CC "pgcc " setenv LOADCC "pgcc " # SYSDIR is the name of the system-specific source directory relative to src/*/ setenv SYSDIR Machines/standard # COMPILER ALIASES: setenv FC "pgf77" setenv OPT_0 "-g -tp p6 -Mnoframe " setenv OPT_1 "-O2 -Munroll -tp p6 -Mnoframe" setenv OPT_2 "-O2 -Munroll -tp p6 -Mnoframe" setenv OPT_3 "-O2 -Munroll -tp p6 -Mnoframe" # LOADER/LINKER: setenv LOAD "pgf77 " setenv LOADLIB "-lm -L$MPICH_LIBDIR -l$MPICH_LIB " # following appears to be the best we have found so far: setenv G77_OPT "-O3 -m486 -malign-double -ffast-math -fomit-frame-pointer" # little or no optimization: setenv L0 "$FC -c $OPT_0" # modest optimization (local scalar): setenv L1 "$FC -c $OPT_1" # high scalar optimization (but not vectorization): setenv L2 "$FC -c $OPT_2" # high optimization (may be vectorization, not parallelization): setenv L3 "$FC -c $OPT_3" # ranlib, if it exists setenv RANLIB ranlib