Skip to content

Uses the mpi library to encrypt/decrypt an input from the user.

License

Notifications You must be signed in to change notification settings

moranski7/CIS3090A2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Programming: Word Scramble

Intro

Uses Message Passing Interface (mpi) library for parallelism optimization. Process 0 gets a single word from the user and encrypts the word by scrambling it. Once encrypted the other processes will attempt to decrypt the word by guessing it. All guesses are verified through the os dictionary file. The number of processes in the program are determined at execution time by the user.

Requirements

  • OS: Unix (Ubuntu preferred)
  • c compiler (gcc prefered)
  • mpi (sudo apt install mpich)

To Run

To compile both program, move into the main directory where the source code is located and type make. The makefile should compile both programs with no warnings.

Run program by typing in: mpiexec -n # ./a2

  • mpiexec = Runs an MPI program.
  • -n = Specify the number of processes to use
  • # = the number of processes to use.
  • ./a2 = the program being run.

To run the program with preset command line arguements type in:

  • make run for
  • make run3 for mpiexec -n 4 ./a2
  • make run4 for mpiexec -n 5 ./a2

To Clean

To clean up the project, move into the main directory and type make clean to clean up the entire project.

Note

Program may not run on Windows since the program requires access to the dictionary under: /usr/share/dict/words. Program does work on Ubuntu and Mac's OS X.

About

Uses the mpi library to encrypt/decrypt an input from the user.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published