@@ -2,49 +2,11 @@ name: Build Project [using jupyter-book]
2
2
on : [pull_request]
3
3
jobs :
4
4
preview :
5
- runs-on : " runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64 /disk=large"
5
+ runs-on : " runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2204_ami /disk=large"
6
6
steps :
7
7
- uses : actions/checkout@v4
8
8
with :
9
9
ref : ${{ github.event.pull_request.head.sha }}
10
- - name : Setup Anaconda
11
- uses : conda-incubator/setup-miniconda@v3
12
- with :
13
- auto-update-conda : true
14
- auto-activate-base : true
15
- miniconda-version : ' latest'
16
- python-version : " 3.12"
17
- environment-file : environment.yml
18
- activate-environment : quantecon
19
- - name : Install CUDA and CUDANN
20
- shell : bash -l {0}
21
- run : |
22
- wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
23
- sudo dpkg -i cuda-keyring_1.1-1_all.deb
24
- sudo apt-get update
25
- sudo apt-get -y install cuda-toolkit-12-9
26
- - name : Install jax (and install checks for GPU)
27
- shell : bash -l {0}
28
- run : |
29
- pip install 'numpyro[cuda]' -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
30
- pip install -U "jax[cuda12]"
31
- python --version
32
- python scripts/test-jax-install.py
33
- nvidia-smi
34
- - name : Install latex dependencies
35
- shell : bash -l {0}
36
- run : |
37
- sudo apt-get -qq update
38
- sudo apt-get install -y \
39
- texlive-latex-recommended \
40
- texlive-latex-extra \
41
- texlive-fonts-recommended \
42
- texlive-fonts-extra \
43
- texlive-xetex \
44
- latexmk \
45
- xindy \
46
- dvipng \
47
- cm-super
48
10
- name : Display Conda Environment Versions
49
11
shell : bash -l {0}
50
12
run : conda list
0 commit comments