-
Notifications
You must be signed in to change notification settings - Fork 55
CI: for the macOS CI jobs with the MKL provider, force MKL_jll 2023 to be installed #286
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
3 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# In MKL 2024, Intel dropped support for macOS. | ||
# So, in CI, for the macOS jobs, we force MKL 2023 to be installed (instead of | ||
# MKL 2024). | ||
|
||
import TOML | ||
|
||
using Test: @test | ||
|
||
function main() | ||
root_dotci_dir = @__DIR__ | ||
root_dir = dirname(root_dotci_dir) | ||
root_project_toml_filename = joinpath(root_dir, "Project.toml") | ||
project = TOML.parsefile(root_project_toml_filename) | ||
old_mkl_jll_compat = project["compat"]["MKL_jll"] | ||
old_mkl_jll_compat_list = strip.(split(strip(old_mkl_jll_compat), ",")) | ||
|
||
# Regression test to catch if we ever drop support for MKL_jll 2023. | ||
# Because, if we ever do choose to drop support for MKL_jll 2023, then this | ||
# entire script should probably be deleted, since Intel dropped support for | ||
# macOS in MKL 2024. | ||
@test "2023" in old_mkl_jll_compat_list | ||
|
||
new_compat = "2023" | ||
project["compat"]["MKL_jll"] = new_compat # force MKL_jll 2023 | ||
open(root_project_toml_filename, "w") do io | ||
TOML.print(io, project) | ||
end | ||
@info "Changed the compat entry for MKL_jll to: $(new_compat)" | ||
return nothing | ||
end | ||
|
||
main() |
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
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.