Skip to content

Commit 4f4e5d8

Browse files
authored
Bump CI to Julia 1.12 (#46)
1 parent 7a4b323 commit 4f4e5d8

5 files changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ jobs:
1717
labels: cuda
1818
strategy:
1919
matrix:
20-
julia-version: ['1.11']
20+
julia-version: ['1']
2121
steps:
2222
- name: Checkout repository
2323
uses: actions/checkout@v4
2424
- uses: julia-actions/install-juliaup@v2
2525
with:
2626
channel: ${{ matrix.julia-version }}
27-
- name: Cache Julia artifacts
28-
uses: actions/cache@v3
2927
- name: Run tests
3028
shell: julia --project=. --color=yes {0}
3129
run: |
@@ -37,5 +35,5 @@ jobs:
3735
directories: src
3836
- uses: codecov/codecov-action@v5
3937
with:
40-
file: lcov.info
38+
files: lcov.info
4139
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/docs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ jobs:
1313
labels: cuda
1414
strategy:
1515
matrix:
16-
julia-version: ['1.11']
16+
julia-version: ['1']
1717
steps:
1818
- uses: actions/checkout@v4
1919
- uses: julia-actions/install-juliaup@v2
2020
with:
2121
channel: ${{ matrix.julia-version }}
22-
- name: Cache Julia artifacts
23-
uses: actions/cache@v3
2422
- name: Instantiate the dependencies
2523
shell: julia --project=docs/ --color=yes {0}
2624
run: |

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
44
ExaModels = "1037b233-b668-4ce9-9b63-f9f681f55dd2"
55
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
6+
CUDSS = "45b445bb-4962-46a0-9369-b4df9d0f772e"
67
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
78
MadNLP = "2621e9c9-9eb4-46b1-8089-e8c72242dfb6"
89
MadNLPGPU = "d72a61cc-809d-412f-99be-fd81f4b8a598"

docs/src/mpopf_demo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Some of the models in this portion of the tutorial involve using external files. While we provide the necessary code to access these additional files, you may view them __[here](https://github.com/mit-shin-group/multi-period-opf-data)__ as well.
66
# We will start with the simplest way to model the MPOPF, which also does not require the user to have any data already downloaded. Instead, the user specifies a demand curve for the system. The demand curve is a vector of ratios from 0 to 1 which indicate the scaling of demand compared to the demand indicated by the static OPF file. In this model of the MPOPF, every consuming bus has the same scaling in power demand for each point in time. A corrective action ratio, which limits the ramp rate of generators, can also be inputted. It is set to 0.1 as a default. The adjustable coordinate system and backend that were present for the static OPF are also available for all MPOPF models.
7-
using ExaModelsPower, CUDA, MadNLP, MadNLPGPU, ExaModels
7+
using ExaModelsPower, CUDA, MadNLP, MadNLPGPU, CUDSS, ExaModels
88
model, vars, cons = mpopf_model(
99
"pglib_opf_case118_ieee.m", # static network data
1010
[.64, .60, .58, .56, .56, .58, .64, .76, .87, .95, .99, 1.0, .99, 1.0, 1.0,

docs/src/opf_demo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# The latest version of ExaModelsPower can be installed in julia as so. Additionally, in order to develop models that can be solved on the GPU, CUDA is required.
66
using ExaModelsPower, CUDA
77

8-
# In order to solve the ExaModels developed by ExaModelsPower, an NLP solver is required. ExaModels is compatible with MadNLP and Ipopt, but this tutorial will focus on MadNLP to demonstrate GPU solving capabilities.
9-
using MadNLP, MadNLPGPU #, NLPModelsIpopt
8+
# In order to solve the ExaModels developed by ExaModelsPower, an NLP solver is required. ExaModels is compatible with MadNLP and Ipopt, but this tutorial will focus on MadNLP to demonstrate GPU solving capabilities. CUDSS is loaded so MadNLP's CUDA extension activates and the default GPU linear solver becomes available.
9+
using MadNLP, MadNLPGPU, CUDSS #, NLPModelsIpopt
1010

1111
# Finally, we install ExaModels to allow solved models to be unpacked.
1212
using ExaModels

0 commit comments

Comments
 (0)