Code Monkey home page Code Monkey logo

distributed_knn's Introduction

Distributed KNN

A hybrid MPI-OpenMP based implementation of a knn search and classification algorithm, aimed for use upon HPC systems.

Developed by Dimitrios Karageorgiou,
during the course Parallel And Distributed Systems,
Aristotle University Of Thessaloniki, Greece,
2017-2018.

The provided implementation is a hybrid classifier, that utilizes both MPI communications for communications between cluster's nodes and OpenMP for parallel processing in the shared memory environment of each node.

Its original target was HellasGrid nodes, though it may run upon any cluster and/or setup that provides at least an MPI 1.0 implementation.

How to compile:

make all

In order to compile an implementation of MPI 1.0 or above, like OpenMPI, should be present. Also, a compiler that supports OpenMP and C99 is required.

How to run on a shared memory setup:

Non blocking communications:

export OMP_NUM_THREADS=<threads_per_process>
make run p=<num_of_processes>

or

export OMP_NUM_THREADS=<threads_per_process>
make runp p=<num_of_processes> data=<path_to_datafile> labels=<path_to_labelfile> k=<nearest_neighhbors_num> [results=<path_to_precalculated_results_file> [indexes=<path_to_precalculacted_indexes_file>]]

where arguments in [] are optional.

Blocking communications:

export OMP_NUM_THREADS=<threads_per_process>
make run_blocking p=<num_of_processes>

or

export OMP_NUM_THREADS=<threads_per_process>
make runp_blocking p=<num_of_processes> data=<path_to_datafile> labels=<path_to_labelfile> k=<nearest_neighhbors_num> [results=<path_to_precalculated_results_file> [indexes=<path_to_precalculacted_indexes_file>]]

where arguments in [] are optional.

How to run on a cluster setup:

For clusters that support qsub and I2G_MPI_START mechanism, there is a testing script under helper_scripts/local_cluster_submit named local_submit.sh.

For submission upon HellasGrid (and further EGI) infrastracture, there is a JDL file and two required scripts under helper_scripts/hellasgrid_submit.

distributed_knn's People

Contributors

dkarageo avatar

Stargazers

 avatar  avatar  avatar  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.