Skip to content

Commit 6853024

Browse files
author
Jaime Arteaga
authored
[SYCL][Test E2E] Add stype to L0 structs (#9801)
device_has_aspect_atomic64_level_zero.cpp interop-level-zero-interop-task-mem-buffer.cpp level_zero_uuid.cpp were missing to set L0 stype for a properties struct, which would genereate an error in L0 validation layer when enabled with ZE_DEBUG=6. Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
1 parent fbbfe6d commit 6853024

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

sycl/test-e2e/AtomicRef/device_has_aspect_atomic64_level_zero.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ int main() {
1212
device Dev = Queue.get_device();
1313
bool Result;
1414
ze_device_module_properties_t Properties{};
15+
Properties.stype = ZE_STRUCTURE_TYPE_DEVICE_MODULE_PROPERTIES;
1516
zeDeviceGetModuleProperties(get_native<backend::ext_oneapi_level_zero>(Dev),
1617
&Properties);
1718
if (Properties.flags & ZE_DEVICE_MODULE_FLAG_INT64_ATOMICS)

sycl/test-e2e/Plugin/interop-level-zero-interop-task-mem-buffer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ int main() {
3030
void *device_ptr =
3131
ih.get_mem<backend::ext_oneapi_level_zero>(buffer_acc);
3232
ze_memory_allocation_properties_t memAllocProperties{};
33+
memAllocProperties.stype =
34+
ZE_STRUCTURE_TYPE_MEMORY_ALLOCATION_PROPERTIES;
3335
ze_result_t res = zeMemGetAllocProperties(
3436
ze_context, device_ptr, &memAllocProperties, nullptr);
3537
assert(res == ZE_RESULT_SUCCESS);

sycl/test-e2e/Plugin/level_zero_uuid.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ int main() {
2323

2424
auto zedev = sycl::get_native<sycl::backend::ext_oneapi_level_zero>(dev);
2525
ze_device_properties_t device_properties{};
26+
device_properties.stype = ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES;
2627
zeDeviceGetProperties(zedev, &device_properties);
2728
std::stringstream uuid_l0;
2829
for (int i = 0; i < ZE_MAX_DEVICE_UUID_SIZE; ++i)

0 commit comments

Comments
 (0)