From e57dbb684fbc8f1380d50bb0414071acaf050a0d Mon Sep 17 00:00:00 2001 From: Vlad Sytchenko Date: Tue, 14 Apr 2020 16:13:14 -0400 Subject: [PATCH] Revert "(SWDEV-210228)" This reverts commit 2a223ecec637842b55a688c38305ed48fa396459. Change-Id: I1e24ce384ae4cc7b39b019dac328e17cca687d38 --- rocclr/device/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/device/device.cpp b/rocclr/device/device.cpp index 7d91b0d0be..cafff5f3ea 100644 --- a/rocclr/device/device.cpp +++ b/rocclr/device/device.cpp @@ -399,7 +399,7 @@ bool Device::getDeviceIDs(cl_device_type deviceType, uint32_t numEntries, cl_dev uint32_t* numDevices, bool offlineDevices) { if (numDevices != nullptr && devices == nullptr) { *numDevices = (uint32_t)amd::Device::numDevices(deviceType, offlineDevices); - return true; + return (*numDevices > 0) ? true : false; } assert(devices != nullptr && "check the code above");