Skip to content

Commit

Permalink
Add fence events to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidPoliakoff committed Sep 23, 2021
1 parent db98ff1 commit a5ac18e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions debugging/kernel-logger/kp_kernel_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ extern "C" void kokkosp_end_parallel_reduce(const uint64_t kID) {
printf("KokkosP: Execution of kernel %llu is completed.\n", kID);
}

extern "C" void kokkosp_begin_fence(const char* name, const uint32_t devID, uint64_t* kID) {
*kID = uniqID++;

printf("KokkosP: Executing fence on device %d with unique execution identifier %llu\n",
devID, *kID);

int level = kokkosp_print_region_stack();
kokkosp_print_region_stack_indent(level);

printf("%s\n", name);
}

extern "C" void kokkosp_end_fence(const uint64_t kID) {
printf("KokkosP: Execution of fence %llu is completed.\n", kID);
}

extern "C" void kokkosp_push_profile_region(char* regionName) {
printf("KokkosP: Entering profiling region: %s\n", regionName);

Expand Down

0 comments on commit a5ac18e

Please sign in to comment.