File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eux -o pipefail
4
+
5
+ retry () {
6
+ $* || (sleep 1 && $* ) || (sleep 2 && $* ) || (sleep 4 && $* ) || (sleep 8 && $* )
7
+ }
8
+
9
+ # Clone the Pytorch branch
10
+ retry git clone --depth 1 https://github.com/pytorch/pytorch.git
11
+ retry git submodule update --init --recursive
12
+ pushd pytorch
13
+
14
+ # Run test_ops validation
15
+ export CUDA_LAUNCH_BLOCKING=1
16
+ python3 test/test_ops.py
Original file line number Diff line number Diff line change 27
27
default : false
28
28
required : false
29
29
type : boolean
30
+ include-test-ops :
31
+ description : ' Include Test Ops tests (only Linux)'
32
+ default : false
33
+ required : false
34
+ type : boolean
30
35
workflow_dispatch :
31
36
inputs :
32
37
os :
65
70
default : " "
66
71
required : false
67
72
type : string
73
+ include-test-ops :
74
+ description : ' Include Test Ops tests (only Linux)'
75
+ default : false
76
+ required : false
77
+ type : boolean
68
78
69
79
70
80
jobs :
94
104
torchonly : ${{ inputs.torchonly }}
95
105
version : ${{ inputs.version }}
96
106
release-matrix : ${{ needs.generate-release-matrix.outputs.matrix }}
107
+ include-test-ops : ${{ inputs.include-test-ops }}
97
108
98
109
linux-aarch64 :
99
110
if : inputs.os == 'linux-aarch64' || inputs.os == 'all'
Original file line number Diff line number Diff line change 27
27
default : " "
28
28
required : false
29
29
type : string
30
+ include-test-ops :
31
+ description : ' Include Test Ops tests (only Linux)'
32
+ default : false
33
+ required : false
34
+ type : boolean
30
35
workflow_dispatch :
31
36
inputs :
32
37
channel :
58
63
default : " "
59
64
required : false
60
65
type : string
66
+ include-test-ops :
67
+ description : ' Include Test Ops tests (only Linux)'
68
+ default : false
69
+ required : false
70
+ type : boolean
61
71
62
72
jobs :
63
73
generate-linux-matrix :
84
94
set -ex
85
95
export ENV_NAME="conda-env-${{ github.run_id }}"
86
96
export TORCH_ONLY=${{ inputs.torchonly }}
97
+ export INCLUDE_TEST_OPS=${{ inputs.include-test-ops }}
87
98
export RELEASE_VERSION=${{ inputs.version }}
88
99
export TARGET_OS="linux"
89
100
eval "$(conda shell.bash hook)"
97
108
98
109
# Standart case: Validate binaries
99
110
source ./.github/scripts/validate_binaries.sh
111
+
112
+ if [[ ${INCLUDE_TEST_OPS} == 'true' ]]; then
113
+ source ./.github/scripts/validate_test_ops.sh
114
+ fi
You can’t perform that action at this time.
0 commit comments