User Tools

Site Tools


petsc_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
petsc_install [2023/03/22 17:58] adminpetsc_install [2023/03/22 18:05] (current) – [Configuração usada atualmente Release (sem debug)] admin
Line 35: Line 35:
  
 ===== Configuração usada atualmente Release (sem debug)===== ===== Configuração usada atualmente Release (sem debug)=====
-==PETSc + MPICH externo + METIS + PARMETIS + mumps + FGLASLAPACK + hdf: ==+== incluído no PETSc:  METIS + PARMETIS + mumps + FGLASLAPACK + hdf5 == 
 +== instalar antes do PETSc Valgrind e MPICH == 
 + 
 +###1.  Install Valgrind ### 
 + 
 +###2.  Install MPICH ### 
 + 
 +PETSc uses MPICH to deal with parallelism, so you can decide either install the MPICH and give its path to PETSc or let PETSc download it during the configuration process. The first option is recommended because the path to the *mpiexec* becomes fixed and independent of the PETSc build configuration. 
 + 
 +You can download the file [mpich-3.4.2.tar.gz](https://github.com/pmodels/mpich/releases/tag/v3.4.2) and follow the instructions on [github](https://github.com/pmodels/mpich): 
 +- Unpack the tar file and go to the top level directory: 
 +```bash 
 +tar xzf mpich-3.4.2.tar.gz 
 +cd mpich-3.4.2 
 +``` 
 +- Configure MPICH specifying the installation directory (could be either an empty directory or an non existent directory) and device: 
 +```bash 
 +./configure --prefix=/path/to/mpi/installation/directory --with-device=ch4:ofi 2>&1 | tee c.txt 
 +``` 
 +- Build MPICH: 
 +```bash 
 +make 2>&1 | tee m.txt 
 +``` 
 +- Install the MPICH commands: 
 +```bash 
 +make install 2>&1 | tee mi.txt 
 +``` 
 +- Add the bin subdirectory of the installation directory to your PATH by adding the following line to the file ~/.bashrc: 
 +```bash 
 +export PATH="/path/to/mpi/installation/directory/bin:$PATH" 
 +``` 
 +Check that everything is in order at this point by doing: 
 +```bash 
 +which mpicc 
 +which mpicxx 
 +which mpiexec 
 +``` 
 +These commands should print the path to the bin subdirectory of the MPICH installation directory. 
 + 
 + 
 + 
  
  
petsc_install.1679507932.txt.gz · Last modified: by admin