... | @@ -5,7 +5,47 @@ INMOST may be configured with optional ParMETIS support. In this case INMOST wil |
... | @@ -5,7 +5,47 @@ INMOST may be configured with optional ParMETIS support. In this case INMOST wil |
|
|
|
|
|
INMOST requires ParMETIS version 4.0 or higher.
|
|
INMOST requires ParMETIS version 4.0 or higher.
|
|
|
|
|
|
If you have installed ParMETIS yourself then just provide `PARMETIS_DIR` option to CMake configure script.
|
|
To install ParMETIS yourself, download version 4.03 from [http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download](http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download).
|
|
|
|
|
|
|
|
You can do it using the following command:
|
|
|
|
|
|
|
|
```
|
|
|
|
wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz
|
|
|
|
```
|
|
|
|
|
|
|
|
Unpack the package with the command
|
|
|
|
|
|
|
|
```
|
|
|
|
tar -xzf parmetis-4.0.3.tar.gz
|
|
|
|
```
|
|
|
|
|
|
|
|
Open `parmetis-4.0.3/CMakeLists.txt` file for edit and replace following two lines:
|
|
|
|
|
|
|
|
```
|
|
|
|
set(GKLIB_PATH METIS/GKlib CACHE PATH "path to GKlib")
|
|
|
|
set(METIS_PATH METIS/metis CACHE PATH "path to METIS")
|
|
|
|
```
|
|
|
|
|
|
|
|
With three following lines:
|
|
|
|
|
|
|
|
```
|
|
|
|
find_package(MPI)
|
|
|
|
set(GKLIB_PATH ${CMAKE_SOURCE_DIR}/metis/GKlib CACHE PATH "path to GKlib")
|
|
|
|
set(METIS_PATH ${CMAKE_SOURCE_DIR}/metis CACHE PATH "path to METIS")
|
|
|
|
```
|
|
|
|
|
|
|
|
Now cmake would be able to correctly recognize all the paths and to automatically find the MPI library.
|
|
|
|
|
|
|
|
Create the `parmetis-build` directory and run the following commands from it:
|
|
|
|
|
|
|
|
```
|
|
|
|
cmake ../parmetis-4.0.3/. && make
|
|
|
|
```
|
|
|
|
|
|
|
|
Once you have compiled ParMETIS, provide `PARMETIS_DIR` option to CMake configure script.
|
|
|
|
|
|
|
|
Install ParMETIS with PETSc
|
|
|
|
======
|
|
|
|
|
|
We recommend, that you compile ParMETIS using PETSc installer, refer to [[PETSc installation guide|0403-Compilation-PETSc-Linux]] for detail information.
|
|
We recommend, that you compile ParMETIS using PETSc installer, refer to [[PETSc installation guide|0403-Compilation-PETSc-Linux]] for detail information.
|
|
When you start `configure` script just add `--download-metis --download-parmetis` like this:
|
|
When you start `configure` script just add `--download-metis --download-parmetis` like this:
|
... | | ... | |