Skip to content

Commit 612a740

Browse files
vchuravygiordano
andauthored
Apply suggestions from code review
Co-authored-by: Mosè Giordano <[email protected]>
1 parent 3062d60 commit 612a740

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ libjuliampi.dylib
55
*.mem
66
*.so
77
Manifest.toml
8-
LocalPreferences.toml
8+
LocalPreferences.toml

lib/MPIPreferences/src/MPIPreferences.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ function use_jll_binary(binary = Sys.iswindows() ? "MicrosoftMPI_jll" : "MPICH_j
4141
end
4242

4343
function use_system_binary(;
44-
library=["libmpi", "libmpi_ibm", "msmpi", "libmpich", "libmpitrampoline"],
44+
library_names=["libmpi", "libmpi_ibm", "msmpi", "libmpich", "libmpitrampoline"],
4545
mpiexec="mpiexec",
4646
abi=nothing,
4747
export_prefs=false,
4848
force=true,
4949
)
5050

51-
libmpi = find_library(library)
51+
libmpi = find_library(library_names)
5252
if libmpi == ""
5353
error("MPI library could not be found")
5454
end

src/MPI.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636

3737
import MPIPreferences
3838

39-
@static if MPIPreferences.binary == "MPICH_jll"
39+
if MPIPreferences.binary == "MPICH_jll"
4040
import MPICH_jll: libmpi, mpiexec
4141
const libmpiconstants = nothing
4242
elseif MPIPreferences.binary == "OpenMPI_jll"

src/consts/consts.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ end
4343
$(Expr(:block, initexprs...))
4444
end
4545

46-
end
46+
end

0 commit comments

Comments
 (0)