Skip to content

Commit

Permalink
nvtxFocusedConnector: applied clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Aug 24, 2023
1 parent 679bbd3 commit 2929fb0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ void kokkosp_init_library(
printf("-----------------------------------------------------------\n");
const char* tool_global_fences = getenv("KOKKOS_TOOLS_GLOBALFENCES");
if (NULL != tool_global_fences) {
tool_globfences = (atoi(tool_global_fences) != 0); // if user sets to 0, no global fences
tool_globfences =
(atoi(tool_global_fences) != 0); // if user sets to 0, no global fences
} else {
tool_globfences =
true; // default to true to be conservative for capturing state by tool
Expand Down Expand Up @@ -107,7 +108,7 @@ void kokkosp_finalize_library() {

void kokkosp_begin_parallel_for(const char* name, const uint32_t /*devID*/,
uint64_t* kID) {
*kID = nextKernelID++;
*kID = nextKernelID++;
currentKernel = getFocusedConnectorInfo(name, PARALLEL_FOR);
focusedConnectorExecuteStart();
}
Expand All @@ -118,7 +119,7 @@ void kokkosp_end_parallel_for(const uint64_t /*kID*/) {

void kokkosp_begin_parallel_scan(const char* name, const uint32_t /*devID*/,
uint64_t* kID) {
*kID = nextKernelID++;
*kID = nextKernelID++;
currentKernel = getFocusedConnectorInfo(name, PARALLEL_SCAN);
focusedConnectorExecuteStart();
}
Expand All @@ -129,7 +130,7 @@ void kokkosp_end_parallel_scan(const uint64_t /*kID*/) {

void kokkosp_begin_parallel_reduce(const char* name, const uint32_t /*devID*/,
uint64_t* kID) {
*kID = nextKernelID++;
*kID = nextKernelID++;
currentKernel = getFocusedConnectorInfo(name, PARALLEL_REDUCE);
focusedConnectorExecuteStart();
}
Expand Down

0 comments on commit 2929fb0

Please sign in to comment.