-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
2,229 additions
and
132 deletions.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
src/wrappers/aarch64-linux-gnu.jl → ...rappers/aarch64-linux-gnu-libgfortran3.jl
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,85 @@ | ||
# Autogenerated wrapper script for MPICH_jll for aarch64-linux-gnu-libgfortran4 | ||
export libmpi, mpiexec | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
|
||
# Relative path to `libmpi` | ||
const libmpi_splitpath = ["lib", "libmpi.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libmpi_path = "" | ||
|
||
# libmpi-specific global declaration | ||
# This will be filled out by __init__() | ||
libmpi_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libmpi = "libmpi.so.12" | ||
|
||
|
||
# Relative path to `mpiexec` | ||
const mpiexec_splitpath = ["bin", "mpiexec"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
mpiexec_path = "" | ||
|
||
# mpiexec-specific global declaration | ||
function mpiexec(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true) | ||
global PATH, LIBPATH | ||
env_mapping = Dict{String,String}() | ||
if adjust_PATH | ||
if !isempty(get(ENV, "PATH", "")) | ||
env_mapping["PATH"] = string(PATH, ':', ENV["PATH"]) | ||
else | ||
env_mapping["PATH"] = PATH | ||
end | ||
end | ||
if adjust_LIBPATH | ||
if !isempty(get(ENV, LIBPATH_env, "")) | ||
env_mapping[LIBPATH_env] = string(LIBPATH, ':', ENV[LIBPATH_env]) | ||
else | ||
env_mapping[LIBPATH_env] = LIBPATH | ||
end | ||
end | ||
withenv(env_mapping...) do | ||
f(mpiexec_path) | ||
end | ||
end | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
function __init__() | ||
global artifact_dir = abspath(artifact"MPICH") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
# We first need to add to LIBPATH_list the libraries provided by Julia | ||
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) | ||
global libmpi_path = normpath(joinpath(artifact_dir, libmpi_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libmpi_handle = dlopen(libmpi_path) | ||
push!(LIBPATH_list, dirname(libmpi_path)) | ||
|
||
global mpiexec_path = normpath(joinpath(artifact_dir, mpiexec_splitpath...)) | ||
|
||
push!(PATH_list, dirname(mpiexec_path)) | ||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(LIBPATH_list, ':') | ||
|
||
# Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms | ||
# that don't honor our "already opened" trick) | ||
#for lp in LIBPATH_list | ||
# push!(DL_LOAD_PATH, lp) | ||
#end | ||
end # __init__() | ||
|
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,85 @@ | ||
# Autogenerated wrapper script for MPICH_jll for aarch64-linux-gnu-libgfortran5 | ||
export libmpi, mpiexec | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
|
||
# Relative path to `libmpi` | ||
const libmpi_splitpath = ["lib", "libmpi.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libmpi_path = "" | ||
|
||
# libmpi-specific global declaration | ||
# This will be filled out by __init__() | ||
libmpi_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libmpi = "libmpi.so.12" | ||
|
||
|
||
# Relative path to `mpiexec` | ||
const mpiexec_splitpath = ["bin", "mpiexec"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
mpiexec_path = "" | ||
|
||
# mpiexec-specific global declaration | ||
function mpiexec(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true) | ||
global PATH, LIBPATH | ||
env_mapping = Dict{String,String}() | ||
if adjust_PATH | ||
if !isempty(get(ENV, "PATH", "")) | ||
env_mapping["PATH"] = string(PATH, ':', ENV["PATH"]) | ||
else | ||
env_mapping["PATH"] = PATH | ||
end | ||
end | ||
if adjust_LIBPATH | ||
if !isempty(get(ENV, LIBPATH_env, "")) | ||
env_mapping[LIBPATH_env] = string(LIBPATH, ':', ENV[LIBPATH_env]) | ||
else | ||
env_mapping[LIBPATH_env] = LIBPATH | ||
end | ||
end | ||
withenv(env_mapping...) do | ||
f(mpiexec_path) | ||
end | ||
end | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
function __init__() | ||
global artifact_dir = abspath(artifact"MPICH") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
# We first need to add to LIBPATH_list the libraries provided by Julia | ||
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) | ||
global libmpi_path = normpath(joinpath(artifact_dir, libmpi_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libmpi_handle = dlopen(libmpi_path) | ||
push!(LIBPATH_list, dirname(libmpi_path)) | ||
|
||
global mpiexec_path = normpath(joinpath(artifact_dir, mpiexec_splitpath...)) | ||
|
||
push!(PATH_list, dirname(mpiexec_path)) | ||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(LIBPATH_list, ':') | ||
|
||
# Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms | ||
# that don't honor our "already opened" trick) | ||
#for lp in LIBPATH_list | ||
# push!(DL_LOAD_PATH, lp) | ||
#end | ||
end # __init__() | ||
|
2 changes: 1 addition & 1 deletion
2
src/wrappers/aarch64-linux-musl.jl → ...appers/aarch64-linux-musl-libgfortran3.jl
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,85 @@ | ||
# Autogenerated wrapper script for MPICH_jll for aarch64-linux-musl-libgfortran4 | ||
export libmpi, mpiexec | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
|
||
# Relative path to `libmpi` | ||
const libmpi_splitpath = ["lib", "libmpi.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libmpi_path = "" | ||
|
||
# libmpi-specific global declaration | ||
# This will be filled out by __init__() | ||
libmpi_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libmpi = "libmpi.so.12" | ||
|
||
|
||
# Relative path to `mpiexec` | ||
const mpiexec_splitpath = ["bin", "mpiexec"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
mpiexec_path = "" | ||
|
||
# mpiexec-specific global declaration | ||
function mpiexec(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true) | ||
global PATH, LIBPATH | ||
env_mapping = Dict{String,String}() | ||
if adjust_PATH | ||
if !isempty(get(ENV, "PATH", "")) | ||
env_mapping["PATH"] = string(PATH, ':', ENV["PATH"]) | ||
else | ||
env_mapping["PATH"] = PATH | ||
end | ||
end | ||
if adjust_LIBPATH | ||
if !isempty(get(ENV, LIBPATH_env, "")) | ||
env_mapping[LIBPATH_env] = string(LIBPATH, ':', ENV[LIBPATH_env]) | ||
else | ||
env_mapping[LIBPATH_env] = LIBPATH | ||
end | ||
end | ||
withenv(env_mapping...) do | ||
f(mpiexec_path) | ||
end | ||
end | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
function __init__() | ||
global artifact_dir = abspath(artifact"MPICH") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
# We first need to add to LIBPATH_list the libraries provided by Julia | ||
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) | ||
global libmpi_path = normpath(joinpath(artifact_dir, libmpi_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libmpi_handle = dlopen(libmpi_path) | ||
push!(LIBPATH_list, dirname(libmpi_path)) | ||
|
||
global mpiexec_path = normpath(joinpath(artifact_dir, mpiexec_splitpath...)) | ||
|
||
push!(PATH_list, dirname(mpiexec_path)) | ||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(LIBPATH_list, ':') | ||
|
||
# Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms | ||
# that don't honor our "already opened" trick) | ||
#for lp in LIBPATH_list | ||
# push!(DL_LOAD_PATH, lp) | ||
#end | ||
end # __init__() | ||
|
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,85 @@ | ||
# Autogenerated wrapper script for MPICH_jll for aarch64-linux-musl-libgfortran5 | ||
export libmpi, mpiexec | ||
|
||
## Global variables | ||
PATH = "" | ||
LIBPATH = "" | ||
LIBPATH_env = "LD_LIBRARY_PATH" | ||
|
||
# Relative path to `libmpi` | ||
const libmpi_splitpath = ["lib", "libmpi.so"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
libmpi_path = "" | ||
|
||
# libmpi-specific global declaration | ||
# This will be filled out by __init__() | ||
libmpi_handle = C_NULL | ||
|
||
# This must be `const` so that we can use it with `ccall()` | ||
const libmpi = "libmpi.so.12" | ||
|
||
|
||
# Relative path to `mpiexec` | ||
const mpiexec_splitpath = ["bin", "mpiexec"] | ||
|
||
# This will be filled out by __init__() for all products, as it must be done at runtime | ||
mpiexec_path = "" | ||
|
||
# mpiexec-specific global declaration | ||
function mpiexec(f::Function; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true) | ||
global PATH, LIBPATH | ||
env_mapping = Dict{String,String}() | ||
if adjust_PATH | ||
if !isempty(get(ENV, "PATH", "")) | ||
env_mapping["PATH"] = string(PATH, ':', ENV["PATH"]) | ||
else | ||
env_mapping["PATH"] = PATH | ||
end | ||
end | ||
if adjust_LIBPATH | ||
if !isempty(get(ENV, LIBPATH_env, "")) | ||
env_mapping[LIBPATH_env] = string(LIBPATH, ':', ENV[LIBPATH_env]) | ||
else | ||
env_mapping[LIBPATH_env] = LIBPATH | ||
end | ||
end | ||
withenv(env_mapping...) do | ||
f(mpiexec_path) | ||
end | ||
end | ||
|
||
|
||
""" | ||
Open all libraries | ||
""" | ||
function __init__() | ||
global artifact_dir = abspath(artifact"MPICH") | ||
|
||
# Initialize PATH and LIBPATH environment variable listings | ||
global PATH_list, LIBPATH_list | ||
# We first need to add to LIBPATH_list the libraries provided by Julia | ||
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) | ||
global libmpi_path = normpath(joinpath(artifact_dir, libmpi_splitpath...)) | ||
|
||
# Manually `dlopen()` this right now so that future invocations | ||
# of `ccall` with its `SONAME` will find this path immediately. | ||
global libmpi_handle = dlopen(libmpi_path) | ||
push!(LIBPATH_list, dirname(libmpi_path)) | ||
|
||
global mpiexec_path = normpath(joinpath(artifact_dir, mpiexec_splitpath...)) | ||
|
||
push!(PATH_list, dirname(mpiexec_path)) | ||
# Filter out duplicate and empty entries in our PATH and LIBPATH entries | ||
filter!(!isempty, unique!(PATH_list)) | ||
filter!(!isempty, unique!(LIBPATH_list)) | ||
global PATH = join(PATH_list, ':') | ||
global LIBPATH = join(LIBPATH_list, ':') | ||
|
||
# Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms | ||
# that don't honor our "already opened" trick) | ||
#for lp in LIBPATH_list | ||
# push!(DL_LOAD_PATH, lp) | ||
#end | ||
end # __init__() | ||
|
2 changes: 1 addition & 1 deletion
2
src/wrappers/armv7l-linux-gnueabihf.jl → ...rs/armv7l-linux-gnueabihf-libgfortran3.jl
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
Oops, something went wrong.