-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
90 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
. ${HOME}/miniconda3/etc/profile.d/conda.sh | ||
|
||
if [ -z "${CONDA_ENV}" ]; then | ||
echo "ERROR: CONDA_ENV is not set" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "${TEST_CONFIG}" ]; then | ||
echo "ERROR: TEST_CONFIG is not set" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "${SETUP_SCRIPT}" ]; then | ||
echo "ERROR: SETUP_SCRIPT is not set" | ||
exit 1 | ||
fi | ||
|
||
. "${SETUP_SCRIPT}" | ||
conda activate "${CONDA_ENV}" | ||
|
||
parent_dir=$(dirname "$(readlink -f "$0")")/../.. | ||
cd ${parent_dir} | ||
|
||
# Test subprocess worker | ||
if [[ "$TEST_CONFIG" == 'cpu' ]]; then | ||
python -m torchbenchmark._components.test.test_subprocess | ||
python -m torchbenchmark._components.test.test_worker | ||
fi | ||
|
||
# Test models | ||
python test.py -v -k "$TEST_CONFIG" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: TorchBench PR Test | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
cpu-test: | ||
timeout-minutes: 120 # 2 hours | ||
uses: ./.github/workflow/_linux-test-cpu.yml | ||
with: | ||
timeout-minutes: 120 # 2 hours | ||
cuda-test: | ||
uses: ./.github/workflow/_linux-test-cuda.yml | ||
with: | ||
timeout-minutes: 120 # 2 hours | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }} | ||
cancel-in-progress: true |
This file was deleted.
Oops, something went wrong.