Skip to content

Commit d7583ff

Browse files
Use Elemental_jll
1 parent a260810 commit d7583ff

File tree

8 files changed

+23
-191
lines changed

8 files changed

+23
-191
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.jl.cov
22
*.jl.mem
3+
Manifest.toml

.travis.yml

Lines changed: 9 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,21 @@
1-
sudo: required
2-
dist: trusty
3-
41
language: julia
5-
62
notifications:
73
email: false
8-
94
os:
105
- linux
11-
# - osx
12-
6+
- osx
137
julia:
14-
- 1.0
15-
- 1.4
16-
# - nightly
17-
8+
- 1
9+
- nightly
1810
matrix:
1911
allow_failures:
2012
- julia: nightly
21-
22-
env:
23-
global:
24-
- PATH=/usr/lib/ccache/:$HOME/OpenMPI/bin:$PATH
25-
- FC=gfortran-5
26-
- JL_PKG=Elemental
27-
matrix:
28-
- MPI=mpich CC=gcc-5 CXX=g++-5 CACHE_NAME=JOB1
29-
- MPI=mpich CC=clang CXX=clang++ CACHE_NAME=JOB2
30-
- MPI=openmpi CC=gcc-5 CXX=g++-5 CACHE_NAME=JOB3 JULIA_MPI_PATH=$HOME/OpenMPI
31-
- MPI=openmpi CC=clang CXX=clang++ CACHE_NAME=JOB4 JULIA_MPI_PATH=$HOME/OpenMPI
32-
33-
cache:
34-
directories:
35-
- $HOME/.ccache
36-
3713
addons:
3814
apt:
39-
sources:
40-
- sourceline: 'ppa:ubuntu-toolchain-r/test'
41-
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.8 main'
42-
key_url: http://apt.llvm.org/llvm-snapshot.gpg.key
43-
- sourceline: 'ppa:dzombie/ccache'
4415
packages:
45-
- ccache
46-
- gcc-5
47-
- g++-5
48-
- gfortran-5
49-
- libstdc++-5-dev
50-
- clang-3.8
51-
52-
install:
53-
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
54-
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache ; fi
55-
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi
56-
- echo `${ccache -s}`
57-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ln -s /usr/bin/ccache /usr/lib/ccache/clang ; fi
58-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ln -s /usr/bin/ccache /usr/lib/ccache/clang++ ; fi
59-
- echo `which $CC`
60-
- echo `which $CXX`
61-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://cmake.org/files/v3.6/cmake-3.6.1-Linux-x86_64.tar.gz | sudo tar -x -z --strip-components 1 -C /usr ; fi
62-
- export CPU_CORES=2
63-
- sh ./mpi.sh $MPI
64-
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
65-
- while sleep 30; do tail ./deps/build.log -f ; done &
66-
- julia --check-bounds=yes --color=yes -e 'using Pkg; if VERSION >= v"1.1.0-rc1"; Pkg.build(verbose=true); else Pkg.build(); end;'
67-
- echo `ccache -s`
68-
69-
script:
70-
- julia --compiled-modules=no --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test("Elemental")'
16+
- mpich
17+
homebrew:
18+
packages:
19+
- mpich
20+
update: true
21+
before_script: julia -e 'using Pkg; Pkg.build(); Pkg.add(PackageSpec(; url="https://github.com/christopher-dG/Elemental_jll.jl")); Pkg.precompile()'

Project.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
name = "Elemental"
22
uuid = "902c3f28-d1ec-5e7e-8399-a24c3845ee38"
3-
version = "0.5.1"
3+
version = "0.6.0"
44

55
[deps]
66
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
77
DistributedArrays = "aaf54ef3-cdf8-58ed-94cc-d582ad619b94"
8-
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
8+
Elemental_jll = "c2e960f2-a21d-557e-aa36-859d46eed7e8"
99
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
1010
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1111

