Skip to content

Commit 036ca25

Browse files
NumDevice as an output var not read
Signed-off-by: Zhang, Winston <[email protected]>
1 parent 17273a5 commit 036ca25

File tree

1 file changed

+1
-1
lines changed
  • unified-runtime/source/adapters/level_zero

1 file changed

+1
-1
lines changed

unified-runtime/source/adapters/level_zero/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ ur_result_t urDeviceGet(
167167
std::copy_n(MatchedDevices.begin(), N, Devices);
168168

169169
if (NumDevices) {
170-
if (*NumDevices == 0 || (!Devices))
170+
if (NumDevices)
171171
*NumDevices = ZeDeviceCount;
172172
else
173173
*NumDevices = N;

0 commit comments

Comments
 (0)