?? mpirun_setup
字號(hào):
#! /bin/sh## MPICH-V# Copyright (C) 2002, 2003 Groupe Cluster et Grid, LRI, Universite de Paris Sud### This file is part of MPICH-V.## MPICH-V is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## MPICH-V is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with MPICH-V; if not, write to the Free Software# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA## $Id: mpirun_setup,v 1.6 2004/04/09 17:11:13 bouziane Exp $#set -x## This script is invoked from the topdir (not top_srcdir in a VPATH build)# by mpich/Makefile to create the mpirun program. The install script# specific to the device must know how to install the resulting mpirun.#if [ -z "${binbuild_dir}" ] ; then echo "The variable binbuild_dir must contain the directory " echo "in which to install the mpirun programs for ch_v." exit 1fiif [ -z "${MAKE}" ] ; then MAKE=make ; fi#cp util/tstmachines ${binbuild_dir}/tstmachines/bin/rm -f ${binbuild_dir}/mpiruncp util/mpirun.args.in ${binbuild_dir}/mpirun.argschmod 755 ${binbuild_dir}/mpirun.argsMPIRUNLIST=`sh ${srcdir}/mpid/ch_v/mpirun/mpirun.lst`for file in $MPIRUNLIST ; do bfile=`basename $file .in` dfile=`dirname $file` echo "" echo "#### INSTALLING $bfile in $dfile ($file)" if [ -d $file ]; then /bin/rm -fr ${binbuild_dir}/$bfile cp -r $file ${binbuild_dir}/$bfile chmod -R a+rX ${binbuild_dir}/$bfile if [ "$?" = 0 ]; then echo "#### DONE" else echo "**** ?!? Problem ?!?" fi else if ${MAKE} MPIRUN_HOME=${binbuild_dir} -C $dfile $bfile ; then /bin/rm -f ${binbuild_dir}/$bfile install $file ${binbuild_dir}/$bfile fi chmod 775 ${binbuild_dir}/$bfile if [ "$?" = 0 ]; then echo "#### DONE" else echo "**** ?!? Problem ?!?" fi fidonefor file in ${srcdir}/util/mpirun_dbg.* ; do bfile=`basename $file .in` /bin/rm -f ${binbuild_dir}/$bfile cp $file ${binbuild_dir}/$bfile chmod 775 ${binbuild_dir}/$bfiledonecp util/mpirun ${binbuild_dir}if [ ! -x ${binbuild_dir}/tarch ] ; then cp ${top_srcdir}/bin/tarch ${binbuild_dir} cp ${top_srcdir}/bin/tdevice ${binbuild_dir}fi
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -