Rate This Document
Findability
Accuracy
Completeness
Readability

Installing ParMETIS

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the ParMETIS installation package.
    tar -xvf parmetis-4.0.3.tar.gz
  3. Go to the directory generated after the decompression.
    cd parmetis-4.0.3
  4. Modify the metis/include/metis.h file.
    1. Open the metis/include/metis.h file.
      vi metis/include/metis.h
    2. Press i to enter the insert mode and modify line 33 in the metis/include/metis.h file.
      #define IDXTYPEWIDTH 64

      After performing 4.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Install CMake.
    yum install cmake -y

    If an error is reported during the installation, modify the Yum configuration file to change the Python version.

  6. Go to the metis directory and compile and install ParMETIS.
    cd metis/
    make config shared=1 prefix=/path/to/METIS
    make install
  7. Go to the upper-layer directory and perform the compilation and installation.
    cd ../

    Add the following information in bold to the CMakeLists.txt file in the current directory:

    # List of paths that the compiler will search for header files.
    add_compile_options(-fPIC)

    Save the file and exit.

    make config shared=1 prefix=/path/to/METIS
    make install