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

make some hard-coded values into arguments #23

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

letrout
Copy link

@letrout letrout commented Jun 2, 2019

I ran into a situation where testing a newer CPU had larger L3 than the hard-coded SIZE (32MB). Rather than simply change this value in the code, I made it an argument so it can be be varied at runtime. While I was in there I did the same with BLOCKSIZE, LATBENCH_COUNT, and latbench_size for additional runtime flexibility. The original hard-coded values are used as defaults.

Joel Luth added 10 commits May 8, 2019 22:39
For clarity in how the test was run, print the buffer size and latency count parameters in the test output
add arguments for buffer size, latency size, latency count. Use the #deifnes as defaults
clang-8 complained about this missing when building in a FreeBSD cross-compiler
clang-8 complains about this
repo owner should select the version number if accepted
I plan to increment version to 0.5.0 for this change
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

Successfully merging this pull request may close these issues.

1 participant