diff --git a/conformance_tests/core/test_copy/src/test_copy.cpp b/conformance_tests/core/test_copy/src/test_copy.cpp index 8ff0b8c9..c8e2d440 100644 --- a/conformance_tests/core/test_copy/src/test_copy.cpp +++ b/conformance_tests/core/test_copy/src/test_copy.cpp @@ -1722,11 +1722,11 @@ void zeCommandListAppendMemoryCopyTests:: void *memory = lzt::allocate_device_memory_with_allocator_selector( size_in_bytes(host_memory), is_shared_system); - append_memory_copy(cmd_bundle.list, memory, host_memory.data(), - size_in_bytes(host_memory), nullptr); - if (is_immediate) { - lzt::synchronize_command_list_host(cmd_bundle.list, UINT64_MAX); - } + lzt::append_memory_copy(cmd_bundle.list, memory, host_memory.data(), + size_in_bytes(host_memory), nullptr); + lzt::close_command_list(cmd_bundle.list); + lzt::execute_and_sync_command_bundle(cmd_bundle, + std::numeric_limits().max()); lzt::destroy_command_bundle(cmd_bundle); lzt::free_memory_with_allocator_selector(memory, is_shared_system); } @@ -1812,11 +1812,11 @@ void zeCommandListAppendMemoryCopyTests:: ze_event_handle_t hEvent = nullptr; ep.create_event(hEvent); - append_memory_copy(cmd_bundle.list, memory, host_memory.data(), - size_in_bytes(host_memory), hEvent); - if (is_immediate) { - lzt::synchronize_command_list_host(cmd_bundle.list, UINT64_MAX); - } + lzt::append_memory_copy(cmd_bundle.list, memory, host_memory.data(), + size_in_bytes(host_memory), hEvent); + lzt::close_command_list(cmd_bundle.list); + lzt::execute_and_sync_command_bundle(cmd_bundle, + std::numeric_limits().max()); ep.destroy_event(hEvent); lzt::destroy_command_bundle(cmd_bundle); lzt::free_memory_with_allocator_selector(memory, is_shared_system); @@ -1913,12 +1913,12 @@ void zeCommandListAppendMemoryCopyTests:: ep.create_event(hEvent); auto hEvent_before = hEvent; lzt::signal_event_from_host(hEvent); - append_memory_copy(cmd_bundle.list, memory, host_memory.data(), - size_in_bytes(host_memory), nullptr, 1, &hEvent); + lzt::append_memory_copy(cmd_bundle.list, memory, host_memory.data(), + size_in_bytes(host_memory), nullptr, 1, &hEvent); ASSERT_EQ(hEvent, hEvent_before); - if (is_immediate) { - lzt::synchronize_command_list_host(cmd_bundle.list, UINT64_MAX); - } + lzt::close_command_list(cmd_bundle.list); + lzt::execute_and_sync_command_bundle(cmd_bundle, + std::numeric_limits().max()); ep.destroy_event(hEvent); lzt::destroy_command_bundle(cmd_bundle); lzt::free_memory_with_allocator_selector(memory, is_shared_system); @@ -2001,13 +2001,13 @@ void zeCommandListAppendMemoryCopyTests:: ep.create_event(hEvent); auto hEvent_before = hEvent; lzt::signal_event_from_host(hEvent); - append_memory_copy_region(cmd_bundle.list, memory, &dstRegion, 0, 0, - host_memory.data(), &srcRegion, 0, 0, nullptr, 1, - &hEvent); + lzt::append_memory_copy_region(cmd_bundle.list, memory, &dstRegion, 0, 0, + host_memory.data(), &srcRegion, 0, 0, nullptr, + 1, &hEvent); ASSERT_EQ(hEvent, hEvent_before); - if (is_immediate) { - lzt::synchronize_command_list_host(cmd_bundle.list, UINT64_MAX); - } + lzt::close_command_list(cmd_bundle.list); + lzt::execute_and_sync_command_bundle(cmd_bundle, + std::numeric_limits().max()); ep.destroy_event(hEvent); lzt::destroy_command_bundle(cmd_bundle); lzt::free_memory_with_allocator_selector(memory, is_shared_system);