Skip to content

Commit 0c8f532

Browse files
authored
test_harness_device: add CopyOffloadIncrementValue query (#990)
Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
1 parent f4d37bb commit 0c8f532

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

utils/test_harness/include/test_harness/test_harness_device.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ ze_external_semaphore_ext_handle_t
110110
import_external_semaphore(ze_device_handle_t device,
111111
const ze_external_semaphore_ext_desc_t *desc);
112112
void release_external_semaphore(ze_external_semaphore_ext_handle_t semaphore);
113-
113+
void get_aggregated_copy_offload_increment_value(ze_device_handle_t device,
114+
uint32_t *value);
114115
}; // namespace level_zero_tests
115116
#endif

utils/test_harness/src/test_harness_device.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,16 @@ import_external_semaphore(ze_device_handle_t device,
490490
EXPECT_NE(semaphore, nullptr);
491491
return semaphore;
492492
}
493+
493494
void release_external_semaphore(ze_external_semaphore_ext_handle_t semaphore) {
494495
EXPECT_ZE_RESULT_SUCCESS(zeDeviceReleaseExternalSemaphoreExt(semaphore));
495496
}
496497

498+
void get_aggregated_copy_offload_increment_value(ze_device_handle_t device,
499+
uint32_t *value) {
500+
auto device_initial = device;
501+
EXPECT_ZE_RESULT_SUCCESS(
502+
zeDeviceGetAggregatedCopyOffloadIncrementValue(device, value));
503+
EXPECT_EQ(device, device_initial);
504+
}
497505
}; // namespace level_zero_tests

0 commit comments

Comments
 (0)