-
Notifications
You must be signed in to change notification settings - Fork 259
Update CI to Julia version to 1.12.0 #4836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
f11a280
Update CI to Julia version to 1.12.0
navidcy 0b17768
try increasing reactant compact
simone-silvestri 2e15efd
Merge branch 'main' into ncc/julia-v1.12
simone-silvestri 244442d
try without reactant
simone-silvestri ef56cac
just run the docs
simone-silvestri d1b7f3c
bugfix
simone-silvestri bdbfd4f
Change grid bottom function to GridFittedBottom
simone-silvestri d040a0c
Update warning for Julia version compatibility
navidcy 57f395e
take up the changes in #3836
simone-silvestri 0d34ac0
try without distributed
simone-silvestri 612e6a8
Merge branch 'main' into ncc/julia-v1.12
navidcy e0f5137
imports alphabetically
navidcy 92b9871
Merge branch 'main' into ncc/julia-v1.12
simone-silvestri 879230a
Merge branch 'main' into ncc/julia-v1.12
glwagner 2173b31
use a local accumulator and reinstate tests
simone-silvestri 052c60f
reinstate all tests
simone-silvestri 70e3b0a
white line
simone-silvestri 7a78b5c
Merge branch 'main' into ncc/julia-v1.12
simone-silvestri ec35ad9
reinstate distributed examples
simone-silvestri 00ae2ec
Merge branch 'ncc/julia-v1.12' of github.com:CliMA/Oceananigans.jl in…
simone-silvestri 82caad0
Update KernelAbstractions version to 0.9.39
navidcy 3e4bb4f
Merge branch 'main' into ncc/julia-v1.12
navidcy b058bad
Disable doctest temporarily
navidcy 00d1a66
Update pipeline.yml
navidcy d7aef18
Merge branch 'main' into ncc/julia-v1.12
simone-silvestri ef4fed2
separate out reactant and enzyme tests
simone-silvestri 2aeabaa
try like this
simone-silvestri c584334
don't need to make the new directory
simone-silvestri 2e21f55
fixing
simone-silvestri 5b0f7bc
use a new key
simone-silvestri 498db3b
need to create the new folder
simone-silvestri 88580e1
mv manifest to new version
simone-silvestri e776c21
Update .buildkite/pipeline.yml
simone-silvestri 94bc181
[CI] Automatically create version-specific manifests
giordano 9123836
Merge branch 'main' into ncc/julia-v1.12
navidcy 43d8343
enzyme on 1.10
simone-silvestri 4b5eb42
Merge branch 'main' into ncc/julia-v1.12
simone-silvestri 8975d59
whyt would / not compile? meybe because of / 0?
simone-silvestri e093184
Merge branch 'ncc/julia-v1.12' of github.com:CliMA/Oceananigans.jl in…
simone-silvestri 8f0f9fc
try removing internal closures
simone-silvestri 64052c7
this should do the trick
simone-silvestri 6ef2afc
up to six operands
simone-silvestri 9c93073
Update make.jl
simone-silvestri 6b7fe7c
Apply suggestion from @simone-silvestri
simone-silvestri ce8b95e
Apply suggestion from @simone-silvestri
simone-silvestri 07faeab
Apply suggestion from @simone-silvestri
simone-silvestri 42c1c2f
another bugfix
simone-silvestri 3feb17e
Merge branch 'ncc/julia-v1.12' of github.com:CliMA/Oceananigans.jl in…
simone-silvestri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,9 +13,44 @@ struct MultiaryOperation{LX, LY, LZ, N, O, A, IN, G, T} <: AbstractOperation{LX, | |
| end | ||
| end | ||
|
|
||
| # NOTE!!! The GPU compiler has trouble inferring this operation which might lead to dynamic evaluations. | ||
| @inline Base.getindex(Π::MultiaryOperation{LX, LY, LZ, N}, i, j, k) where {LX, LY, LZ, N} = | ||
| Π.op(ntuple(γ -> Π.▶[γ](i, j, k, Π.grid, Π.args[γ]), Val(N))...) | ||
|
|
||
| # Try to improve inferrability by hardcoding methods for small N | ||
| @inline Base.getindex(Π::MultiaryOperation{LX, LY, LZ, 1}, i, j, k) where {LX, LY, LZ} = | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is bad, ntuple is implemented with similar manual splitting. This might cause longer compilation latency, but so does Val. |
||
| Π.op(Π.▶[1](i, j, k, Π.grid, Π.args[1])) | ||
|
|
||
| @inline Base.getindex(Π::MultiaryOperation{LX, LY, LZ, 2}, i, j, k) where {LX, LY, LZ} = | ||
| Π.op(Π.▶[1](i, j, k, Π.grid, Π.args[1]), | ||
| Π.▶[2](i, j, k, Π.grid, Π.args[2])) | ||
|
|
||
| @inline Base.getindex(Π::MultiaryOperation{LX, LY, LZ, 3}, i, j, k) where {LX, LY, LZ} = | ||
| Π.op(Π.▶[1](i, j, k, Π.grid, Π.args[1]), | ||
| Π.▶[2](i, j, k, Π.grid, Π.args[2]), | ||
| Π.▶[3](i, j, k, Π.grid, Π.args[3])) | ||
|
|
||
| @inline Base.getindex(Π::MultiaryOperation{LX, LY, LZ, 4}, i, j, k) where {LX, LY, LZ} = | ||
| Π.op(Π.▶[1](i, j, k, Π.grid, Π.args[1]), | ||
| Π.▶[2](i, j, k, Π.grid, Π.args[2]), | ||
| Π.▶[3](i, j, k, Π.grid, Π.args[3]), | ||
| Π.▶[4](i, j, k, Π.grid, Π.args[4])) | ||
|
|
||
| @inline Base.getindex(Π::MultiaryOperation{LX, LY, LZ, 5}, i, j, k) where {LX, LY, LZ} = | ||
| Π.op(Π.▶[1](i, j, k, Π.grid, Π.args[1]), | ||
| Π.▶[2](i, j, k, Π.grid, Π.args[2]), | ||
| Π.▶[3](i, j, k, Π.grid, Π.args[3]), | ||
| Π.▶[4](i, j, k, Π.grid, Π.args[4]), | ||
| Π.▶[5](i, j, k, Π.grid, Π.args[5])) | ||
|
|
||
| @inline Base.getindex(Π::MultiaryOperation{LX, LY, LZ, 6}, i, j, k) where {LX, LY, LZ} = | ||
| Π.op(Π.▶[1](i, j, k, Π.grid, Π.args[1]), | ||
| Π.▶[2](i, j, k, Π.grid, Π.args[2]), | ||
| Π.▶[3](i, j, k, Π.grid, Π.args[3]), | ||
| Π.▶[4](i, j, k, Π.grid, Π.args[4]), | ||
| Π.▶[5](i, j, k, Π.grid, Π.args[5]), | ||
| Π.▶[6](i, j, k, Π.grid, Π.args[6])) | ||
|
|
||
| ##### | ||
| ##### MultiaryOperation construction | ||
| ##### | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| using Enzyme | ||
| using CUDA | ||
| using Metal | ||
| using AMDGPU | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.