From: Nabil Ghodbane Date: Thu, 8 Dec 2022 10:00:28 +0000 (+0100) Subject: spns #32377: SALOME-9.10.0-MPI compilation fix - gmsh X-Git-Tag: V9_11_0~155 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=927fae0dea61c01f50f1303cd9d721cf2bfb635d;p=tools%2Fsat_salome.git spns #32377: SALOME-9.10.0-MPI compilation fix - gmsh --- diff --git a/applications/SALOME-9.10.0-MPI.pyconf b/applications/SALOME-9.10.0-MPI.pyconf index 9897204..f290552 100644 --- a/applications/SALOME-9.10.0-MPI.pyconf +++ b/applications/SALOME-9.10.0-MPI.pyconf @@ -61,8 +61,8 @@ APPLICATION : mpc : 'native' gmp : 'native' mpfr : 'native' - gdal : {tag : '2.4.0', hpc : 'yes'} - gmsh : '4.10.3' + gdal : {tag : '2.4.0', hpc : 'yes'} + gmsh : {tag : '4.10.3', section : 'version_4_10_3_MPI', hpc : 'yes', base : 'no'} graphviz : '2.38.0' hdf5 : {tag : '1.10.3', hpc : 'yes'} idna : '2.7' diff --git a/applications/SALOME-master-MPI.pyconf b/applications/SALOME-master-MPI.pyconf index 93fbc18..c325110 100644 --- a/applications/SALOME-master-MPI.pyconf +++ b/applications/SALOME-master-MPI.pyconf @@ -61,8 +61,8 @@ APPLICATION : mpc : 'native' gmp : 'native' mpfr : 'native' - gdal : {tag : '2.4.0', hpc : 'yes'} - gmsh : '4.10.3' + gdal : {tag : '2.4.0', hpc : 'yes'} + gmsh : {tag : '4.10.3', section : 'version_4_10_3_MPI', hpc : 'yes', base : 'no'} graphviz : '2.38.0' hdf5 : {tag : '1.10.3', hpc : 'yes'} idna : '2.7' diff --git a/products/compil_scripts/gmsh-4.10.3.sh b/products/compil_scripts/gmsh-4.10.3.sh index c15d408..97a7af7 100755 --- a/products/compil_scripts/gmsh-4.10.3.sh +++ b/products/compil_scripts/gmsh-4.10.3.sh @@ -33,6 +33,13 @@ if [[ $DIST_NAME == "FD" && $DIST_VERSION == "32" ]] then CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_MMG3D=OFF" # removed anyhow in GMS 4.6 fi +if [ -n "$SAT_HPC" ] +then + if [ -n "$MPI_ROOT_DIR" ]; then + CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=$(which mpic++)" + CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=$(which mpicc)" + fi +fi echo "*** cmake" $CMAKE_OPTIONS cmake $CMAKE_OPTIONS $SOURCE_DIR diff --git a/products/gmsh.pyconf b/products/gmsh.pyconf index 33b8c5f..903dc7d 100644 --- a/products/gmsh.pyconf +++ b/products/gmsh.pyconf @@ -43,6 +43,12 @@ version_4_10_3_win: depend : ["CAS","lapack","hdf5","medfile", "cgns"] } +version_4_10_3_MPI: +{ + compil_script : "gmsh-4.10.3.sh" + depend : ["CAS","lapack","hdf5","medfile", "cgns", "openmpi"] +} + version_4_10_3_win_dbg: { depend : ["CAS","lapack","hdf5","medfile", "cgns"]