This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:spring2016:sysprog:projects:pnc0 [2016/02/23 15:43] – created wedge | haas:spring2016:sysprog:projects:pnc0 [2016/02/25 18:12] (current) – [Check Results] wedge | ||
---|---|---|---|
Line 286: | Line 286: | ||
<cli> | <cli> | ||
- | lab46: | + | lab46: |
============================================ | ============================================ | ||
- | | + | |
============================================ | ============================================ | ||
- | | + | |
- | 16 0.000002 | + | 16 0.000002 |
- | 32 0.000003 | + | 32 0.000003 |
- | 64 0.000005 | + | 64 0.000005 |
- | | + | |
- | | + | |
- | | + | |
- | 1024 0.000540 | + | 1024 0.000540 |
- | 2048 0.001779 | + | 2048 0.001761 |
- | 4096 0.006087 | + | 4096 0.006115 |
- | 8192 0.021272 | + | 8192 0.021259 |
- | | + | |
- | | + | |
- | | + | |
- | 131072 | + | 131072 |
- | 262144 | + | 262144 |
+ | 524288 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
============================================ | ============================================ | ||
- | lab46: | + | |
+ | ============================================ | ||
+ | lab46: | ||
</ | </ | ||
- | To mitigate errant values, each test is run 4 times, and the resulting time is averaged. | + | For evaluation, each test is run 4 times, and the resulting time is averaged. During development, |
+ | |||
+ | If the runtime of a particular prime variant exceeds an upper threshold (likely to be set at 2 seconds), it will be omitted from further tests, and a series of dashes will instead appear in the output. | ||
If you don't feel like waiting, simply hit **CTRL-c** and the script will terminate. | If you don't feel like waiting, simply hit **CTRL-c** and the script will terminate. | ||
+ | In the example output above, my **primeopt** is playing with an implementation of the **6a+/-1** algorithm. | ||
+ | |||
+ | I also include a validation check- to ensure your prime programs are actually producing the correct list of prime numbers. If the check is successful, you will see " | ||
+ | |||
+ | If you'd like to experiment with other variations, the script also recognizes prime variants of the following names: | ||
+ | * primeopt0 (for an additional optimization) | ||
+ | * primeopt1 (and another) | ||
+ | * primeopt2 (if you'd like another entry for another optimization) | ||
+ | * primeopt3 (for yet another optimization) | ||
+ | * primeopt4 (and one more; hey, I want you to have nice things) | ||
=====Submission===== | =====Submission===== | ||
To successfully complete this project, the following criteria must be met: | To successfully complete this project, the following criteria must be met: |