From 263173914fa86bb8cdd6c9543e64789d695fccbd Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Sat, 20 Feb 2021 16:39:13 -0500 Subject: [PATCH] SWDEV-86035 - [PAL] Fix runtime init The settings need to be populated ASAP, otherwise the dummy context is not created properly. Change-Id: Iede0066308bb601dc68164e894775a646a0372f1 --- rocclr/device/pal/paldevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rocclr/device/pal/paldevice.cpp b/rocclr/device/pal/paldevice.cpp index 11d376d902..f739446cab 100644 --- a/rocclr/device/pal/paldevice.cpp +++ b/rocclr/device/pal/paldevice.cpp @@ -906,6 +906,9 @@ bool Device::create(Pal::IDevice* device) { return false; } + // Fill the device info structure + fillDeviceInfo(properties(), heaps_, 16 * Ki, numComputeEngines(), numExclusiveComputeEngines()); + if (!ValidateComgr()) { LogError("Code object manager initialization failed!"); return false; @@ -938,9 +941,6 @@ bool Device::create(Pal::IDevice* device) { return false; } - // Fill the device info structure - fillDeviceInfo(properties(), heaps_, 16 * Ki, numComputeEngines(), numExclusiveComputeEngines()); - #ifdef DEBUG std::stringstream message; message << info_.name_;