Code Monkey home page Code Monkey logo

pdp's Introduction

PROGRAMARE PARALELĂ ȘI DISTRIBUITĂ

Overview

This project is a parallel computing application that uses Message Passing Interface (MPI) for communication between processes. The application is containerized using Docker, and uses MPICH, an implementation of the MPI standard.

The project is managed using Docker and Docker Compose. It contains exercises and program examples from "PROGRAMARE PARALELĂ ȘI DISTRIBUITĂ" course of UTM.

Prerequisites

Ensure you have Docker and Docker Compose installed on your system.

Setup and Run

  1. Build the Docker image

    You can build the Docker image using Docker Compose with the following command:

    docker-compose build

This command will pull the latest Ubuntu image, install MPICH and bash, and set up the working directory.

  1. Start the Docker container

    After the image has been built, you can start the Docker container with the following command:

    docker-compose up -d

    This command will pull the latest Ubuntu image, install MPICH and bash, and set up the working directory.

  2. Compile the program

    To compile your MPI program, you can execute the following command:

    docker exec -it pdp-mpich_container bash -c "mpicxx home_exercise_3_1.cpp -o home_exercise_3_1"

    To compile your MPI program, you can execute the following command:

    docker exec -it pdp-mpich_container bash -c "mpicxx home_exercise_3_1.cpp -fopenmp -o home_exercise_3_1"
    
  3. Run the program

    You can then run your program with the desired number of processes using the following command:

    docker exec -it pdp-mpich_container bash -c "mpirun -n 12 ./home_exercise_3_1"

    This command will run the home_exercise_3_1 program with 12 processes.

Exempluri

Exercitii

pdp's People

Contributors

ivantalpa avatar

Watchers

 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.