⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpirun_setup

📁 Path MPICH-V for MPICH the MPI Implementation
💻
字号:
#! /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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -