Skip to content

Commit a5c1e0e

Browse files
committed
Add test JLL
1 parent b68dc44 commit a5c1e0e

File tree

59 files changed

+2067
-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

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

0 commit comments

Comments
 (0)