From f6bb77bf6d766ef0472693a99b20d80e400919b9 Mon Sep 17 00:00:00 2001 From: Attila Krasznahorkay Date: Fri, 10 Nov 2023 14:33:04 +0100 Subject: [PATCH] Switch filter test to using a host memory resource. On WSL2 asynchronous copying into shared memory (with an NVIDIA backend) does not work for some reason. Leading to a very weird crash. --- tests/sycl/test_sycl_jagged_containers.sycl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/sycl/test_sycl_jagged_containers.sycl b/tests/sycl/test_sycl_jagged_containers.sycl index 1f486acf..dd11e449 100644 --- a/tests/sycl/test_sycl_jagged_containers.sycl +++ b/tests/sycl/test_sycl_jagged_containers.sycl @@ -424,7 +424,8 @@ TEST_F(sycl_jagged_containers_test, filter) { .wait_and_throw(); // Copy the filtered output back into the host's memory. - vecmem::jagged_vector output(&m_mem); + vecmem::sycl::host_memory_resource host_resource(&m_queue); + vecmem::jagged_vector output(&host_resource); copy(output_data_device, output)->wait(); // Check the output. Note that the order of elements in the "inner vectors"