Skip to content

Instantly share code, notes, and snippets.

@Kadle11
Created September 2, 2020 07:46
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 Kadle11/9ad42a9f9cce2ad70f72524f1c7fd93b to your computer and use it in GitHub Desktop.
Save Kadle11/9ad42a9f9cce2ad70f72524f1c7fd93b to your computer and use it in GitHub Desktop.
Setting up ParMETIS and Python Support (Ubuntu)

Setting up ParMETIS and Python3 Support

  1. Install CMake and MPIC++
  2. Download and extract the ParMETIS shared object
wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz 
gunzip parmetis-4.0.3.tar.gz 
tar -x parmetis-4.0.3.tar
cd parmetis-4.0.3 
  1. Edit the file metis/include/metis.h and specify the width (32 or 64 bits) of the elementary data type used in ParMetis (and METIS). This is controled by the IDXTYPEWIDTH constant.

  2. Make and Install

make config shared=1
make install
  1. Python Support
pip3 install metis
  1. Add environment variables to BashRC and Source.
export METIS_DLL=/usr/local/lib/libparmetis.so
export METIS_IDXTYPEWIDTH=64
export METIS_REALTYPEWIDTH=64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment