job.addExtraAttribute(JDL.SMPGRANULARITY, "" + smpGranularity);
}
int hostNumber = jdl.getHostNumber();
if (hostNumber > 0) {
job.addExtraAttribute(JDL.HOSTNUMBER, "" + hostNumber);
}
if (!isWholeNodes && smpGranularity > 0 && hostNumber > 0) {
throw new Exception("the SMPGranularity and HostNumber attributes cannot be specified together when WholeNodes=false");
}