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:
parent
25c71a6c13
commit
26779e2f34
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue