diff --git a/sycl/test-e2e/bindless_images/examples/example_1_1D_read_write.cpp b/sycl/test-e2e/bindless_images/examples/example_1_1D_read_write.cpp index 6b981bdd80636..9963481b237be 100644 --- a/sycl/test-e2e/bindless_images/examples/example_1_1D_read_write.cpp +++ b/sycl/test-e2e/bindless_images/examples/example_1_1D_read_write.cpp @@ -67,6 +67,9 @@ int main() { // Copy data written to imgOut to host q.ext_oneapi_copy(imgMemoryOut.get_handle(), dataOut.data(), desc); + // Ensure copying data from the device to host is finished before validate + q.wait_and_throw(); + // Cleanup sycl::ext::oneapi::experimental::destroy_image_handle(imgIn, q); sycl::ext::oneapi::experimental::destroy_image_handle(imgOut, q);