Skip to content

Commit

Permalink
script to run all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Oct 12, 2019
1 parent 1078a8b commit 68c4747
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions run_all_examples.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

find . -name "*.py" -not -path "*/1-advanced/*" -not -path "*/2-benchmark/*" | while read i
do
echo $i
grep -q "This example runs slow" $i
if [ $? == 0 ]; then
# If the example runs too long, skip the example
echo "Skip slow example $i"
else
OMP_NUM_THREADS=2 python $i
fi
done

0 comments on commit 68c4747

Please sign in to comment.