Skip to content

Single header Map-Reduce built on top of Intel TBB.

License

Notifications You must be signed in to change notification settings

acdemiralp/map_reduce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

  • Copy map_reduce.hpp to your project (which should have a TBB dependency).

Example Usage

  • Hello World:

    // Based on https://stackoverflow.com/questions/12375761/good-mapreduce-examples
    auto results = map_reduce<std::size_t, std::string, std::size_t>(
      {"what", "savannah", "the", "where", "research", "you", "then", "and", "when", "steve"},
      [ ] (const std::string& datum)
      {
        return datum.size();
      },
      [ ] (const std::size_t& key, const std::vector<const std::string&>& values)
      {
        return values.size();
      });

About

Single header Map-Reduce built on top of Intel TBB.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published