Skip to content

Commit c7f34f3

Browse files
committed
[HIP] Make synchronized time optional
1 parent 66763bf commit c7f34f3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

source/adapters/hip/device.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,6 @@ ur_result_t UR_APICALL urDeviceGetGlobalTimestamps(ur_device_handle_t hDevice,
939939
if (pDeviceTimestamp) {
940940
UR_CHECK_ERROR(hipEventCreateWithFlags(&Event, hipEventDefault));
941941
UR_CHECK_ERROR(hipEventRecord(Event));
942-
}
943-
944-
if (pDeviceTimestamp) {
945942
UR_CHECK_ERROR(hipEventSynchronize(Event));
946943
float ElapsedTime = 0.0f;
947944
UR_CHECK_ERROR(hipEventElapsedTime(&ElapsedTime,

test/conformance/device/device_adapter_hip.match

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{{OPT}}urDeviceCreateWithNativeHandleTest.Success
22
{{OPT}}urDeviceGetTest.InvalidValueNumEntries
3+
{{OPT}}urDeviceGetGlobalTimestampTest.SuccessSynchronizedTime
34
{{OPT}}urDeviceGetInfoTest.Success/UR_DEVICE_INFO_SINGLE_FP_CONFIG
45
{{OPT}}urDeviceGetInfoTest.Success/UR_DEVICE_INFO_DOUBLE_FP_CONFIG
56
{{OPT}}urDeviceGetInfoTest.Success/UR_DEVICE_INFO_QUEUE_PROPERTIES

0 commit comments

Comments
 (0)