public abstract class MPICommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Config |
config |
protected java.lang.String |
workingDirectory |
Constructor and Description |
---|
MPICommand(Config cfg,
java.lang.String workingDirectory) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getClasspath(Config cfg,
JobAPI.Job job) |
protected java.lang.String |
getMapBy(JobAPI.Job job) |
protected java.lang.String |
getNumberOfWorkers(JobAPI.Job job) |
protected abstract java.lang.String[] |
killCommand() |
protected java.lang.String |
ldLibraryPath() |
protected abstract java.lang.String[] |
mpiCommand(java.lang.String wd,
JobAPI.Job job) |
protected java.lang.String |
mpirunPath() |
protected java.util.List<java.lang.String> |
readFromFile(java.lang.String filename)
Read all the data from a text file line by line
For now lets keep this util function here.
|
protected java.lang.String |
submittingTwister2Home() |
protected abstract void |
updateRestartCount(java.lang.String[] cmd,
int restartCount) |
protected java.lang.String workingDirectory
protected Config config
public MPICommand(Config cfg, java.lang.String workingDirectory)
protected java.util.List<java.lang.String> readFromFile(java.lang.String filename)
filename
- name of the fileprotected java.lang.String getNumberOfWorkers(JobAPI.Job job)
protected java.lang.String getClasspath(Config cfg, JobAPI.Job job)
protected abstract java.lang.String[] killCommand()
protected abstract java.lang.String[] mpiCommand(java.lang.String wd, JobAPI.Job job)
protected abstract void updateRestartCount(java.lang.String[] cmd, int restartCount)
protected java.lang.String mpirunPath()
protected java.lang.String ldLibraryPath()
protected java.lang.String getMapBy(JobAPI.Job job)
protected java.lang.String submittingTwister2Home()