Skip to content

Commit 23c8538

Browse files
Copilotvlkale
andcommitted
Simplify request_tool_settings and use consistent parameter style
Co-authored-by: vlkale <11766050+vlkale@users.noreply.github.com>
1 parent 231b948 commit 23c8538

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

profiling/vtune-connector/kp_vtune_connector.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ static bool tool_globfences = false;
4545

4646
void kokkosp_request_tool_settings(const uint32_t,
4747
Kokkos_Tools_ToolSettings* settings) {
48-
if (tool_globfences) {
49-
settings->requires_global_fencing = true;
50-
} else {
51-
settings->requires_global_fencing = false;
52-
}
48+
settings->requires_global_fencing = tool_globfences;
5349
}
5450

5551
void kokkosp_init_library(const int loadSeq, const uint64_t interfaceVer,
@@ -198,9 +194,8 @@ void kokkosp_profile_event(const char* name) {
198194
__itt_event_start(event);
199195
}
200196

201-
void kokkosp_begin_fence(const char* name, const uint32_t deviceId,
197+
void kokkosp_begin_fence(const char* name, const uint32_t /*deviceId*/,
202198
uint64_t* handle) {
203-
(void)deviceId; // Unused parameter - VTune doesn't require device ID
204199
__itt_domain* domain = __itt_domain_create(name);
205200
domain->flags = 1;
206201
__itt_frame_begin_v3(domain, NULL);

0 commit comments

Comments
 (0)