Skip to content

Commit 5bc37ae

Browse files
authored
ENH: Upgrade anaconda==2023.03 + CUDA 12.1 (#269)
* ENH: Upgrade anaconda==2023.03 + CUDA 12.1 * TST: remove cache for full build * sytax fix for linkchecker
1 parent abe6344 commit 5bc37ae

File tree

8 files changed

+19
-25
lines changed

8 files changed

+19
-25
lines changed

.github/workflows/cache.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,16 @@ jobs:
2727
needs: deploy-runner
2828
runs-on: [self-hosted, cml-gpu]
2929
container:
30-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
30+
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310
3131
options: --gpus all
3232
steps:
3333
- uses: actions/checkout@v3
3434
with:
3535
ref: ${{ github.event.pull_request.head.sha }}
3636
# Install Hardware Dependant Libraries
37-
- name: Install Jax and Upgrade CUDA
37+
- name: Check nvidia drivers
3838
shell: bash -l {0}
3939
run: |
40-
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
41-
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4240
nvidia-smi
4341
- name: Build HTML
4442
shell: bash -l {0}

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,30 @@ jobs:
2424
needs: deploy-runner
2525
runs-on: [self-hosted, cml-gpu]
2626
container:
27-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
27+
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310
2828
options: --gpus all
2929
steps:
3030
- uses: actions/checkout@v3
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
3333
# Install Hardware Dependant Libraries
34-
- name: Install Jax and Upgrade CUDA
34+
- name: Check nvidia drivers
3535
shell: bash -l {0}
3636
run: |
37-
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
38-
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
3937
nvidia-smi
4038
- name: Display Conda Environment Versions
4139
shell: bash -l {0}
4240
run: conda list
4341
- name: Display Pip Versions
4442
shell: bash -l {0}
4543
run: pip list
46-
- name: Download "build" folder (cache)
47-
uses: dawidd6/action-download-artifact@v2
48-
with:
49-
workflow: cache.yml
50-
branch: main
51-
name: build-cache
52-
path: _build
44+
# - name: Download "build" folder (cache)
45+
# uses: dawidd6/action-download-artifact@v2
46+
# with:
47+
# workflow: cache.yml
48+
# branch: main
49+
# name: build-cache
50+
# path: _build
5351
# Build Assets (Download Notebooks and PDF via LaTeX)
5452
- name: Build Download Notebooks (sphinx-tojupyter)
5553
shell: bash -l {0}

.github/workflows/execution-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ["ubuntu-latest"]
14-
python-version: ["3.9"]
14+
python-version: ["3.10"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2

.github/workflows/execution-osx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ["macos-latest"]
14-
python-version: ["3.9"]
14+
python-version: ["3.10"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2

.github/workflows/execution-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ["windows-latest"]
14-
python-version: ["3.9"]
14+
python-version: ["3.10"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2

.github/workflows/linkcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
auto-update-conda: true
2424
auto-activate-base: true
2525
miniconda-version: 'latest'
26-
python-version: 3.9
26+
python-version: "3.10"
2727
environment-file: environment.yml
2828
activate-environment: quantecon
2929
- name: Download "build" folder (cache)

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ jobs:
2828
needs: deploy-runner
2929
runs-on: [self-hosted, cml-gpu]
3030
container:
31-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
31+
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-03-py310
3232
options: --gpus all
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v3
3636
# Install Hardware Dependant Libraries
37-
- name: Install Jax and Upgrade CUDA
37+
- name: Check nvidia drivers
3838
shell: bash -l {0}
3939
run: |
40-
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
41-
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4240
nvidia-smi
4341
- name: Display Conda Environment Versions
4442
shell: bash -l {0}

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: quantecon
22
channels:
33
- default
44
dependencies:
5-
- python=3.9
6-
- anaconda=2022.10
5+
- python=3.10
6+
- anaconda=2023.03
77
- pip
88
- pip:
99
- jupyter-book==0.15.1

0 commit comments

Comments
 (0)