Giter Club home page Giter Club logo

cudm's Introduction

cuDM

cuDM = CUDA + IDM

To practice different parallel programming models (OpenMP and CUDA), we (Kurmanbek and Ozan) implemented the cuDM, it is a CUDA-accelerated IDM feature extractor.

How to Use

  • Choose a version to use. The openmp folder contains pure OpenMP implementation and cuda_openmp folder includes a hybrid (OpenMP + CUDA) implementation. If you don't want to use any parallel version, you can opt for the serial implementation available under the serial directory.
  • Once you cded into one of the above directories, build the code using make command. If you prefer to use the CUDA version, make sure that your graphics card supports CUDA, and nvcc is installed with an OpenMP support. For pure OpenMP version use g++ compiler which supports OpenMP.
  • Now type ./cudm to execute. Enjoy recognizing sketches! Please note that there are some example sketches in the benchmark_sketches directory to check if your executable is working properly.

Which version is the fastest?

One would expect CUDA to be the fastest. However, a vectorized representation of sketches is considered as a "small data" (in relation to the image representation), therefore transferring it to the GPU memory becomes a major bottleneck. The fastest versions are pure OpenMP and serial implementations (sometimes there might be some thread startup delays on the OpenMP one). All in all, it's good to note that all of these versions are faster than the Python implementation.

Feel free to open an issue if you find a bug.

cudm's People

Contributors

ozymaxx avatar kurmich avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

ozymaxx

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.