Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A MPI-based map-reduce program designed to take in some documents and to output frequency of words in every document.

License

NotificationsYou must be signed in to change notification settings

Vasile2k/ReduceMyMap

Repository files navigation

A MPI-based map-reduce program designed to take in some documents and to output frequency of words in every document.

Prerequisities

Usage

This should be obvious, but build the application and run the application you just built.The program should receive 2 arguments:

  • -i /path/to/input to tell the program where to read files from
  • -o /path/to/output to tell the program where to write files to

A temporary directory will also be created, but you should live with the idea that you can't change that easily.

The program will loop through all files in the directory, read them and apply the mapping to each one.

Description

Pseudocode for whatever the fuck happens here:

Master:
initTaskList();whilenotdone:checkForAvailableSlaves();ifnextTaskisbarrier:waitForAllSlavesToFinish();sendJobsToSlaves();killAllSlaves();
Servant:
whilenotdone:tellMasterImNotBusy();getNextJob();ifnextJobismap:map(document);ifnextJobisreduce:reduce(letter);ifnextJobisfinish:die();

License

Additional details

Contact

You can find mehere to ask questions.

About

A MPI-based map-reduce program designed to take in some documents and to output frequency of words in every document.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp