|
13 | 13 |
|
14 | 14 | jobs:
|
15 | 15 | build:
|
16 |
| - name: Build (${{ inputs.host-platform }}, Python "${{ inputs.python-version }}") |
| 16 | + name: Build (${{ inputs.host-platform }}, Python ${{ inputs.python-version }}) |
17 | 17 | if: ${{ github.repository_owner == 'nvidia' }}
|
18 | 18 | permissions:
|
19 | 19 | id-token: write # This is required for configure-aws-credentials
|
@@ -163,108 +163,3 @@ jobs:
|
163 | 163 | echo "CUDA_CORE_ARTIFACTS_DIR=${CUDA_CORE_ARTIFACTS_DIR}" >> $GITHUB_OUTPUT
|
164 | 164 | echo "CUDA_BINDINGS_ARTIFACT_NAME=${CUDA_BINDINGS_ARTIFACT_NAME}" >> $GITHUB_OUTPUT
|
165 | 165 | echo "CUDA_BINDINGS_ARTIFACTS_DIR=${CUDA_BINDINGS_ARTIFACTS_DIR}" >> $GITHUB_OUTPUT
|
166 |
| -
|
167 |
| - test: |
168 |
| - # TODO: improve the name once a separate test matrix is defined |
169 |
| - name: Test (CUDA ${{ inputs.cuda-version }}) |
170 |
| - # TODO: enable testing once win-64 GPU runners are up |
171 |
| - if: ${{ (github.repository_owner == 'nvidia') && |
172 |
| - startsWith(inputs.host-platform, 'linux') }} |
173 |
| - permissions: |
174 |
| - id-token: write # This is required for configure-aws-credentials |
175 |
| - contents: read # This is required for actions/checkout |
176 |
| - runs-on: ${{ (inputs.host-platform == 'linux-x64' && 'linux-amd64-gpu-v100-latest-1') || |
177 |
| - (inputs.host-platform == 'linux-aarch64' && 'linux-arm64-gpu-a100-latest-1') }} |
178 |
| - # Our self-hosted runners require a container |
179 |
| - # TODO: use a different (nvidia?) container |
180 |
| - container: |
181 |
| - options: -u root --security-opt seccomp=unconfined --shm-size 16g |
182 |
| - image: ubuntu:22.04 |
183 |
| - env: |
184 |
| - NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} |
185 |
| - needs: |
186 |
| - - build |
187 |
| - steps: |
188 |
| - - name: Run nvidia-smi to make sure GPU is working |
189 |
| - shell: bash --noprofile --norc -xeuo pipefail {0} |
190 |
| - run: nvidia-smi |
191 |
| - |
192 |
| - - name: Checkout ${{ github.event.repository.name }} |
193 |
| - uses: actions/checkout@v4 |
194 |
| - with: |
195 |
| - fetch-depth: 0 |
196 |
| - |
197 |
| - - name: Set up test environment |
198 |
| - shell: bash --noprofile --norc -xeuo pipefail {0} |
199 |
| - run: | |
200 |
| - # make outputs from the previous job as env vars |
201 |
| - echo "CUDA_CORE_ARTIFACT_NAME=${{ needs.build.outputs.CUDA_CORE_ARTIFACT_NAME }}" >> $GITHUB_ENV |
202 |
| - echo "CUDA_CORE_ARTIFACTS_DIR=${{ needs.build.outputs.CUDA_CORE_ARTIFACTS_DIR }}" >> $GITHUB_ENV |
203 |
| - echo "CUDA_BINDINGS_ARTIFACT_NAME=${{ needs.build.outputs.CUDA_BINDINGS_ARTIFACT_NAME }}" >> $GITHUB_ENV |
204 |
| - echo "CUDA_BINDINGS_ARTIFACTS_DIR=${{ needs.build.outputs.CUDA_BINDINGS_ARTIFACTS_DIR }}" >> $GITHUB_ENV |
205 |
| -
|
206 |
| - - name: Download bindings build artifacts |
207 |
| - uses: actions/download-artifact@v4 |
208 |
| - with: |
209 |
| - name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }} |
210 |
| - path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} |
211 |
| - |
212 |
| - - name: Display structure of downloaded bindings artifacts |
213 |
| - shell: bash --noprofile --norc -xeuo pipefail {0} |
214 |
| - run: | |
215 |
| - pwd |
216 |
| - ls -lahR $CUDA_BINDINGS_ARTIFACTS_DIR |
217 |
| -
|
218 |
| - - name: Download core build artifacts |
219 |
| - uses: actions/download-artifact@v4 |
220 |
| - with: |
221 |
| - name: ${{ env.CUDA_CORE_ARTIFACT_NAME }} |
222 |
| - path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }} |
223 |
| - |
224 |
| - - name: Display structure of downloaded core build artifacts |
225 |
| - shell: bash --noprofile --norc -xeuo pipefail {0} |
226 |
| - run: | |
227 |
| - pwd |
228 |
| - ls -lahR $CUDA_CORE_ARTIFACTS_DIR |
229 |
| -
|
230 |
| - - name: Set up Python ${{ inputs.python-version }} |
231 |
| - uses: actions/setup-python@v5 |
232 |
| - with: |
233 |
| - python-version: ${{ inputs.python-version }} |
234 |
| - |
235 |
| - # The cache action needs this |
236 |
| - - name: Install zstd |
237 |
| - shell: bash --noprofile --norc -xeuo pipefail {0} |
238 |
| - run: | |
239 |
| - apt update |
240 |
| - apt install zstd |
241 |
| -
|
242 |
| - - name: Set up mini CTK |
243 |
| - uses: ./.github/actions/fetch_ctk |
244 |
| - continue-on-error: false |
245 |
| - with: |
246 |
| - host-platform: ${{ inputs.host-platform }} |
247 |
| - cuda-version: ${{ inputs.cuda-version }} |
248 |
| - fail-on-ctk-cache-miss: true |
249 |
| - |
250 |
| - - name: Run test / analysis |
251 |
| - shell: bash --noprofile --norc -xeuo pipefail {0} |
252 |
| - run: | |
253 |
| - ls $CUDA_PATH |
254 |
| -
|
255 |
| - REPO_DIR=$(pwd) |
256 |
| -
|
257 |
| - cd "${CUDA_BINDINGS_ARTIFACTS_DIR}" |
258 |
| - pip install *.whl |
259 |
| -
|
260 |
| - cd "${CUDA_CORE_ARTIFACTS_DIR}" |
261 |
| - pip install *.whl |
262 |
| -
|
263 |
| - cd "${REPO_DIR}/cuda_bindings" |
264 |
| - pip install -r requirements.txt |
265 |
| - pytest -rxXs tests/ |
266 |
| - # TODO: enable cython tests |
267 |
| - #pytest tests/cython |
268 |
| -
|
269 |
| - cd "${REPO_DIR}/cuda_core" |
270 |
| - pytest -rxXs tests/ |
0 commit comments