Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wnkz/comp428-a2
COMP 428: Parallel Programming - ASSIGNMENT 2
https://github.com/wnkz/comp428-a2
Last synced: 3 days ago
JSON representation
COMP 428: Parallel Programming - ASSIGNMENT 2
- Host: GitHub
- URL: https://github.com/wnkz/comp428-a2
- Owner: wnkz
- Created: 2012-02-23T01:27:31.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-03-07T17:48:13.000Z (over 12 years ago)
- Last Synced: 2023-03-12T05:33:05.989Z (over 1 year ago)
- Language: C
- Size: 351 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README for COMP 428: Parallel Programming #
# Winter 2012 Assignment 2 ### Requirements
1. Each submission has to be accompanied by a MakeFile.
2. For Q1: Source file name should be: psrs.cpp or psrs.c . After compiled using MakeFile, the name of the executable file must be psrs. Any other name except the mentioned will not be considered.
3. For Q2: source file name should be: pqsort.cpp or pqsort.c . After compiled using MakeFile, the name of executable file must be pqsort. Any other name except the mentioned will not be considered.
4. Program must be well commented.
5. Report must be submitted in pdf format only. Name of file: assignment2.pdf
6. To compare performances of Sequential and Parallel versions, both must use same time measurement unit (e.g., one cannot be in cycles and other in ms). Time unit should be in milliseconds.
7. Program has to take input from an input file and produce the output to an output file.
8: Input file name: input.txt
9. Input file Format: Input file contains integers separated by comma (,)
10. Output file name: output.txt
11. Output Format: sorted numbers are separated by comma (,)## Compiling ##
*Release*
`make release`
*Debug*
`make debug`
Executables will be in the `bin` folder.
## Generate numbers ##
There is two scripts in the `tools` folder to help you generate numbers.
* To generate 100 numbers between 0 and 1000
`tools/generatenumbers.sh`
* To generate N numbers between 0 and 1000
`tools/generatenumbers.sh N`
* To generate N numbers between 0 and Z
`tools/generatenumbers.sh N Z`
* To generate N numbers between X and Z
`tools/generatenumbers.sh N Z X`
The Perl version of this script works the same way except it generates *unique* numbers.
To write those numbers into a file, simply use a redirection, for example:
`tools/generatenumbers.sh > input.txt`