Make simple kernel timer stdout in ascii text#323
Make simple kernel timer stdout in ascii text#323yasahi-hpc wants to merge 4 commits intokokkos:developfrom
Conversation
3c3e893 to
05e4ed8
Compare
|
I wouldn't be opposed to deprecate or remove the binary altogether but it would be good to hear reasons for that design decision in the first place. |
| switch (info->getKernelType()) { | ||
| case PARALLEL_FOR: typeStr = " (ParFor) "; break; | ||
| case PARALLEL_REDUCE: typeStr = " (ParRed) "; break; | ||
| case PARALLEL_SCAN: typeStr = " (ParScan) "; break; |
There was a problem hiding this comment.
should we use parallel_for etc to make it easier for users to map it to Kokkos parallel dispatch?
There was a problem hiding this comment.
I mean I just keep the original behavior from kp_reader.cpp.
|
Well, this is one of the tasks proposed by @crtrott |
…alize_library - Port print_ascii function from PR #323 to simple-kernel-timer - Modify kokkosp_finalize_library to use print_ascii by default - Add 7 death test files covering parallel_for, parallel_reduce, parallel_scan, region, and combinations with regions - All 17 tests pass (10 existing + 7 new) Co-authored-by: yasahi-hpc <57478230+yasahi-hpc@users.noreply.github.com>
| switch (info->getKernelType()) { | ||
| case PARALLEL_FOR: typeStr = " (ParFor) "; break; | ||
| case PARALLEL_REDUCE: typeStr = " (ParRed) "; break; | ||
| case PARALLEL_SCAN: typeStr = " (ParScan) "; break; |
|
@crtrott Thank you for approval. |
|
Was looking at your other PR with the tests now. What do you think? |
|
In my opinion, I would like to make this first and add tests in another PR. The PR with tests is fine with me, but there are certainly rooms to improve. |
This PR aims at making the default output of simple kernel timer into stdout in ascii.
For the original behavior, you need to set
KOKKOS_TOOLS_TIMER_BINARY = true.Simple example