Coder Social home page Coder Social logo

pds-project-1's Introduction

Parallel & Distributed Systems - Project 1

The main function can be found in triangles.c, while v3.c, 3vclk.c, v3omp.c, v4.c, v4clk.c, v4omp.c, v4ptd.c contain implementations of the two versions in serial and parallel forms.

The project can be Compiled and executed by using:

./run "<Path to mtx file> -t<threads> -c0 -v4omp -v3clk <any implementations, see below> "

The available arguments are:

Usage: ./triangles.o [mtx-filename] [arguments]

 -tX     Set Threads

 -cX     Set display type.
         X=0: Only Status info (Default).
         X=1: Status info and C vector.
         X=2: Only C vector.

 -vX     To run the serialized code.
         X=2,3,4: For V2, V3, V4 respectively.

 -vXclk  To run OpenCilk code.
         X=3,4: For V3, V4 respectively.

 -vXomp  To run OpenMP code.
         X=3,4: For V3, V4 respectively.

 -v4ptd  To run the V4 POSSIX Threads code.

 -coorow Print 1-Based COO rows horizontally.
 -coocol Print 1-Based COO columns horiizonntally.
 -coo    Print 1-Based COO rows and columns vertically.

Testing

Use -c2 as an argument, for the C vector to be printed on its own. For comparing the two outputs, use the compare script.

Example:

./run "<Path to mtx file> -t<threads> -c2 -v4omp > out_v4_omp.out_ "
./run "<Path to mtx file> -t<threads> -c2 -v3omp > out_v3_omp.out_ "
./compare out_v4_omp.out_ out_v3_omp.out_

pds-project-1's People

Contributors

kostascc avatar

Watchers

 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.