GithubHelp home page GithubHelp logo

ecp-exagraph / mel Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 135 KB

MPI implementation of Half-approximate Graph Matching

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.59% C++ 99.41%

mel's Introduction


Contents

This folder contains codes for implementing Half-approximate matching. Please review the following paper for the serial algorithm, based on Manne-Bisseling: http://www.staff.science.uu.nl/~bisse101/Articles/CP75.pdf

Also attached is a binary input file (karate.bin), for Karate network ( https://en.wikipedia.org/wiki/Zachary%27s_karate_club ).

This code requires an MPI library (MPI-3 compatible) and C++11 compliant compiler for building.

Please contact the following for any queries or support:

Sayan Ghosh, WSU (zsayanz at gmail dot com) Mahantesh Halappanavar, PNNL (hala at pnnl dot gov)


Cite

Sayan Ghosh, Mahantesh Halappanavar, Ananth Kalyanaraman, Arif Khan, Assefaw Gebremedhin. Exploring MPI Communication Models for Graph Applications Using Graph Matching as a Case Study. 33rd IEEE International Parallel and Distributed Processing Symposium (IPDPS 2019).


Compile

Just invoking `make should build the program, without any changes made to the Makefile. Please pass the appropriate macro to select the MPI version, following are the macros (also mentioned in the Makefile):

Options for choosing the MPI variants

#-DUSE_MPI_NRM, RMA (passive mode) with neighbor communicator #-DUSE_MPI_P2P, Plain P2P #-DUSE_MPI_NCL, Neighborhood collective #-DUSE_MPI_NPP, P2P with neighbor communicator #-DUSE_MPI_RMA, Plain RMA (passive mode)

Experimental:

#-DUSE_MPI_UPX, use -DREPLACE_UPX_WITH_RMA to replace UPCXX with MPI calls


Input

We require graphs to be converted from its native format to a binary format. The binary converter is part of another application, please follow the instructions for using Vite for file conversion: https://github.com/Exa-Graph/vite


Execute

mpiexec -n 2 ./match -f karate.bin

Apart from using external file, it is possible to generate in-memory a random geometric graph in a distributed fashion.

Possible options (can be combined):

  1. -f : Specify input binary file after this argument.
  2. -n : Pass total number of vertices of the generated graph.
  3. -l : Use distributed LCG for randomly choosing edges. If this option is not used, we will use C++ random number generator (using std::default_random_engine).
  4. -p : Specify percent of overall edges to be randomly generated between processes.
  5. -w : Use Euclidean distance as edge weight. If this option is not used, edge weights are considered as 1.0. Generate edge weight uniformly between (0,1) if Euclidean distance is not available (applicable to randomly generated edges).
  6. -r : This is used to control the number of aggregators in MPI I/O and is meaningful when an input binary graph file is passed with option "-f". naggr := (nranks > 1) ? (nprocs/nranks) : nranks;

mel's People

Contributors

exa-graph avatar sg0 avatar

Stargazers

 avatar Naveen Namashivayam Ravichandrasekaran avatar Mandy Sack avatar

Watchers

James Cloos avatar

Forkers

sg0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.