The goal of this project is to sort a very large database by a parallel algorithm.
  • C 70.7%
  • Python 26.4%
  • Makefile 2.9%
Find a file
2022-06-28 09:37:14 +02:00
extra Major updates 2020-12-03 13:54:36 +01:00
plots Bump numpy from 1.19.4 to 1.22.0 in /plots 2022-06-28 07:34:10 +00:00
src mini_update 2021-01-17 21:50:32 +01:00
.gitignore Major updates 2020-12-03 13:54:36 +01:00
README.md Update README.md 2021-01-09 11:11:47 +01:00

Parallel Sorting (using: OpenMP)

School project developed using C and Python.

Installing dependencies for python plotting!

    # Navigate to plots directory
    $ cd TriParallele/plots

    # Create the virtual environement (venv)
    $ python3 -m venv venv
    
    # Activating the virtual environement
    $ source venv/bin/activate

    # Install required python modules
    (venv)$ pip install -r requirements.txt

Building the C project

Use the MAKEFILE to build the project.

    $ cd TriParallele/src
    $ make clean
    $ make

Executing the project

Part 1

Executing the C compiled object to extract the performances data into a csv file called 'performances.csv' in the same directory.

    $ cd TriParallele/src
    
    # ./program filename[.csv]
    $ ./program performance.csv

Note: The execution of the program might take a couple of hours depending on your machine.

Part 2

Executing the Python script to make the plots (charts).

Keep in mind that this part requires the installed dependencies mentionned above!

    $ cd TriParallele/plots

    # Activating the virtual environment
    $ source venv/bin/activate

    # Executing the script
    (venv)$ python plot.py

    # Deactivating the virtual environment
    (venv)$ deactivate

Managing the development tasks in a Trello Table.