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

Change-Id: I132fa424cf9bec608e5c8429e93d20e78b76c6f0
这个提交包含在:
kjayapra-amd 编写, Maneesh Gupta 于 2021-08-22 23:56:07 -07:00 提交
1 父节点 89b69638d1
当前提交 d2bf9f9b58
1 个文件已更改
+2 -1
+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.