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
4343
4444 build :
4545 name : " build ${{ matrix.name-prefix }} (py ${{ matrix.python-version }} on ubuntu-20.04, x64=${{ matrix.enable-x64}})"
46- runs-on : linux-x86-n2-32
47- container :
48- image : index.docker.io/library/ubuntu@sha256:6d8d9799fe6ab3221965efac00b4c34a2bcc102c086a58dff9e19a08b913c7ef # ratchet:ubuntu:20.04
46+ runs-on : ROCM-Ubuntu
4947 timeout-minutes : 60
5048 strategy :
5149 matrix :
6361 num_generated_cases : 1
6462 steps :
6563 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
66- - name : Image Setup
67- run : |
68- apt update
69- apt install -y libssl-dev
7064 - name : Set up Python ${{ matrix.python-version }}
7165 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
7266 with :
@@ -107,7 +101,7 @@ jobs:
107101
108102 documentation :
109103 name : Documentation - test code snippets
110- runs-on : ubuntu-latest
104+ runs-on : ROCM-Ubuntu
111105 timeout-minutes : 10
112106 strategy :
113107 matrix :
@@ -144,19 +138,13 @@ jobs:
144138
145139 documentation_render :
146140 name : Documentation - render documentation
147- runs-on : linux-x86-n2-16
148- container :
149- image : index.docker.io/library/ubuntu@sha256:6d8d9799fe6ab3221965efac00b4c34a2bcc102c086a58dff9e19a08b913c7ef # ratchet:ubuntu:20.04
150- timeout-minutes : 10
141+ runs-on : ubuntu-latest
142+ timeout-minutes : 20
151143 strategy :
152144 matrix :
153145 python-version : ['3.10']
154146 steps :
155147 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
156- - name : Image Setup
157- run : |
158- apt update
159- apt install -y libssl-dev libsqlite3-dev
160148 - name : Set up Python ${{ matrix.python-version }}
161149 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
162150 with :
@@ -227,9 +215,7 @@ jobs:
227215
228216 ffi :
229217 name : FFI example
230- runs-on : linux-x86-g2-16-l4-1gpu
231- container :
232- 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
233219 timeout-minutes : 30
234220 steps :
235221 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -248,7 +234,7 @@ jobs:
248234 path : ${{ steps.pip-cache.outputs.dir }}
249235 key : ${{ runner.os }}-pip-ffi-examples-${{ hashFiles('**/setup.py', '**/requirements.txt', '**/test-requirements.txt', 'examples/**/pyproject.toml') }}
250236 - name : Install JAX
251- run : pip install .[cuda12]
237+ run : pip install .
252238 - name : Build and install example project
253239 run : python -m pip install -v ./examples/ffi[test]
254240 env :
@@ -257,7 +243,7 @@ jobs:
257243 # a different toolchain. GCC is the default compiler on the
258244 # 'ubuntu-latest' runner, but we still set this explicitly just to be
259245 # clear.
260- 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
261247 - name : Run CPU tests
262248 run : python -m pytest examples/ffi/tests
263249 env :
0 commit comments