From d2bf9f9b582d83e6fd486dc95c0c2ea2b62e9716 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Fri, 28 May 2021 15:07:34 -0400 Subject: [PATCH] SWDEV-288690 - Updating the return value with roc::Device::init Change-Id: I132fa424cf9bec608e5c8429e93d20e78b76c6f0 --- rocclr/device/device.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocclr/device/device.cpp b/rocclr/device/device.cpp index 82d55b44e8..9e14d49698 100644 --- a/rocclr/device/device.cpp +++ b/rocclr/device/device.cpp @@ -390,7 +390,8 @@ bool Device::init() { // If returned false, error initializing HSA stack. // If returned true, either HSA not installed or HSA stack // successfully initialized. - if (!roc::Device::init()) { + ret = roc::Device::init(); + if (!ret) { // abort() commentted because this is the only indication // that KFD is not installed. // Ignore the failure and assume KFD is not installed.