From 466049474c0f457106100d5e8be04304271b54e7 Mon Sep 17 00:00:00 2001 From: Yilong Guo Date: Wed, 6 Aug 2025 00:14:35 +0800 Subject: [PATCH] Fix buffer size for mutable dispatch command buffer test (#2437) --- .../mutable_command_global_size.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_global_size.cpp b/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_global_size.cpp index 8fb6b643..3cfc4db1 100644 --- a/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_global_size.cpp +++ b/test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_global_size.cpp @@ -135,7 +135,7 @@ struct MutableDispatchGlobalSize : public InfoMutableCommandBufferTest for (size_t i = 0; i < num_elements; i++) if (i >= update_global_size && global_work_size != resultData[i]) { - log_error("Data failed to verify: update_global_size != " + log_error("Data failed to verify: global_work_size != " "resultData[%zu]=%d\n", i, resultData[i]); return TEST_FAIL; @@ -154,7 +154,7 @@ struct MutableDispatchGlobalSize : public InfoMutableCommandBufferTest size_t info_global_size = 0; const size_t update_global_size = 3; - const size_t sizeToAllocate = global_work_size; + const size_t sizeToAllocate = global_work_size * sizeof(cl_int); const size_t num_elements = sizeToAllocate / sizeof(cl_int); cl_mutable_command_khr command = nullptr; };