Parallel Programming - Tidied things up
authorSam Moore <sam@daedalus.(none)>
Sat, 8 Sep 2012 14:41:53 +0000 (22:41 +0800)
committerSam Moore <sam@daedalus.(none)>
Sat, 8 Sep 2012 14:41:53 +0000 (22:41 +0800)
commitc2c6a38870351a5702913ce8a97c25c51662a59c
treec912f49fa10260a2ee137397b91c89e0264775ee
parent0f1c535d8b786d3cf5b28231135fe1172571425f
Parallel Programming - Tidied things up

Since most of the single thread code can be reused, I put in symbolic links for the mthread version.
I added comments. The programs can be run without graphics. They can also output performance info.

Also wrote python script to get performance information and plot it.
I was going to do the OpenMP version, but got carried away with all the "tidying", so I haven't yet.

Curses.
13 files changed:
course/semester2/pprog/assignment1/get_data.py [new file with mode: 0755]
course/semester2/pprog/assignment1/mthread/Makefile [changed from file to symlink]
course/semester2/pprog/assignment1/mthread/graphics.c [changed from file to symlink]
course/semester2/pprog/assignment1/mthread/graphics.h [changed from file to symlink]
course/semester2/pprog/assignment1/mthread/main.c [changed from file to symlink]
course/semester2/pprog/assignment1/mthread/nbody.c
course/semester2/pprog/assignment1/mthread/nbody.h
course/semester2/pprog/assignment1/single-thread/Makefile
course/semester2/pprog/assignment1/single-thread/graphics.c
course/semester2/pprog/assignment1/single-thread/graphics.h
course/semester2/pprog/assignment1/single-thread/main.c
course/semester2/pprog/assignment1/single-thread/nbody.c
course/semester2/pprog/assignment1/single-thread/nbody.h

UCC git Repository :: git.ucc.asn.au