File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 91
91
export PL_RUN_STANDALONE_TESTS=1
92
92
if [ "${PACKAGE_NAME}" == "fabric" ]; then
93
93
cd parity_fabric/
94
- bash run_standalone_tasks.sh
94
+ bash run_standalone_tasks.sh cuda
95
95
cd ..
96
96
fi
97
97
export PL_RUN_STANDALONE_TESTS=0
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ export PYTHONPATH="${PYTHONPATH}:$(pwd)"
18
18
export PYTHONPATH=" ${PYTHONPATH} :$( pwd) /.."
19
19
20
20
MAX_RETRIES=3
21
+ # parsing argument from call like `bash run_standalone_tasks.sh cuda`
22
+ ACCELERATOR=$1
23
+ # optional tolerance argument, default to 0.01
24
+ TOLERANCE=${2:- 0.01}
21
25
22
26
retry_command () {
23
27
local command=" $@ "
@@ -39,5 +43,4 @@ retry_command() {
39
43
return $exit_code
40
44
}
41
45
42
- retry_command " python -m test_parity_ddp --accelerator=" cpu" --devices=2 --tolerance=0.02"
43
- retry_command " python -m test_parity_ddp --accelerator=" cuda" --devices=2 --tolerance=0.01"
46
+ retry_command " python -m test_parity_ddp --accelerator=" $ACCELERATOR " --devices=2 --tolerance=$TOLERANCE "
You can’t perform that action at this time.
0 commit comments