1- name : CI
1+ name : ROCm CPU CI
22
33# We test all supported Python versions as follows:
44# - 3.10 : Documentation build
1111 # but only for the main branch
1212 push :
1313 branches :
14- - main
14+ - rocm- main
1515 pull_request :
1616 branches :
17- - main
17+ - rocm- main
1818
1919permissions :
2020 contents : read # to fetch code
4242 - run : pre-commit run --show-diff-on-failure --color=always --all-files
4343
4444 build :
45- # Don't execute in fork due to runner type
46- if : github.repository == 'jax-ml/jax'
4745 name : " build ${{ matrix.name-prefix }} (py ${{ matrix.python-version }} on ubuntu-20.04, x64=${{ matrix.enable-x64}})"
48- runs-on : linux-x86-n2-32
49- container :
50- image : index.docker.io/library/ubuntu@sha256:6d8d9799fe6ab3221965efac00b4c34a2bcc102c086a58dff9e19a08b913c7ef # ratchet:ubuntu:20.04
46+ runs-on : ROCM-Ubuntu
5147 timeout-minutes : 60
5248 strategy :
5349 matrix :
6561 num_generated_cases : 1
6662 steps :
6763 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
68- - name : Image Setup
69- run : |
70- apt update
71- apt install -y libssl-dev
7264 - name : Set up Python ${{ matrix.python-version }}
7365 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
7466 with :
@@ -109,7 +101,7 @@ jobs:
109101
110102 documentation :
111103 name : Documentation - test code snippets
112- runs-on : ubuntu-latest
104+ runs-on : ROCM-Ubuntu
113105 timeout-minutes : 10
114106 strategy :
115107 matrix :
@@ -146,19 +138,13 @@ jobs:
146138
147139 documentation_render :
148140 name : Documentation - render documentation
149- runs-on : linux-x86-n2-16
150- container :
151- image : index.docker.io/library/ubuntu@sha256:6d8d9799fe6ab3221965efac00b4c34a2bcc102c086a58dff9e19a08b913c7ef # ratchet:ubuntu:20.04
152- timeout-minutes : 10
141+ runs-on : ubuntu-latest
142+ timeout-minutes : 20
153143 strategy :
154144 matrix :
155145 python-version : ['3.10']
156146 steps :
157147 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
158- - name : Image Setup
159- run : |
160- apt update
161- apt install -y libssl-dev libsqlite3-dev
162148 - name : Set up Python ${{ matrix.python-version }}
163149 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
164150 with :
@@ -229,9 +215,7 @@ jobs:
229215
230216 ffi :
231217 name : FFI example
232- runs-on : linux-x86-g2-16-l4-1gpu
233- container :
234- image : index.docker.io/tensorflow/build:latest-python3.12@sha256:48e99608fe9434ada5b14e19fdfd8e64f4cfc83aacd328b9c2101b210e984295 # ratchet:index.docker.io/tensorflow/build:latest-python3.12
218+ runs-on : ROCM-Ubuntu
235219 timeout-minutes : 30
236220 steps :
237221 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -250,7 +234,7 @@ jobs:
250234 path : ${{ steps.pip-cache.outputs.dir }}
251235 key : ${{ runner.os }}-pip-ffi-examples-${{ hashFiles('**/setup.py', '**/requirements.txt', '**/test-requirements.txt', 'examples/**/pyproject.toml') }}
252236 - name : Install JAX
253- run : pip install .[cuda12]
237+ run : pip install .
254238 - name : Build and install example project
255239 run : python -m pip install -v ./examples/ffi[test]
256240 env :
@@ -259,10 +243,11 @@ jobs:
259243 # a different toolchain. GCC is the default compiler on the
260244 # 'ubuntu-latest' runner, but we still set this explicitly just to be
261245 # clear.
262- CMAKE_ARGS : -DCMAKE_CXX_COMPILER=g++ -DJAX_FFI_EXAMPLE_ENABLE_CUDA=ON
246+ CMAKE_ARGS : -DCMAKE_CXX_COMPILER=g++ # -DJAX_FFI_EXAMPLE_ENABLE_CUDA=ON
263247 - name : Run CPU tests
264248 run : python -m pytest examples/ffi/tests
265249 env :
266250 JAX_PLATFORM_NAME : cpu
267251 - name : Run GPU tests
268252 run : python -m pytest examples/ffi/tests
253+
0 commit comments