File tree 2 files changed +19
-4
lines changed
2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ jobs:
200
200
- " 11.8.0"
201
201
runner :
202
202
- default
203
+ local_ctk :
204
+ - 1 # use mini CTK
205
+ - 0 # use CTK wheels
203
206
include :
204
207
- host-platform : linux-64
205
208
python-version : " 3.12"
@@ -214,7 +217,7 @@ jobs:
214
217
- build
215
218
secrets : inherit
216
219
uses :
217
- ./.github/workflows/test_local_ctk .yml
220
+ ./.github/workflows/test_wheel .yml
218
221
with :
219
222
host-platform : ${{ matrix.host-platform }}
220
223
python-version : ${{ matrix.python-version }}
Original file line number Diff line number Diff line change 1
- name : " CI: Test against local CTK "
1
+ name : " CI: Test wheels "
2
2
3
3
on :
4
4
workflow_call :
15
15
cuda-version :
16
16
type : string
17
17
required : true
18
+ local_ctk :
19
+ type : string
20
+ required : true
18
21
runner :
19
22
type : string
20
23
required : true
@@ -138,6 +141,7 @@ jobs:
138
141
AGENT_TOOLSDIRECTORY : " /opt/hostedtoolcache"
139
142
140
143
- name : Set up mini CTK
144
+ if : ${{ inputs.local_ctk == '1' }}
141
145
uses : ./.github/actions/fetch_ctk
142
146
continue-on-error : false
143
147
with :
@@ -150,7 +154,11 @@ jobs:
150
154
ls $CUDA_PATH
151
155
152
156
pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
153
- pip install *.whl
157
+ if [[ "${{ inputs.local_ctk }}" == 1 ]]; then
158
+ pip install *.whl
159
+ else
160
+ pip install $(ls *.whl)[all]
161
+ fi
154
162
popd
155
163
156
164
pushd ./cuda_bindings
@@ -171,7 +179,11 @@ jobs:
171
179
# If mismatch: cuda.bindings is installed from the backport branch.
172
180
if [[ "${SKIP_CUDA_BINDINGS_TEST}" == 1 ]]; then
173
181
pushd "${CUDA_BINDINGS_ARTIFACTS_DIR}"
174
- pip install *.whl
182
+ if [[ "${{ inputs.local_ctk }}" == 1 ]]; then
183
+ pip install *.whl
184
+ else
185
+ pip install $(ls *.whl)[all]
186
+ fi
175
187
popd
176
188
fi
177
189
TEST_CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${{ inputs.cuda-version }})"
You can’t perform that action at this time.
0 commit comments