Assignment 9: timing results file format

Assignment 9: timing results file format

by Karththigan Pushparaj -
Number of replies: 3


Hi I just would like a little clarification on what the output file should be. The instructions initially say:

  • The script should store calculation in a table of thread numbers & corresponding runtimes

But later it says we need to submit:

  1. The timing results of the parallelized code as a function of the number of threads, and the corresponding speed-ups.

I'm just wondering if we are mean to include runtimes (i.e. raw wall clock time) or speed ups (i.e. serial time / parallel time) in our results.txt file? That is, which one of the following would be the correct output file format?

  1. # of Threads | Runtime
  2. # of Threads | Speed up
  3. # of Threads | Runtime | Speed up

In reply to Karththigan Pushparaj

Re: Assignment 9: timing results file format

by Ramses van Zon -
#3 is correct. The script should produce the first two columns, and it is nice if it can do the third column, but it is acceptable if you compute the speedups by hand afterwards.
In reply to Ramses van Zon

Re: Assignment 9: timing results file format

by Karththigan Pushparaj -
Thank you!

I just had one more question: can I also use Python to parse my results.txt file, and do the plotting/fitting to Amdahl's law and if so, do we need to submit the file alongside the main code?
In reply to Karththigan Pushparaj

Re: Assignment 9: timing results file format

by Ramses van Zon -
You don't need to, but it would be nice to include it.