33 | | For native executables that uses the MUSCLE API, the following parameters may be set: {{{"submodelName:command"}}} to set the path to the executable; and {{{"submodelName:args"}}} to give additional command-line parameters to the executable. Suppose my executable is somewhere in my home {{{bin}}} directory, this could be |
| 33 | For non-Java instances that use the MUSCLE API, the Ruby classes `NativeInstance` (any executable binary), `PythonInstance` (Python script), `MPIInstance` (executable binary using MPI), and `MatlabInstance` (Matlab script) may be used. The first argument is the instance name, the second is the executable or script. After that, a number of optional arguments may be provided: |
| 34 | ||= Parameter =||= Meaning =||= Example =||= Recognized by class =|| |
| 35 | || `args` || Arguments to the script or executable || `'param1 param2'` || All || |
| 36 | || `java_class` || Custom Java subclass of NativeKernel || `'uni.dep.MyKernel'` || All || |
| 37 | || `mpiexec` || Command to run MPI || `mpiexec`|| `MPIInstance` || |
| 38 | || `mpiexec_args` || Arguments to MPI executor || `-np 4`|| `MPIInstance` || |
| 39 | || `matlab`|| `Command to run Matlab` || `/opt/bin/matlab` || `MatlabInstance` || |
| 40 | || `matab_args` || `Arguments to Matlab` || `-matlab_arg1 -matlab_arg2` || `MatlabInstance || |
| 41 | || `python` || `Command to run Python` || `/opt/bin/python` || `PythonInstance` || |
| 42 | |
| 43 | The optional arguments are specified by stating the parameter, a colon, and the parameter value. For a normal executable, for example: |