File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ for (example_title, example_md) in EXAMPLES
39
39
println (mdfile, " ```" )
40
40
println (mdfile, " > mpiexecjl -n 4 julia $example_jl " )
41
41
cd (@__DIR__ ) do
42
- write (mdfile, mpiexec (cmd -> read (` $cmd -n 4 $(Base. julia_cmd ()) --project $example_jl ` ) ))
42
+ write (mdfile, read (` $( mpiexec ()) -n 4 $(Base. julia_cmd ()) --project $example_jl ` ))
43
43
end
44
44
println (mdfile, " ```" )
45
45
end
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ module System
8
8
const preloads_env_switch = @load_preference (" preloads_env_switch" )
9
9
const mpiexec_path = @load_preference (" mpiexec" )
10
10
mpiexec (;adjust_PATH= true , adjust_LIBPATH= true ) = ` $mpiexec_path `
11
- mpiexec (f;adjust_PATH= true , adjust_LIBPATH= true ) = f (` $mpiexec_path ` )
11
+ # The following method may be removed in future releases.
12
+ Base. @deprecate mpiexec (f;adjust_PATH= true , adjust_LIBPATH= true ) f (mpiexec ())
12
13
13
14
libmpi_handle = C_NULL
14
15
function __init__ ()
Original file line number Diff line number Diff line change 1
1
"""
2
- mpiexec(fn )
2
+ mpiexec()
3
3
4
- A wrapper function for the MPI launcher executable. Calls `fn(cmd)`, where `cmd` is a `Cmd` object of the MPI launcher.
4
+ A wrapper function for the MPI launcher executable. Returns a `Cmd` object pointing to the MPI launcher.
5
5
6
6
# Usage
7
7
8
8
```jldoctest
9
- julia> mpiexec(cmd -> run(`\$ cmd -n 3 echo hello world`) );
9
+ julia> run(`\$ (mpiexec()) -n 3 echo hello world`);
10
10
hello world
11
11
hello world
12
12
hello world
You can’t perform that action at this time.
0 commit comments