-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update to AMGX_jll 2.4 and later Julia versions #33
Merged
Merged
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
172e35a
Use AMGX_jll 2.3 and bump julia compat to 1.6
vchuravy 04359ee
Don't use artifacts for CUDA@4 on CUDA@3
vchuravy 57dbe6a
simplify C-API
vchuravy d6f99e0
fixup! simplify C-API
vchuravy 197f7b3
WIP
vchuravy d890647
Catch up to changes in AMGX 2.3/2.4
moyner e75ed6f
Remove debug output
moyner a6b6fd9
Split tests into two parts - success code no longer true without resi…
moyner 83183b7
Add option to use JSON for config creation
moyner dde7091
Add comment to revised tests
moyner 522a086
Initialize plugins is depreacted for 2.4
moyner 8e1b5e6
Update CI.
maleadt c078ca5
Drop support for Julia<1.10
moyner ebf6f88
Remove duplicate code, test that solver reports its > 0
moyner 6cc6b20
IOBuffer for string generation, remove added JSON kwarg
moyner ac985ee
Update README.md with new NOT_CONVERGED value
moyner c934cc5
Add resetup! for reuse of same system
moyner 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 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,42 +1,57 @@ | ||
env: | ||
SECRET_CODECOV_TOKEN: "MIXvKy8FpOJzyBykdGQdVdn0jVli57e1Mc1QQQQA6RyLBdViYwCOjLQS+Yh5sgeD5eEm9JLtu6ISePq01EjqpHF7/6zJlcEJTqj2JidcH/sp/FnJiIY0MfV48DSrz1XA7rN6hHQ8wh09+BMG1Ur4CbtwVQl1HF3wZqmt+b2Ahknyxd0mrIoT3j6RJ90vVSGagLLqWolaQLLOFoGNyHbeFV15r1YXLZDkwyE1SSNz4JF3qEN7vFbM9ZnbR4edd7zWABdDiGd3FDnbn1OJFbZ3JzJXph6JAxZyF34RFDzZsERiKyIrAM+0LfyDYqCAcYnjDpJoEASZugTTwIKXOjUkyQ==;U2FsdGVkX1+go3U7v0bYSZs2Lx4R/lwnJXQm4ATdXL2Y7x5H9QDOgazDvusO8UmBtwHFi3szvPuuxr/gcXYgxw==" | ||
|
||
steps: | ||
- label: "Julia 1.6" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: 1.6 | ||
- JuliaCI/julia-test#v1: ~ | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "10.0" | ||
if: build.message !~ /\[skip tests\]/ | ||
timeout_in_minutes: 60 | ||
- group: ":julia: Julia" | ||
steps: | ||
- label: "Julia {{matrix.julia}}" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "{{matrix.julia}}" | ||
- JuliaCI/julia-test#v1: ~ | ||
- JuliaCI/julia-coverage#v1: ~ | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "*" | ||
commands: | | ||
julia --project -e " | ||
using CUDA | ||
CUDA.set_runtime_version!(local_toolkit=true)" | ||
timeout_in_minutes: 60 | ||
matrix: | ||
setup: | ||
julia: | ||
- "1.10" | ||
- "1.11" | ||
|
||
- label: "Julia 1.7" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: 1.7 | ||
- JuliaCI/julia-test#v1: ~ | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "10.0" | ||
if: build.message !~ /\[skip tests\]/ | ||
timeout_in_minutes: 60 | ||
- group: "CUDA" | ||
steps: | ||
- label: "CUDA {{matrix.cuda}}" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: "1.11" | ||
- JuliaCI/julia-test#v1: ~ | ||
- JuliaCI/julia-coverage#v1: ~ | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "*" | ||
timeout_in_minutes: 45 | ||
matrix: | ||
setup: | ||
cuda: | ||
- "12.6" | ||
- "12.5" | ||
- "12.4" | ||
- "12.3" | ||
- "12.2" | ||
- "12.1" | ||
- "12.0" | ||
- "11.8" | ||
- "11.7" | ||
- "11.6" | ||
- "11.5" | ||
- "11.4" | ||
commands: | | ||
julia --project -e " | ||
using CUDA | ||
CUDA.set_runtime_version!(v\"{{matrix.cuda}}\")" | ||
|
||
- label: "Julia 1.8" | ||
plugins: | ||
- JuliaCI/julia#v1: | ||
version: 1.8 | ||
- JuliaCI/julia-test#v1: ~ | ||
- JuliaCI/julia-coverage#v1: | ||
codecov: true | ||
agents: | ||
queue: "juliagpu" | ||
cuda: "10.0" | ||
if: build.message !~ /\[skip tests\]/ | ||
timeout_in_minutes: 60 | ||
env: | ||
SECRET_CODECOV_TOKEN: "MIXvKy8FpOJzyBykdGQdVdn0jVli57e1Mc1QQQQA6RyLBdViYwCOjLQS+Yh5sgeD5eEm9JLtu6ISePq01EjqpHF7/6zJlcEJTqj2JidcH/sp/FnJiIY0MfV48DSrz1XA7rN6hHQ8wh09+BMG1Ur4CbtwVQl1HF3wZqmt+b2Ahknyxd0mrIoT3j6RJ90vVSGagLLqWolaQLLOFoGNyHbeFV15r1YXLZDkwyE1SSNz4JF3qEN7vFbM9ZnbR4edd7zWABdDiGd3FDnbn1OJFbZ3JzJXph6JAxZyF34RFDzZsERiKyIrAM+0LfyDYqCAcYnjDpJoEASZugTTwIKXOjUkyQ==;U2FsdGVkX1+go3U7v0bYSZs2Lx4R/lwnJXQm4ATdXL2Y7x5H9QDOgazDvusO8UmBtwHFi3szvPuuxr/gcXYgxw==" |
This file contains 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 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 |
---|---|---|
|
@@ -18,8 +18,15 @@ function create!(config::Config, content::String) | |
end | ||
Config(content::String) = create!(Config(), content) | ||
|
||
function create!(config::Config, d::Dict) | ||
str = sprint(JSON.print, d) | ||
function create!(config::Config, d::Dict; json = false) | ||
if json | ||
str = sprint(JSON.print, d) | ||
else | ||
str = "" | ||
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. Better to use an |
||
for (key, val) in d | ||
str *= string(key, "=", val, ", ") | ||
end | ||
end | ||
create!(config, str) | ||
end | ||
Config(d::Dict) = create!(Config(), d) | ||
|
This file contains 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
create!
functions are not documented in the README so they are purely internal it seems? But then this kwarg doesn't do anything since the default will always be used?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also changes the default from
JSON
to non JSON. Why is that desirable?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change was added by @vchuravy in the branch, but when I tested it seemed like the right choice since the JSON parsing seemed a bit brittle. AMGX will always try parsing as JSON first, and then the string format. I added the (not exposed) kwarg to have an option to fall back to the old way just in case if someone wants to make use of internals. Not sure how to best handle this, but the tests do not pass with the old JSON formatter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed the json option in the latest version. I wonder if the JLL might be built without JSON parsing working - I cannot get it to load the test JSON files from the AMGX repository. There is a sort of related issue in the AMGX repository NVIDIA/AMGX#99 where one of the first checks was to see if
RAPIDJSON_DEFINED
is in the build flags. CMake should have found it when building since it is bundled with the AMGX repo. I am able to set most options using the fallback string interface now at least, so the library is functional.