Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamiewarb/parallelcwk1
The first coursework for Final Year Bath Comp Sci, Parallel Unit
https://github.com/jamiewarb/parallelcwk1
Last synced: 10 days ago
JSON representation
The first coursework for Final Year Bath Comp Sci, Parallel Unit
- Host: GitHub
- URL: https://github.com/jamiewarb/parallelcwk1
- Owner: Jamiewarb
- Created: 2015-11-24T14:15:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-24T14:23:35.000Z (about 9 years ago)
- Last Synced: 2024-11-07T03:46:58.383Z (about 2 months ago)
- Language: C
- Size: 470 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parallel Computing - Coursework 1
The first coursework for Final Year Bath Comp Sci, Parallel Computing unitThis zip contains 2 folders:
Source, TestingSource - the actual compilable .c code
Testing - the testing document and the values utilised by it (code run times etc)Compile sequential.c or parallel.c using gcc -Wall -pthread filename.c -lrt
Run the program using ./filename, and possible flags:
-debug : The level of debug output: 0, 1, 2
-c : number of threads to use for the program
-d : length of the square array
-p : how precise the relaxation needs to be before the program ends
-g : (1 or 0) 0 to use values in from file specified in program, 1 to generate them randomly
-f : string, path of the textfile to useFor example: ./parallel -debug 2 -c 16 -d 500 -p 0.01 -g 0 -f values.txt
The values must first be computed initially by editing numbergen.c to specify dimension size and output file, then compiling and running. Computing a file with dimension 1000 can be used by any program for any dimension <= 1000, but not for those with > 1000.