Skip to content

Instantly share code, notes, and snippets.

@mayflower12
Forked from zhulianhua/openmpi_HDF5_CGNS.sh
Created October 5, 2017 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayflower12/1e6c02b9dd87b77ec1e424f6310aea43 to your computer and use it in GitHub Desktop.
Save mayflower12/1e6c02b9dd87b77ec1e424f6310aea43 to your computer and use it in GitHub Desktop.
```bash
### OpenMPI
module load compilers/intel/2018_0
./configure --prefix=/home/appLEIWU/MPI/intel/openmpi/2.1.0 CC=/home/appLEIWU/compiler/intel/compilers_and_libraries_2018.0.128/linux/bin/intel64/icc CXX=/home/appLEIWU/compiler/intel/compilers_and_libraries_2018.0.128/linux/bin/intel64/icpc F77=/home/appLEIWU/compiler/intel/compilers_and_libraries_2018.0.128/linux/bin/intel64/ifort FC=/home/appLEIWU/compiler/intel/compilers_and_libraries_2018.0.128/linux/bin/intel64/ifort
make -j 28
sudo make install
### HDF5
CC=/home/appLEIWU/MPI/intel/openmpi/2.1.0/bin/mpicc ./configure --enable-parallel --prefix=/home/appLEIWU/tool/HDF5/intel/openmpi/1.8.5-patch1
make -j 28
# make check
sudo make install
### CGNS
rm -rf build
mkdir build && cd build
CC=/home/appLEIWU/compiler/intel/compilers_and_libraries_2018.0.128/linux/bin/intel64/icc CXX=/home/appLEIWU/compiler/intel/compilers_and_libraries_2018.0.128/linux/bin/intel64/icpc cmake .. -DCMAKE_INSTALL_PREFIX=/home/appLEIWU/tool/CGNS/intel/openmpi/3.2.1 -DCMAKE_PREFIX_PATH=/home/appLEIWU/tool/HDF5/intel/openmpi/1.8.5-patch1 -DCGNS_ENABLE_PARALLEL=ON -DCGNS_ENABLE_HDF5=ON -DHDF5_NEED_MPI=ON
make -j 28
sudo make install
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment