Skip to content

Commit

Permalink
Reset current subdevice counter
Browse files Browse the repository at this point in the history
Fixes #35

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
  • Loading branch information
Jemale committed Jan 10, 2024
1 parent 3f28718 commit c3ad0ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion perf_tests/ze_peak/src/ze_peak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ void L0Context::clean_xe() {
std::to_string(result));
}
if (verbose)
std::cout << "Context destroyed";
std::cout << "Context destroyed\n";
}

//---------------------------------------------------------------------
Expand Down Expand Up @@ -898,6 +898,7 @@ long double ZePeak::run_kernel(L0Context context, ze_kernel_handle_t &function,
synchronize_command_queue(context);
current_sub_device_id++;
}
current_sub_device_id = 0;
}
} else {
synchronize_command_queue(context);
Expand All @@ -915,6 +916,7 @@ long double ZePeak::run_kernel(L0Context context, ze_kernel_handle_t &function,
synchronize_command_queue(context);
current_sub_device_id++;
}
current_sub_device_id = 0;
}
} else {
synchronize_command_queue(context);
Expand Down Expand Up @@ -1069,6 +1071,7 @@ long double ZePeak::run_kernel(L0Context context, ze_kernel_handle_t &function,
synchronize_command_queue(context);
current_sub_device_id++;
}
current_sub_device_id = 0;
}
} else {
synchronize_command_queue(context);
Expand Down Expand Up @@ -1299,6 +1302,7 @@ long double ZePeak::run_kernel(L0Context context, ze_kernel_handle_t &function,
synchronize_command_queue(context);
current_sub_device_id++;
}
current_sub_device_id = 0;
}
} else {
synchronize_command_queue(context);
Expand Down Expand Up @@ -1480,6 +1484,7 @@ long double ZePeak::run_kernel(L0Context context, ze_kernel_handle_t &function,
synchronize_command_queue(context);
current_sub_device_id++;
}
current_sub_device_id = 0;
}
} else {
synchronize_command_queue(context);
Expand Down

0 comments on commit c3ad0ef

Please sign in to comment.