Skip to content

Commit

Permalink
Run GPU test in various environment
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzijian629 committed Jul 7, 2023
1 parent 6f0d686 commit 1a9c63e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pfnci/config.pbtxt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ configs {
time_limit: {
seconds: 3600
}
command: "bash .pfnci/run_gpu_test.sh"
command: "bash .pfnci/run_gpu_test_all.sh"
}
}
1 change: 1 addition & 0 deletions .pfnci/run_gpu_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set -eux
nvidia-smi
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get install -y \
python3 \
python3-pip \
Expand Down
10 changes: 10 additions & 0 deletions .pfnci/run_gpu_test_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -eux

for LIBTORCH_VERSION in 1.12.1 1.13.0; do
for OS in ubuntu20.04 ubuntu22.04; do
LIBTORCH_VERSION=$LIBTORCH_VERSION \
OS=$OS \
bash .pfnci/run_gpu_test.sh
done
done

0 comments on commit 1a9c63e

Please sign in to comment.