From 0466887cad2293b143ff9686a37dc7824d883118 Mon Sep 17 00:00:00 2001 From: Isaac Ault Date: Fri, 13 Dec 2024 13:35:18 +0000 Subject: [PATCH] Enqueue test data to match device_code. --- test/conformance/enqueue/urEnqueueKernelLaunch.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/conformance/enqueue/urEnqueueKernelLaunch.cpp b/test/conformance/enqueue/urEnqueueKernelLaunch.cpp index 7ffa072466..76260bbc9c 100644 --- a/test/conformance/enqueue/urEnqueueKernelLaunch.cpp +++ b/test/conformance/enqueue/urEnqueueKernelLaunch.cpp @@ -27,8 +27,10 @@ struct urEnqueueKernelLaunchKernelWgSizeTest : uur::urKernelExecutionTest { std::array global_size{32, 32, 32}; std::array global_offset{0, 0, 0}; - // This must match the size in fixed_wg_size.cpp - std::array wg_size{4, 4, 4}; + // This value correlates to work_group_size<8, 4, 2> in fixed_wg_size.cpp. + // In SYCL, the right-most dimension varies the fastest in linearization. + // In UR, this is on the left, so we reverse the order of these values. + std::array wg_size{2, 4, 8}; size_t n_dimensions = 3; }; UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urEnqueueKernelLaunchKernelWgSizeTest);