Skip to content

Commit 38cbdb6

Browse files
Use Elemental_jll (#54)
1 parent e46e5ac commit 38cbdb6

File tree

9 files changed

+22
-198
lines changed

9 files changed

+22
-198
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: 4 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,13 @@
1-
sudo: required
2-
dist: trusty
3-
41
language: julia
5-
2+
osx_image: xcode11.4
63
notifications:
74
email: false
8-
95
os:
106
- linux
11-
# - osx
12-
7+
- osx
138
julia:
14-
- 1.0
15-
- 1.4
16-
# - nightly
17-
9+
- 1
10+
- nightly
1811
matrix:
1912
allow_failures:
2013
- 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-
37-
addons:
38-
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'
44-
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")'

Project.toml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
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-
MPI = "0.11"
15-
MPIClusterManagers = "0.1"
16-
TSVD = "0.4"
17-
julia = "1"
14+
Elemental_jll = "0.87"
15+
julia = "1.3"
1816

1917
[extras]
20-
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
2118
MPIClusterManagers = "e7922434-ae4b-11e9-05c5-9780451d2c66"
2219
Primes = "27ebfcd6-29c5-5fa9-bf4b-fb8fc14df3ae"
2320
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2421
TSVD = "9449cd9e-2762-5aa3-a617-5413e99d722e"
2522
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2623

2724
[targets]
28-
test = ["Test", "MPI", "MPIClusterManagers", "Primes", "TSVD", "Random"]
25+
test = ["Test", "MPIClusterManagers", "Primes", "TSVD", "Random"]

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.

extras/elpp.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,3 @@ function toback(A::DArray{Float64,2})
175175
end
176176

177177
end
178-

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: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
using Test
2+
using Elemental_jll.MPICH_jll: mpiexec
3+
4+
# Import all of our external dependencies to make sure they're compiled serially.
5+
using DistributedArrays
6+
using TSVD
7+
using Primes
8+
using MPIClusterManagers
29

310
function runtests_mpirun()
411
nprocs = min(4, Sys.CPU_THREADS)
5-
testdir = dirname(@__FILE__)
612
testfiles = ["lav.jl", "lavdense.jl", "matrix.jl", "distmatrix.jl", "props.jl", "generic.jl", "spectral.jl", "tsvd.jl", "svd.jl"]
713
nfail = 0
814
@info "Running Elemental.jl tests"
915
for f in testfiles
1016
try
11-
run(`mpirun -np $nprocs $(Base.julia_cmd()) $(joinpath(testdir, f))`)
17+
mpiexec() do exec
18+
run(`$exec -np $nprocs $(Base.julia_cmd()) $(joinpath(@__DIR__, f))`)
19+
end
1220
Base.with_output_color(:green,stdout) do io
1321
println(io,"\tSUCCESS: $f")
1422
end
@@ -26,15 +34,14 @@ end
2634
function runtests_repl()
2735
nprocs = min(4, Sys.CPU_THREADS)
2836
exename = joinpath(Sys.BINDIR, Base.julia_exename())
29-
testdir = dirname(@__FILE__)
3037
testfiles = ["darray.jl"]
3138
nfail = 0
3239
@info "Running Elemental.jl tests"
3340
for f in testfiles
3441
try
3542
# FixMe! We temporarily run Finalize() explictly on the workers because the atexit hook
3643
# 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())"
44+
cmdstr = "using Distributed, MPIClusterManagers; man = MPIManager(np = $nprocs); addprocs(man); include(\"$(joinpath(@__DIR__, f))\"); asyncmap(p -> remotecall_fetch(() -> Elemental.Finalize(), p), workers())"
3845
run(`$exename -e $cmdstr`)
3946
Base.with_output_color(:green,stdout) do io
4047
println(io,"\tSUCCESS: $f")

0 commit comments

Comments
 (0)