GithubHelp home page GithubHelp logo

smallcat9603 / mpi Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 181.09 MB

Makefile 15.98% Shell 0.69% M4 0.42% C 67.12% Perl 0.47% Python 0.19% C++ 0.82% Roff 0.67% TeX 0.15% Assembly 1.13% HTML 6.57% Verilog 0.08% Java 0.01% Fortran 5.61% Tcl 0.01% Modula-3 0.01% SourcePawn 0.01% Awk 0.01% CSS 0.01% JavaScript 0.06%

mpi's Introduction

mpi

This repo contains several mpi apps and algorithm based fault tolerant apps (mm, lu, kmeans).

  • CRC32 is used to verify the integrity of communication data.
  • Hamming code (SECDED) is used to correct one-bit errors and detect two-bit errors in data blocks.

MM

  • Compile
make mm
make mm_abft
make mm_comp
  • Run
mpirun -np <num_of_procs> bin/mm <matrix_a_filename> <matrix_b_filename>
mpirun -np <num_of_procs> bin/mm_abft <matrix_a_filename> <matrix_b_filename>
mpirun -np <num_of_procs> bin/mm_comp <matrix_a_filename> <matrix_b_filename> [CT]
  • A small program gen_matrices.py helps to generate a matrix.
  • Requirement
    • m_1->cols == m_2->rows
    • m_1->rows % num_worker == 0

LU

  • Compile
make lu
make lu_abft
make lu_comp
  • Run
mpirun -np <num_of_procs> bin/lu <matrix_size>
mpirun -np <num_of_procs> bin/lu_abft <matrix_size>
mpirun -np <num_of_procs> bin/lu_comp <matrix_size> [CT]

K-means

  • Compile
make kmeans
make kmeans_abft
make kmeans_comp
  • Run
mpirun -np <num_of_procs> bin/kmeans [clusters] [max_iterations] [datafile] # (default) 100 1000 ./data/obs_info.txt
mpirun -np <num_of_procs> bin/kmeans_abft [clusters] [max_iterations] [datafile] # (default) 100 1000 ./data/obs_info.txt
mpirun -np <num_of_procs> bin/kmeans_comp [CT] # CT, clusters, max_iterations, datafile are set in include/dataCompression.h

Himeno

  • Parameter Setting
cd src/himeno
./paramset.sh M 1 1 2 # generate new param.h
  • Compile
make himeno
make himeno_comp
  • Run
mpirun -np <num_of_procs> bin/himeno

Graph500

  • Compile
cd src/graph500/mpi/
make
  • Run
cd src/graph500/mpi/
./graph500_mpi_simple <scale> [edge-factor-default-16]

PingPong

  • Compile
make pingpong_float_comp
make pingpong_double_comp
  • Run
mpirun -np 2 ./bin/pingpong_float_comp
mpirun -np 2 ./bin/pingpong_double_comp

mpi's People

Contributors

smallcat9603 avatar

Watchers

Lucian avatar James Cloos avatar  avatar

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.