Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part 3. Why constrain both max time and n? #56

Closed
JayRod12 opened this issue Oct 24, 2017 · 1 comment
Closed

Part 3. Why constrain both max time and n? #56

JayRod12 opened this issue Oct 24, 2017 · 1 comment

Comments

@JayRod12
Copy link

I'm a little bit confused with what we're expected to do for part 3.
The spec says to plot K=[1..16] vs time for n=[64,256,1024,4096] and it also says that the test runs should go up to more than 30 seconds. But as far as I understand, if we only plot the values of K vs time for the proposed values of n, then the time will a lot smaller than 30 seconds for the largest n value (i.e. for n=4096. For this n, I see an associated execution time of ~0.5 seconds when K=6 or so).

I might be missing the point, could someone clear things up?

Thanks!

@m8pple
Copy link
Contributor

m8pple commented Oct 24, 2017

Increasing the time limit is mainly because some older machines and laptops will be significantly
slower, and may take more than the default of 10 seconds to get up to 4096, especially
when K=1. Those with mobile chips with small caches are particularly likely to see slow times.

So it is not saying it will need 30 seconds, but more that it may need up to 30 seconds.

I think any machine will be able to do it for n=4096 in <30 seconds with a reasonable
value of K; it is the K=1 case that is sometimes most problematic.

On faster machines (and on different compilers), it may take substantially less time, particularly for K>2.
In those circumstances you might want to include n=16384 as well, though that requires a time
limit more than 30 seconds on my desktop for K=1. I chose the numbers with ratios of 4 to try
to show how substantial the quadratic scaling is, and also to try to get big and small numbers
on the same graph.

I'll try to reword it to convey that idea more clearly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants