GithubHelp home page GithubHelp logo

ee451_proj_viterbi's Introduction

EE451_Proj_Viterbi

Type make to compile files. Type "./main" to run the program.

The code is dedicated for USC HPC.

Before you run it, remember to set the paramemters in main.cpp or mpi.cpp or openmp_mpi.cpp and compile it!

LTDP with openMP

To compile : g++ -std=c++11 -O3 -c main.cpp viterbi.cpp parallel_viterbi.cpp util.cpp -fopenmp

TO link: g++ -std=c++11 -O3 -o main main.o viterbi.o parallel_viterbi.o util.o -fopenmp

TO run: srun -n1 -c2 ./main (c2 means 2 processors)

LTDP with MPI

First, setup MPI toolchain by typning ‘source /usr/usc/openmpi/default/setup.sh’

To compile: mpic++ -std=c++11 -O3 -c util.cpp mpi.cpp viterbi.cpp

To link: mpic++ -o mpi util.o mpi.o viterbi.o

TO run: srun -n4 ./mpi (-n4 means 4 nodes)

LTDP with both OpenMP and MPI

First, setup MPI toolchain by typning ‘source /usr/usc/openmpi/default/setup.sh’

To compile: mpic++ -std=c++11 -O3 -c util.cpp openmp_mpi.cpp viterbi.cpp -fopenmp

To link: mpic++ -o openmp_mpi util.o openmp_mpi.o viterbi.o -fopenmp

To run: srun -n2 -c2 ./openmp_mpi (this means 2 processors in 2 nodes = 4 processors in total)

ee451_proj_viterbi's People

Contributors

tinhangchui avatar cumbul 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.