File indexing completed on 2024-04-06 12:15:46
0001
0002
0003 VERBOSE=false
0004 RELEASE=false
0005 MCA_PREFIX=cmsenv
0006
0007 for ARG in "$@"; do
0008 case "$ARG" in
0009 -v|--verbose)
0010 VERBOSE=true
0011 ;;
0012 ${MCA_PREFIX}_release)
0013 RELEASE=true
0014 ;;
0015 esac
0016 done
0017
0018
0019 RELEASE_BASE=
0020 for VAR in CMSSW_BASE CMSSW_RELEASE_BASE CMSSW_FULL_RELEASE_BASE; do
0021 TEST_PATH=${!VAR}
0022 if [ -x $TEST_PATH/bin/$SCRAM_ARCH/cmsenv_orted ]; then
0023 RELEASE_BASE=$TEST_PATH
0024 break
0025 fi
0026 done
0027 if [ -z "$RELEASE_BASE" ]; then
0028 echo "Error: cannot find cmsenv_orted in the \$PATH."
0029 exit 1
0030 fi
0031
0032
0033 EXTRA_OPTIONS=""
0034
0035
0036 $VERBOSE && EXTRA_OPTIONS="$EXTRA_OPTIONS -mca ${MCA_PREFIX}_verbose true"
0037
0038
0039 $RELEASE || EXTRA_OPTIONS="$EXTRA_OPTIONS -mca ${MCA_PREFIX}_release $CMSSW_BASE"
0040
0041
0042 $VERBOSE && echo mpirun --launch-agent $RELEASE_BASE/bin/$SCRAM_ARCH/cmsenv_orted $EXTRA_OPTIONS "$@"
0043 exec mpirun --launch-agent $RELEASE_BASE/bin/$SCRAM_ARCH/cmsenv_orted $EXTRA_OPTIONS "$@"