Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:services:application_services:high_performance_computing:software:compilation [2021/07/22 14:28] – mboden | en:services:application_services:high_performance_computing:software:compilation [2024/11/19 10:16] (current) – remove reference to gwdu103 ckoehle2 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Applications Compilation ====== | ||
+ | The recommended compiler module for C, C++, and Fortran code is the default Intel compiler intel/ | ||
+ | |||
+ | intel/mpi and the various OpenMPI flavors are recommended for MPI, mostly due to the fact that the mvapich and mvapich2 libraries lack testing. | ||
+ | |||
+ | ===== CPU Architecture ===== | ||
+ | gwdu101 and gwdu102 are Intel Cascade Lake-based systems (2x 48 cores, 192 GB RAM). If your software takes advantage of special CPU dependent features, it is recommended to use the same CPU architecture for compiling as targeted for running your jobs. | ||
+ | |||
+ | ===== mpi4py ===== | ||
+ | To obtain consistent results, it is recommended **NOT** to install mpi4py conda environment. It is advisable to load the system' | ||
+ | Installation via conda will install the conda version of MPI instead of the system' | ||
+ | |||
+ | To install mpi4py via pip, follow the steps below: | ||
+ | === 1. Create and activate a conda environment === | ||
+ | < | ||
+ | $ module load anaconda3 | ||
+ | $ conda create --name my-mpi4py python=3.8 -y | ||
+ | $ conda activate my-mpi4py | ||
+ | </ | ||
+ | |||
+ | === 2. Install mpi4py in the created conda environment === | ||
+ | |||
+ | Load the specific MPI version. | ||
+ | |||
+ | < | ||
+ | $ module load openmpi | ||
+ | </ | ||
+ | |||
+ | Set the loaded version version of MPI to be used by MPI4py | ||
+ | |||
+ | < | ||
+ | $ export MPICC=$(which mpicc) | ||
+ | </ | ||
+ | |||
+ | Then install the mpi4py using pip | ||
+ | < | ||
+ | $ pip install mpi4py --no-cache-dir | ||
+ | </ | ||
+ | |||
+ | Finally, when the installation is finished, check that it was properly installed by running | ||
+ | < | ||
+ | $ python -c " | ||
+ | </ |