WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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)