-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 990 Bytes
/
gpu-build.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
name: GPU Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
container: nvidia/cuda:12.2.2-devel-ubuntu22.04
steps:
- name: Install git and FFTW
run: apt-get update && apt-get install -y git libfftw3-dev
env:
DEBIAN_FRONTEND: "noninteractive"
- name: Get the version info for NVCC
run: nvcc --version
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Python dependencies
run: |
python -m pip install -U pip
python -m pip install -U jax[cpu]
- name: Compile the extension
run: python -m pip install -v .
env:
CMAKE_ARGS: "-DJAX_FINUFFT_USE_CUDA=ON"
- name: Check that the GPU extension was built
run: python -c "import jax_finufft.jax_finufft_gpu"