Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
testing: recipes/run_cocodataset_nvidiadl_ssd: allow running the benc…
Browse files Browse the repository at this point in the history
…hmark twice

Run the test twice, just to be sure reexecution is not broken:

test-path: recipes run_cocodataset_nvidiadl_ssd download_twice benchmark_twice
  • Loading branch information
kpouget authored and openshift-merge-robot committed Dec 13, 2021
1 parent 6917a27 commit 7872740
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion testing/recipes/run_cocodataset_nvidiadl_ssd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,12 @@ for i in $(seq $RUN_CNT); do
./run_toolbox.py benchmarking download_coco_dataset "$gpu_node_hostname" $DL_OPT
done

./run_toolbox.py benchmarking run_nvidiadl_ssd "$gpu_node_hostname"
RUN_CNT=1
if [[ "$@" == *benchmark_twice* ]]; then
# for testing purposes, to make sure that the files are cached and not actually downloaded twice
RUN_CNT=2
fi

for i in $(seq $RUN_CNT); do
./run_toolbox.py benchmarking run_nvidiadl_ssd "$gpu_node_hostname"
done

0 comments on commit 7872740

Please sign in to comment.