-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into stepsecurity_remediation_1724970513
- Loading branch information
Showing
2 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
# Copyright(C) 1999-2020 National Technology & Engineering Solutions | ||
# Copyright(C) 1999-2024 National Technology & Engineering Solutions | ||
# of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with | ||
# NTESS, the U.S. Government retains certain rights in this software. | ||
# | ||
|
@@ -15,6 +15,10 @@ Usage: epup --subcycle <cycle_count> ...normal epu options... | |
->->-> Send email to [email protected] for epup support.<-<-<- | ||
Uses: GNU Parallel, | ||
O. Tange (2018): GNU Parallel 2018, Mar 2018, ISBN 9781387509881, | ||
DOI https://doi.org/10.5281/zenodo.1146014 | ||
EPU_USAGE_EOF | ||
exit 1 | ||
} | ||
|
@@ -49,16 +53,27 @@ cycles=-1 | |
pushd $(dirname "${0}") > /dev/null | ||
basedir=$(pwd -P) | ||
popd > /dev/null | ||
if [ -x ${basedir}/epu -a -x ${basedir}/parallel -a -x ${basedir}/getopt.seacas ]; then | ||
|
||
if [ -x ${basedir}/epu -a -x ${basedir}/getopt.seacas ]; then | ||
ACCESS_BIN=$basedir | ||
elif [ "$ACCESS" == "" ]; then | ||
ACCESS_BIN=@ACCESSDIR@/bin | ||
else | ||
ACCESS_BIN=${ACCESS}/bin | ||
fi | ||
|
||
if command -v ${basedir}/parallel >/dev/null 2>&1; then | ||
PARALLEL=$basedir/parallel | ||
elif command -v parallel >/dev/null 2>&1; then | ||
PARALLEL=parallel | ||
elif command -v ${ACCESS_BIN}/parallel >/dev/null 2>&1; then | ||
PARALLEL=${ACCESS_BIN}/parallel | ||
else | ||
echo "ERROR: Could not find an executable named \"parallel\" for use with the script" | ||
exit 1 | ||
fi | ||
|
||
EPU=${ACCESS_BIN}/epu | ||
PARALLEL=${ACCESS_BIN}/parallel | ||
SEQ="seq -w" | ||
if [ $# -eq 0 ] ; then | ||
usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters