Commit 12d97d6 1 parent d947869 commit 12d97d6 Copy full SHA for 12d97d6
File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ while [ ${#} -gt 0 ]; do
39
39
declare -x CALIBRATION_CONFIG_BASENAME=" ${2:? } "
40
40
shift
41
41
;;
42
+ --primary-workers)
43
+ declare -x PRIMARY_WORKERS=" ${2:? } "
44
+ shift
45
+ ;;
42
46
esac
43
47
shift
44
48
done
@@ -101,6 +105,10 @@ start_calibration() {
101
105
return ${NGEN_RETURN}
102
106
}
103
107
108
+ # Run make_data_local Python functions to make necessary data local
109
+ # Called for every worker, but Python code will make sure only one worker per node makes a call that has effect
110
+ py_funcs make_data_local ${WORKER_INDEX:- 0} ${PRIMARY_WORKERS:- 0}
111
+
104
112
# We can allow worker index to not be supplied when executing serially
105
113
if [ " ${WORKER_INDEX:- 0} " = " 0" ]; then
106
114
if [ " $( whoami) " = " ${MPI_USER:? MPI user not defined} " ]; then
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ while [ ${#} -gt 0 ]; do
35
35
declare -x WORKER_INDEX=" ${2:? } "
36
36
shift
37
37
;;
38
+ --primary-workers)
39
+ declare -x PRIMARY_WORKERS=" ${2:? } "
40
+ shift
41
+ ;;
38
42
esac
39
43
shift
40
44
done
@@ -60,6 +64,10 @@ if [ ! -e /dmod/datasets/linked_job_output ]; then
60
64
ln -s ${JOB_OUTPUT_WRITE_DIR} /dmod/datasets/linked_job_output
61
65
fi
62
66
67
+ # Run make_data_local Python functions to make necessary data local
68
+ # Called for every worker, but Python code will make sure only one worker per node makes a call that has effect
69
+ py_funcs make_data_local ${WORKER_INDEX:- 0} ${PRIMARY_WORKERS:- 0}
70
+
63
71
# We can allow worker index to not be supplied when executing serially
64
72
if [ " ${WORKER_INDEX:- 0} " = " 0" ]; then
65
73
if [ " $( whoami) " = " ${MPI_USER:? MPI user not defined} " ]; then
You can’t perform that action at this time.
0 commit comments