We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b553a03 commit 8a8478bCopy full SHA for 8a8478b
test/mpi_array/ksp_test.jl
@@ -1,5 +1,24 @@
1
using MPI
2
-include("ksp_test_driver.jl")
3
-include("run_mpi_driver.jl")
4
-file = joinpath(@__DIR__,"ksp_test_driver.jl")
5
-run_mpi_driver(file;procs=3)
+using Test
+
+if MPI.MPI_LIBRARY == "OpenMPI" || (isdefined(MPI, :OpenMPI) && MPI.MPI_LIBRARY == MPI.OpenMPI)
+ mpiexec_cmd = `$(mpiexec()) --oversubscribe`
6
+else
7
+ mpiexec_cmd = mpiexec()
8
+end
9
10
+repodir = normpath(joinpath(@__DIR__,"..",".."))
11
12
+code = quote
13
+ using MPI; MPI.Init()
14
+ using PartitionedArrays
15
+ include(joinpath($repodir,"test","ksp_test_parallel.jl"))
16
+ np = MPI.Comm_size(MPI.COMM_WORLD)
17
+ with_mpi(x->ksp_tests(x,np))
18
19
20
+run(`$mpiexec_cmd -np 3 $(Base.julia_cmd()) --project=$repodir -e $code`)
21
22
+nothing
23
24
0 commit comments