1212
[compat]
1313
DistributedArrays = "0.5, 0.6"
14+
Elemental_jll = "< 1"
1415
MPI = "0.11"
1516
MPIClusterManagers = "0.1"
1617
TSVD = "0.4"
1718
julia = "1"
1819

1920
[extras]
2021
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
22+
MPICH_jll = "7cb0a576-ebde-5e09-9194-50597f1243b4"
2123
MPIClusterManagers = "e7922434-ae4b-11e9-05c5-9780451d2c66"
2224
Primes = "27ebfcd6-29c5-5fa9-bf4b-fb8fc14df3ae"
23-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2425
TSVD = "9449cd9e-2762-5aa3-a617-5413e99d722e"
26+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2527

2628
[targets]
27-
test = ["Test", "MPI", "MPIClusterManagers", "Primes", "TSVD"]
29+
test = ["Test", "MPI", "MPICH_jll", "MPIClusterManagers", "Primes", "TSVD"]

deps/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

deps/build.jl

Lines changed: 0 additions & 58 deletions
This file was deleted.

mpi.sh

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/Elemental.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using LinearAlgebra
77
import Base: *, \
88
import Base: convert, copy, copy!, eltype, fill!, getindex, hcat, inv, length, pointer, print, setindex!, similar, size
99

10-
const libEl = abspath(joinpath(dirname(@__FILE__), "..", "deps", "usr", "lib", "libEl"))
10+
using Elemental_jll: libEl
1111

1212
include("error.jl")
1313

test/runtests.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
using Test
2+
using MPICH_jll: mpiexec
23

34
function runtests_mpirun()
45
nprocs = min(4, Sys.CPU_THREADS)
5-
testdir = dirname(@__FILE__)
66
testfiles = ["lav.jl", "lavdense.jl", "matrix.jl", "distmatrix.jl", "props.jl", "generic.jl", "spectral.jl", "tsvd.jl", "svd.jl"]
77
nfail = 0
88
@info "Running Elemental.jl tests"
99
for f in testfiles
1010
try
11-
run(`mpirun -np $nprocs $(Base.julia_cmd()) $(joinpath(testdir, f))`)
11+
mpiexec() do exec
12+
run(`$exec -np $nprocs $(Base.julia_cmd()) $(joinpath(@__DIR__, f))`)
13+
end
1214
Base.with_output_color(:green,stdout) do io
1315
println(io,"\tSUCCESS: $f")
1416
end
@@ -26,15 +28,14 @@ end
2628
function runtests_repl()
2729
nprocs = min(4, Sys.CPU_THREADS)
2830
exename = joinpath(Sys.BINDIR, Base.julia_exename())
29-
testdir = dirname(@__FILE__)
3031
testfiles = ["darray.jl"]
3132
nfail = 0
3233
@info "Running Elemental.jl tests"
3334
for f in testfiles
3435
try
3536
# FixMe! We temporarily run Finalize() explictly on the workers because the atexit hook
3637
# doesn't seem to be correctly triggered on workers as of 31 October 2018.
37-
cmdstr = "using Distributed, MPI, MPIClusterManagers; man = MPIManager(np = $nprocs); addprocs(man); include(\"$(joinpath(testdir, f))\"); asyncmap(p -> remotecall_fetch(() -> Elemental.Finalize(), p), workers())"
38+
cmdstr = "using Distributed, MPI, MPIClusterManagers; man = MPIManager(np = $nprocs); addprocs(man); include(\"$(joinpath(@__DIR__, f))\"); asyncmap(p -> remotecall_fetch(() -> Elemental.Finalize(), p), workers())"
3839
run(`$exename -e $cmdstr`)
3940
Base.with_output_color(:green,stdout) do io
4041
println(io,"\tSUCCESS: $f")
@@ -51,7 +52,7 @@ function runtests_repl()
5152
end
5253

5354
function runtests()
54-
return runtests_mpirun() & runtests_repl()
55+
return runtests_mpirun() + runtests_repl()
5556
end
5657

5758
exit(runtests())

0 commit comments

Comments
 (0)