-
Notifications
You must be signed in to change notification settings - Fork 407
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
Clean up benchmarks/gups, add permuted index mode #6378
Conversation
int64_t data = 33554432; | ||
int64_t repeats = 10; | ||
bool useAtomics = false; | ||
AccessPattern pattern = AccessPattern::random; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we either make the default atomics == false pattern = permute, or atomics = true and pattern = random?
That would avoid race conditions in the default mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RandomAccess benchmark in the HPC Challenge tolerates some amount of errors, so it might not be surprising to people if there are race conditions in our default GUPS execution. I'm happy to change it though if anyone has a strong opinion.
9d58323
to
75993cf
Compare
@@ -51,6 +51,7 @@ MACRO(KOKKOS_PROCESS_SUBPACKAGES) | |||
ADD_SUBDIRECTORY(simd) | |||
if (NOT KOKKOS_HAS_TRILINOS) | |||
ADD_SUBDIRECTORY(example) | |||
ADD_SUBDIRECTORY(benchmarks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine but just noting that we can refactor that in the future.
Instead of defining these KOKKOS_ADD_*_DIRECTORIES
macros we could just guard the adding the directories here.
75993cf
to
ef6591b
Compare
|
* Use stdlib for time and random numbers * Use Kokkos default spaces rather than explicit spaces * add a permutation mode
f741c50
to
e743017
Compare
I made the optional changes and squashed into 2 commits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with me.
Retest this please. |
Failed tests due to disk full. |
Kokkos_ENABLE_BENCHMARKS
is setSample executions
@simongdg