NOAA-EMC / hpc-stack

Create a software stack for HPC's
GNU Lesser General Public License v2.1
29 stars 35 forks source link

[INSTALL] SCOTCH v7.0.4 on RDHPCS machines #526

Open MatthewMasarik-NOAA opened 10 months ago

MatthewMasarik-NOAA commented 10 months ago

Which software in the stack would you like installed? SCOTCH v7.0.4.

What is the version/tag of the software? v7.0.4: https://gitlab.inria.fr/scotch/scotch/-/tags/v7.0.4

What compilation options would you like set?

git clone https://gitlab.inria.fr/scotch/scotch.git git checkout tags/v7.0.4 cd scotch mkdir build && cd build

cmake -DCMAKE_Fortran_COMPILER=mpiifort \ -DCMAKE_C_COMPILER=mpiicc \ -DCMAKE_CXX_COMPILER=mpiicc \ -DCMAKE_BUILD_TYPE=Release \ .. make ptscotch make install


* **orion**

module purge
module load contrib/0.1
module load noaa-gcc/10.2.0
module load cmake/3.22.1
module load intel/2022.1.2
module load impi/2022.1.2
module use /work/noaa/epic-ps/hpc-stack/libs/intel/2022.1.2/modulefiles/stack module load hpc/1.2.0
module load hpc-intel/2022.1.2
module load hpc-impi/2022.1.2

git clone https://gitlab.inria.fr/scotch/scotch.git git checkout tags/v7.0.4 cd scotch mkdir build && cd build

cmake -DCMAKE_Fortran_COMPILER=mpiifort \ -DCMAKE_C_COMPILER=mpiicc \ -DCMAKE_CXX_COMPILER=mpiicc \ -DCMAKE_BUILD_TYPE=Release \ .. make ptscotch make install


* **Environment parameter**
Loading `scotch/7.0.4` should `export`

SCOTCH_PATH=



**Which machines would you like to have the software installed?**
All RDHPCS machines (note: I have access to hera and orion).

**Any other relevant information that we should know to correctly install the software??**
This bugfix version, SCOTCH v7.0.4, can be built with both `THREADS` and `MPI_THREAD_MULTIPLE` cmake options set to `ON`.  These are the default settings in the top level `CMakeLists.txt`, so including them in the cmake command line call is not necessary.  

**Additional context**
Running `ccmake` confirms that both `THREADS` and `MPI_THREAD_MULTIPLE` are set to `ON`.

![Screenshot from 2023-08-25 14-46-22](https://github.com/NOAA-EMC/hpc-stack/assets/86749872/8e38e7b3-a6fc-461a-bf01-740e1999e5f3)

Additionally, the other parameters shown in the `ccmake` display are also set to `ON`, which are the settings we would like.  These are also the default settings in the CMakeLists.txt, so no other action is needed for them.