Skip to content

Commit 2045104

Browse files
committed
[HIP] Add missing queue properties
This fixes the UR CTS queue tests
1 parent 4d7d3ae commit 2045104

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/adapters/hip/queue.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urQueueGetInfo(ur_queue_handle_t hQueue,
191191
});
192192
return ReturnValue(IsReady);
193193
}
194+
case UR_QUEUE_INFO_DEVICE_DEFAULT:
195+
case UR_QUEUE_INFO_SIZE:
196+
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
194197
default:
195-
break;
198+
return UR_RESULT_ERROR_INVALID_ENUMERATION;
196199
}
197-
return {};
198200
}
199201

200202
UR_APIEXPORT ur_result_t UR_APICALL urQueueRetain(ur_queue_handle_t hQueue) {
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
urQueueGetInfoTestWithInfoParam.Success/AMD_HIP_BACKEND___{{.*}}___UR_QUEUE_INFO_DEVICE_DEFAULT
2-
urQueueGetInfoTestWithInfoParam.Success/AMD_HIP_BACKEND___{{.*}}___UR_QUEUE_INFO_SIZE

0 commit comments

Comments
 (0)