Skip to content
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

Update tracer_ze_helpers.include.c #285

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ze/tracer_ze_helpers.include.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,9 +1053,9 @@ static void readCopyE(uint32_t driverIdx, uint32_t deviceIdx, copyEngineData *co
}

static void thapi_sampling_energy() {
uint64_t ts_us;
uint64_t energy_uj;
uint32_t frequency;
uint64_t ts_us = 0;
uint64_t energy_uj = 0;
uint32_t frequency = 0;
for (uint32_t driverIdx = 0; driverIdx < _sampling_driverCount; driverIdx++) {
for (uint32_t deviceIdx = 0; deviceIdx < _sampling_deviceCount[driverIdx]; deviceIdx++) {
if (tracepoint_enabled(lttng_ust_ze_sampling, gpu_frequency)){
Expand Down