|
|
Load modules according to the machine
|
|
|
---
|
|
|
|
|
|
*Power 9*:
|
|
|
**Power 9**
|
|
|
1) module purge
|
|
|
2) load module bsc/commands pgi/20.4.1 openmpi/4.0.4 cuda/10.1 cmake
|
|
|
|
|
|
MicroPP compilation
|
|
|
---
|
|
|
|
|
|
*MicroPP - GPU*:
|
|
|
**MicroPP - GPU**
|
|
|
|
|
|
1) mkdir build-gpu
|
|
|
2) cd build-gpu
|
|
|
3) ccmake ../
|
|
|
4) Type `c`, activate the flags: `ENABLE CUDA, OPEN_ACC, OPEN_MPI`, copy the folder path into `CMAKE_INSTALL_PREFIX`, and finally, type `c` and `g` to proceed with the configure.
|
|
|
5) make
|
|
|
|
|
|
type `c`, activate the flags: `ENABLE CUDA, OPEN_ACC, OPEN_MPI`, copy the folder path into `CMAKE_INSTALL_PREFIX`, and finally, type `c` and `g` to proceed with the configure.
|
|
|
|
|
|
4) make
|
|
|
|
|
|
|
|
|
*MicroPP-CPU*:
|
|
|
**MicroPP-CPU**
|
|
|
|
|
|
1) mkdir build-cpu
|
|
|
2) cd build-cpu
|
|
|
2) cmake ..
|
|
|
3) ccmake .
|
|
|
|
|
|
type `c`, activate the flags: `OPEN_MPI`, copy the folder path into `CMAKE_INSTALL_PREFIX`, and finally, type `c` and `g` to proceed with the configure.
|
|
|
|
|
|
4) make
|
|
|
3) ccmake ../
|
|
|
4) Type `c`, activate the flags: `OPEN_MPI`, copy the folder path into `CMAKE_INSTALL_PREFIX`, and finally, type `c` and `g` to proceed with the configure.
|
|
|
5) make
|
|
|
|
|
|
|
|
|
Alya compilation
|
|
|
---
|
|
|
|
|
|
1) Create symbolic links into `Thirdparties/micropp/build` of the static library `libmicropp.a` and the two modules `libmaterial.mod` and `libmicropp.mod` using `ln -s path_to_file`
|
|
|
**Create symbolic links**
|
|
|
|
|
|
1) cd `Thirdparties/micropp/build`
|
|
|
2) ln -s path_to_micropp/`libmicropp.a`
|
|
|
3) ln -s path_to_micropp/`libmaterial.mod`
|
|
|
4) ln -s path_to_micropp/`libmicropp.mod`
|
|
|
|
|
|
|
|
|
**Configure Alya**
|
|
|
|
|
|
1) cd Executables/unix/
|
|
|
2) cp configure.in/micropp/configure_gpu_power9.in config.in
|
|
|
3) ./configure -x solidz
|
|
|
|
|
|
|
|
|
**Compile Metis4**
|
|
|
|
|
|
1) make metis4
|
|
|
|
|
|
|
|
|
**Modify makefile**
|
|
|
|
|
|
2) cd Executables/unix/
|
|
|
1) Find the MicroPP section in the `makefile` file to include ``.
|
|
|
|
|
|
3) cp configure.in/micropp/configure_gpu_power9.in config.in
|
|
|
|
|
|
4) ./configure -x solidz
|
|
|
**Compile Alya**
|
|
|
|
|
|
5) Modify the `makefile` to include the
|
|
|
1) make -j 8
|
|
|
|
|
|
|