Skip to content

Commit

Permalink
Updated job.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Zabegaev committed Dec 21, 2024
1 parent ddaca56 commit b933792
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.vscode
__pycache__
__pycache__
PorePy
.asv/env
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
The report can be found here: https://pmgbergen.github.io/porepy-profiling/

Check if benchmarks run:
Test if benchmarks work correctly:

`asv run --python=same --quick --show-stderr --dry-run`
`asv run --python=same --quick --show-stderr --dry-run --launch-method=spawn --show-stderr`

Actually run them:

`asv run`
`asv run --launch-method=spawn --show-stderr`

Generate html report:

`asv publish`
`asv publish`

Open report in browser:

`asv preview`
6 changes: 5 additions & 1 deletion job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ echo "Job running at: $(date)"

cd /root/app

export OPENBLAS_NUM_THREADS=1
export MKL_NUM_THREADS=1
export OMP_NUM_THREADS=1

echo "Pulling recent git changes"
git reset --hard main
git pull origin main

echo "Starting asv profiling"
/usr/local/bin/asv run NEW --steps=10
/usr/local/bin/asv run NEW --steps=10 --launch-method=spawn --show-stderr

echo "Generating html report"
/usr/local/bin/asv publish
Expand Down

0 comments on commit b933792

Please sign in to comment.