Skip to content

This Repository contains C implementation of various basics of parallel computing using OpenMP.

Notifications You must be signed in to change notification settings

Defcon27/Parallel-Computing-in-C-using-OpenMP

Repository files navigation

Parallel-Computing-in-C-using-OpenMP

GitHub last commit GitHub code size in bytes


This Repository contains C implementation of various algorithms parallellized for computing using OpenMP. The Repo covers many concepts of OpenMP using C from using clauses and constructs in OpenMP to parallelize algorithms. The parallelized implementations in this repo range from operations on arrays, matrices, sorting algorithms to mathematical constants estimations.


Table of Contents


Instructions to Run

  • OpenMP

    • cd into code directory
    • Run gcc -fopenmp filename.c -o exec to create executable
    • Run execto execute
  • Open MPI

    • cd into code directory
    • Run mpicc filename.c -o exec to create executable
    • Run mpirun -np t ./execto execute (t -> number of threads)