Skip to content

Commit ab3d7ac

Browse files
committed
use quantecon custom ami
1 parent df11794 commit ab3d7ac

File tree

2 files changed

+6
-39
lines changed

2 files changed

+6
-39
lines changed

.github/runs-on.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
images:
2+
quantecon_ubuntu2204_ami:
3+
platform: "linux"
4+
arch: "x64"
5+
ami: "ami-0777c7ccd7657bce6"

.github/workflows/ci.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,11 @@ name: Build Project [using jupyter-book]
22
on: [pull_request]
33
jobs:
44
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"
66
steps:
77
- uses: actions/checkout@v4
88
with:
99
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
4810
- name: Display Conda Environment Versions
4911
shell: bash -l {0}
5012
run: conda list

0 commit comments

Comments
 (0)