From 76555e6a3942b3f01e87dc98b9d1ee77f5396b8c Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Thu, 3 Feb 2022 13:56:52 +0100 Subject: [PATCH] topo2volmesh: on virtual machines use --oversubscribe --- products/compil_scripts/topo2volmesh.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/products/compil_scripts/topo2volmesh.sh b/products/compil_scripts/topo2volmesh.sh index 442ce81..c8843fa 100755 --- a/products/compil_scripts/topo2volmesh.sh +++ b/products/compil_scripts/topo2volmesh.sh @@ -72,6 +72,16 @@ then exit 4 fi +echo +echo "*** Check if node is a virtual machine" +ISVM=$(hostnamectl status|grep -i chassis:|grep vm) +if [ $? -ne 0 ]; then + echo "*** oversubscribe..." + sed -i 's/mpirun -np \$(NP)/mpirun -np \$(NP) --oversubscribe/g' src/*/Makefile.am +else + echo "*** hostnamectl says that $HOSTNAME is *NOT* a virtual machine" +fi + make check if [ $? -ne 0 ] then -- 2.39.2