Skip to content

Commit 972377a

Browse files
committed
[HIP] Fix context devices property return value
This showed up in the UR CTS, it was returning a vector instead of the expected C array.
1 parent 689c8c8 commit 972377a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/adapters/hip/context.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ urContextGetInfo(ur_context_handle_t hContext, ur_context_info_t propName,
7878
case UR_CONTEXT_INFO_NUM_DEVICES:
7979
return ReturnValue(static_cast<uint32_t>(hContext->Devices.size()));
8080
case UR_CONTEXT_INFO_DEVICES:
81-
return ReturnValue(hContext->getDevices());
81+
return ReturnValue(hContext->getDevices().data(),
82+
hContext->getDevices().size());
8283
case UR_CONTEXT_INFO_REFERENCE_COUNT:
8384
return ReturnValue(hContext->getReferenceCount());
8485
case UR_CONTEXT_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES:
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
urContextCreateWithNativeHandleTest.Success/AMD_HIP_BACKEND___{{.*}}_
22
urContextCreateWithNativeHandleTest.SuccessWithOwnedNativeHandle/AMD_HIP_BACKEND___{{.*}}_
33
urContextCreateWithNativeHandleTest.SuccessWithUnOwnedNativeHandle/AMD_HIP_BACKEND___{{.*}}_
4-
urContextGetInfoTestWithInfoParam.Success/AMD_HIP_BACKEND___{{.*}}

0 commit comments

Comments
 (0)