forked from jax-ml/jax
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (45 loc) · 1.37 KB
/
rocm-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: ROCM CI
on:
# Trigger the workflow on push or pull request,
# but only for the rocm-main branch
push:
branches:
- rocm-main
pull_request:
branches:
- rocm-main
jobs:
build-docker: # strategy and matrix come here
runs-on: mi-250
steps:
- name: Print Environment Variables
run: printenv
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: ${{ github.sha }}
- name: Build Docker
env:
DOCKER_IMG_NAME: rocm_jax_r6_1_3_py3_10_id${{ github.run_id }}
# XLA_CLONE_DIR:
run: |
./build/rocm/ci_build.sh --rocm_version 6.1.3 \
--keep_image --py_version 3.10
- name: Archive jax wheels
uses: actions/upload-artifact@v4
with:
name: rocm_jax_r6_1_3_py3_10_id${{ github.run_id }}
path: ${{ github.workspace }}/wheelhouse/*.whl
- name: Detect GPUs
run: |
docker run \
--group-add video \
$RENDER_DEVICES \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--shm-size=64G \
rocm/rocm-terminal rocm-smi
- name: Run tests
env:
DOCKER_IMG_NAME: rocm_jax_r6_1_3_py3_10_id${{ github.run_id }}
run: |
./build/rocm/ci_build test ${DOCKER_IMG_NAME}