Skip to content

Commit 8f5eb50

Browse files
committed
Fix for log_script usage bug
1 parent a7f807c commit 8f5eb50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

workflows/p3b1_mlrMBO/swift/titan_workflow.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ MODEL_NAME="p3b1"
4444
# Source some utility functions used by EMEWS in this script
4545
source "${EMEWS_PROJECT_ROOT}/etc/emews_utils.sh"
4646

47+
script_name=$(basename $0)
48+
4749
if [ "$#" -ne 1 ]; then
48-
script_name=$(basename $0)
4950
echo "Usage: ${script_name} EXPERIMENT_ID (e.g. ${script_name} experiment_1)"
5051
exit 1
5152
fi
@@ -102,7 +103,7 @@ fi
102103
# for example, USER_VARS=("VAR_1" "VAR_2")
103104
USER_VARS=($CMD_LINE_ARGS)
104105
# log variables and script to to TURBINE_OUTPUT directory
105-
log_script
106+
log_script $EMEWS_PROJECT_ROOT/swift/$script_name
106107

107108
LD_LIBRARY_PATH=/sw/xk6/deeplearning/1.0/sles11.3_gnu4.9.3/lib:/sw/xk6/deeplearning/1.0/sles11.3_gnu4.9.3/cuda/lib64:/opt/gcc/4.9.3/snos/lib64:/sw/xk6/r/3.3.2/sles11.3_gnu4.9.3x/lib64/R/lib
108109
SWIFT=/lustre/atlas2/csc249/proj-shared/sfw/swift-t/stc/bin/swift-t

0 commit comments

Comments
 (0)