Skip to content

Commit 52092d0

Browse files
committed
add test JLL
1 parent 8f29209 commit 52092d0

File tree

59 files changed

+2364
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2364
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using Base.BinaryPlatforms
2+
using Preferences
3+
4+
function known_abis()
5+
return (:MicrosoftMPI, :MPICH, :MPItrampoline)
6+
end
7+
8+
const abi = @load_preference("abi", Sys.iswindows() ? :MicrosoftMPI : :MPICH)
9+
10+
function set_abi(abi)
11+
if abi known_abis()
12+
error("""
13+
The MPI ABI $abi is not supported.
14+
Please set the MPI ABI to one of the following:
15+
$(known_abis())
16+
""")
17+
end
18+
@set_preferences!("abi" => string(abi))
19+
@warn "The MPI abi has changed, you will need to restart Julia for the change to take effect" abi
20+
return abi
21+
end
22+
23+
function augment_platform!(platform)
24+
BinaryPlatforms.add_tag!(platform.tags, "mpi", string(abi))
25+
return platform
26+
end
27+
28+
29+
30+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using TOML, Artifacts, Base.BinaryPlatforms
2+
include("./platform_augmentation.jl")
3+
artifacts_toml = joinpath(dirname(@__DIR__), "Artifacts.toml")
4+
5+
# Get "target triplet" from ARGS, if given (defaulting to the host triplet otherwise)
6+
target_triplet = get(ARGS, 1, Base.BinaryPlatforms.host_triplet())
7+
8+
# Augment this platform object with any special tags we require
9+
platform = augment_platform!(HostPlatform(parse(Platform, target_triplet)))
10+
11+
# Select all downloadable artifacts that match that platform
12+
artifacts = select_downloadable_artifacts(artifacts_toml; platform)
13+
14+
#Output the result to `stdout` as a TOML dictionary
15+
TOML.print(stdout, artifacts)
16+

0 commit comments

Comments
 (0)