sysman: fix diagnostics handle creation

Resolves:LOCI-2601

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
This commit is contained in:
T J Vivek Vilvaraj 2021-09-29 20:14:30 +00:00 committed by Compute-Runtime-Automation
parent 25c71a6c13
commit 26779e2f34
1 changed files with 1 additions and 1 deletions

View File

@ -24,8 +24,8 @@ void DiagnosticsHandleContext::createHandle(ze_device_handle_t deviceHandle, con
}
void DiagnosticsHandleContext::init(std::vector<ze_device_handle_t> &deviceHandles) {
OsDiagnostics::getSupportedDiagTests(supportedDiagTests, pOsSysman);
for (const auto &deviceHandle : deviceHandles) {
OsDiagnostics::getSupportedDiagTests(supportedDiagTests, pOsSysman);
for (const std::string &diagTests : supportedDiagTests) {
createHandle(deviceHandle, diagTests);
}