+9
-1
lines changedFilter options
+9
-1
lines changed Original file line number Diff line number Diff line change
@@ -68,6 +68,10 @@ sub getNumberOfCPUs () {
68
68
$ncpu = $ENV{"SLURM_JOB_CPUS_PER_NODE"};
69
69
}
70
70
71
+
if (exists($ENV{"PBS_NCPUS"})) {
72
+
$ncpu = $ENV{"PBS_NCPUS"};
73
+
}
74
+
71
75
if (exists($ENV{"PBS_NUM_PPN"})) {
72
76
$ncpu = $ENV{"PBS_NUM_PPN"};
73
77
}
@@ -114,6 +118,10 @@ sub getPhysicalMemorySize () {
114
118
$memory = $ENV{"SLURM_MEM_PER_NODE"};
115
119
}
116
120
121
+
if (exists($ENV{"PBS_RESC_MEM"})) {
122
+
$memory = $ENV{"PBS_RESC_MEM"} / 1024 / 1024 / 1024;
123
+
}
124
+
117
125
return(int($memory + 0.5)); # Poor man's rounding
118
126
}
119
127
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4