A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/marbl/canu/commit/404540a944664cfab00617f4f4fa37be451b34e0 below:

Add PBS environment detection - PBS_RESC_MEM and PBS_NCPUS. Issue #1… · marbl/canu@404540a · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+9

-1

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+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