File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1266,6 +1266,23 @@ class MpiCommandLineInputSpec(CommandLineInputSpec):
1266
1266
1267
1267
1268
1268
class MpiCommandLine (CommandLine ):
1269
+ '''Implements functionality to interact with command line programs
1270
+ that can be run with MPI (i.e. using 'mpiexec').
1271
+
1272
+ Examples
1273
+ --------
1274
+ >>> from nipype.interfaces.base import MpiCommandLine
1275
+ >>> mpi_cli = MpiCommandLine(command='my_mpi_prog')
1276
+ >>> mpi_cli.inputs.args = '-v'
1277
+ >>> mpi_cli.cmdline
1278
+ 'my_mpi_prog -v'
1279
+
1280
+ >>> mpi_cli.inputs.use_mpi = True
1281
+ >>> mpi_cli.inputs.n_procs = 8
1282
+ >>> mpi_cli.cmdline
1283
+
1284
+ 'mpiexec -n 8 my_mpi_prog -v'
1285
+ '''
1269
1286
input_spec = MpiCommandLineInputSpec
1270
1287
1271
1288
@property
You can’t perform that action at this time.
0 commit comments