-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
download and use makslevental MLIR wheel distribution instead of MLIR…
…_jll
- Loading branch information
Showing
4 changed files
with
31 additions
and
4 deletions.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[MLIRdist] | ||
git-tree-sha1 = "7a30d5d08131c8d72e002314ee933895a1bed594" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Pkg.Artifacts | ||
|
||
function __init__() | ||
artifact_toml = joinpath(@__DIR__, "../Artifacts.toml") | ||
|
||
MLIRdist_hash = artifact_hash("MLIRdist", artifact_toml) | ||
|
||
if MLIRdist_hash == nothing || !artifact_exists(MLIRdist_hash) | ||
MLIRdist_hash = create_artifact() do artifact_dir | ||
@info "Downloading MLIR distribution (this can take a while ~700MB)" | ||
temp = download("https://github.com/makslevental/mlir-wheels/releases/download/latest/mlir-18.0.0.2023121501+bf2b035e-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl") | ||
@info "Unzipping $temp to $artifact_dir (unzip should be installed on your system)" | ||
run(`unzip -q $temp -d $artifact_dir`) | ||
end | ||
bind_artifact!( | ||
artifact_toml, | ||
"MLIRdist", | ||
MLIRdist_hash) | ||
end | ||
end |