Skip to content

Commit b023c98

Browse files
committed
suppressed showing gpu_mem when zero
1 parent 7acb12e commit b023c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pbsmon/src/main/webapp/nodes/qsub_pbspro.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
<h4><f:message key="person_qsub_cli"/></h4>
4949
qsub -l walltime=${actionBean.wh}:${actionBean.wm}:${actionBean.ws}
5050
<c:choose><c:when test="${actionBean.fronta=='default'}"> </c:when><c:otherwise> -q ${actionBean.fronta} </c:otherwise></c:choose>
51-
-l select=${actionBean.nodes}:ncpus=${actionBean.ncpus}<c:if test="${actionBean.ngpus>0}">:ngpus=${actionBean.ngpus}</c:if>:mem=${actionBean.mem}${actionBean.memu}:gpu_mem=${actionBean.gpu_mem}${actionBean.gpu_memu}<c:if test="${actionBean.scratch>0}">:scratch_${actionBean.scratchtype}=${actionBean.scratch}${actionBean.scratchu}</c:if><c:if test="${not empty actionBean.spec}">:spec=${actionBean.spec}</c:if><c:forEach items="${actionBean.resources}" var="e"><c:if test="${not empty e.value}">:${e.key}=${e.value}</c:if></c:forEach>
51+
-l select=${actionBean.nodes}:ncpus=${actionBean.ncpus}<c:if test="${actionBean.ngpus>0}">:ngpus=${actionBean.ngpus}</c:if>:mem=${actionBean.mem}${actionBean.memu}<c:if test="${actionBean.gpu_mem>0}">:gpu_mem=${actionBean.gpu_mem}${actionBean.gpu_memu}</c:if><c:if test="${actionBean.scratch>0}">:scratch_${actionBean.scratchtype}=${actionBean.scratch}${actionBean.scratchu}</c:if><c:if test="${not empty actionBean.spec}">:spec=${actionBean.spec}</c:if><c:forEach items="${actionBean.resources}" var="e"><c:if test="${not empty e.value}">:${e.key}=${e.value}</c:if></c:forEach>
5252
<h4><f:message key="person_qsub_bash"/></h4>
5353
<pre>
5454
#!/bin/bash
5555
#PBS -q ${actionBean.fronta}
5656
#PBS -l walltime=${actionBean.wh}:${actionBean.wm}:${actionBean.ws}
57-
#PBS -l select=${actionBean.nodes}:ncpus=${actionBean.ncpus}<c:if test="${actionBean.ngpus>0}">:ngpus=${actionBean.ngpus}</c:if>:mem=${actionBean.mem}${actionBean.memu}:gpu_mem=${actionBean.gpu_mem}${actionBean.gpu_memu}<c:if test="${actionBean.scratch>0}">:scratch_${actionBean.scratchtype}=${actionBean.scratch}${actionBean.scratchu}</c:if><c:if test="${not empty actionBean.spec}">:spec=${actionBean.spec}</c:if><c:forEach items="${actionBean.resources}" var="e"><c:if test="${not empty e.value}">:${e.key}=${e.value}</c:if></c:forEach>
57+
#PBS -l select=${actionBean.nodes}:ncpus=${actionBean.ncpus}<c:if test="${actionBean.ngpus>0}">:ngpus=${actionBean.ngpus}</c:if>:mem=${actionBean.mem}${actionBean.memu}<c:if test="${actionBean.gpu_mem>0}">:gpu_mem=${actionBean.gpu_mem}${actionBean.gpu_memu}</c:if><c:if test="${actionBean.scratch>0}">:scratch_${actionBean.scratchtype}=${actionBean.scratch}${actionBean.scratchu}</c:if><c:if test="${not empty actionBean.spec}">:spec=${actionBean.spec}</c:if><c:forEach items="${actionBean.resources}" var="e"><c:if test="${not empty e.value}">:${e.key}=${e.value}</c:if></c:forEach>
5858
#PBS -N my_awesome_job
5959
</pre>
6060
<h3><f:message key="person_vysledek"/></h3>

0 commit comments

Comments
 (0)