From: Nabil Ghodbane Date: Thu, 3 Feb 2022 12:56:52 +0000 (+0100) Subject: topo2volmesh: on virtual machines use --oversubscribe X-Git-Tag: V9_9_0~191 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=76555e6a3942b3f01e87dc98b9d1ee77f5396b8c;p=tools%2Fsat_salome.git topo2volmesh: on virtual machines use --oversubscribe --- 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