Skip to content

Commit f7c99bd

Browse files
committed
Avoid failures when building SGE using vCPU >=32
For yum/dnf OS (alinux2, centos7 and centos8) avoid SGE build failures when using high parallelism (64 threads) due to undeclared prerequisites for pdc. Signed-off-by: Luca Carrogu <[email protected]>
1 parent 37aea0c commit f7c99bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ This file is used to list changes made in each version of the AWS ParallelCluste
1010
- Retry failed installations of aws-parallelcluster package on head node of clusters using AWS Batch as the scheduler.
1111

1212
**CHANGES**
13-
- Restore ``noatime`` option, which has positive impact on the performances of NFS filesystem
13+
- Restore ``noatime`` option, which has positive impact on the performances of NFS filesystem.
1414

1515
**BUG FIXES**
1616
- Pin to version 1.247347 of the CloudWatch agent due to performance impact of latest CW agent version 1.247348.
17+
- Avoid failures when building SGE using instance type with vCPU >=32.
1718

1819
2.11.0
1920
-----

recipes/sge_install.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
tar xf #{sge_tarball}
9494
cd sge-#{node['cfncluster']['sge']['version']}/source
9595
CORES=$(grep processor /proc/cpuinfo | wc -l)
96+
if which yum &>/dev/null || which dnf &>/dev/null && [[ ${CORES} -ge 32 ]]; then
97+
# for yum/dnf OS avoid failures when using high parallelism
98+
CORES=31
99+
fi
96100
sh scripts/bootstrap.sh -no-java -no-jni -no-herd
97101
./aimk -pam -no-remote -no-java -no-jni -no-herd -parallel $CORES
98102
./aimk -man -no-java -no-jni -no-herd -parallel $CORES

0 commit comments

Comments
 (0)