Giter Site home page Giter Site logo

anilshanbhag / htm-hashjoin Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.25 MB

License: MIT License

C++ 24.17% CMake 0.04% C 30.10% Shell 15.60% Makefile 10.71% M4 0.43% Objective-C 0.10% Batchfile 0.01% XSLT 0.59% Groff 1.09% CSS 0.08% Perl 0.08% HTML 6.11% Python 0.02% TeX 10.88%

htm-hashjoin's Introduction

HTM Hash Join

Implements an adaptive multi-core hash join based on hardware transactional memory (HTM-Adaptive).

The join does > 2x better than a radix join (PRJ) on data with locality and with low-overhead switches to radix join in the absence of locality.

Hash Join Performance

For details, see paper link

Also contains implementations of:

  • hash join using a global c++ 11 atomics-based hash table
  • parallel radix join based hash join (PRJ)
  • hash join using a global hash table which uses locks (NPJ)

Installation

Note that running HTM hash join requires hardware that supports Hardware Transactional Memory via Intel TSX. Use this tool to check if your hardware has TSX.

Make sure you have Intel TBB downloaded.

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH=/path/to/FindTBB
make 

A binary main created is used to run all the different algorithms.

./main --algo <algo>
       --rSize <size of build side>
       --transactionSize <number of hash table inserts per transaction>
       --dataDistr <data distribution>
       --shuffleRange <shuffle window (only used if dataDistr == local_shuffle)>
       --numPartitions <number of partitions>

algo = htm, nocc, atomic
dataDistr = uniform, sorted, shuffle, local_shuffle

Contact

In case of issues, file an issue or email: anils [at] mit [dot] edu

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.