SWDEV-288690 - Updating the return value with roc::Device::init

Change-Id: I132fa424cf9bec608e5c8429e93d20e78b76c6f0


[ROCm/clr commit: d2bf9f9b58]
Этот коммит содержится в:
kjayapra-amd
2021-05-28 15:07:34 -04:00
коммит произвёл Maneesh Gupta
родитель 88b7c2b990
Коммит 8f1e9bb054
+2 -1
Просмотреть файл
@@ -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.