Salome HOME
projects
/
tools
/
sat_salome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca390a
)
topo2volmesh: on virtual machines use --oversubscribe
author
Nabil Ghodbane
<nabil.ghodbane@cea.fr>
Thu, 3 Feb 2022 12:56:52 +0000
(13:56 +0100)
committer
Nabil Ghodbane
<nabil.ghodbane@cea.fr>
Thu, 3 Feb 2022 12:56:52 +0000
(13:56 +0100)
products/compil_scripts/topo2volmesh.sh
patch
|
blob
|
history
diff --git
a/products/compil_scripts/topo2volmesh.sh
b/products/compil_scripts/topo2volmesh.sh
index 442ce814a8aa3fbd82f7605870d58cb85b761a3e..c8843faf1a76018612d912931f96e98314112834 100755
(executable)
--- 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