From f9d47c1c246fb360afef73bab49717e6c6c64da5 Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Tue, 5 Nov 2024 07:03:39 +0100 Subject: [PATCH] Corrections due to code review --- test_conformance/basic/test_work_item_functions.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test_conformance/basic/test_work_item_functions.cpp b/test_conformance/basic/test_work_item_functions.cpp index 99922f9caf..56370f7bd8 100644 --- a/test_conformance/basic/test_work_item_functions.cpp +++ b/test_conformance/basic/test_work_item_functions.cpp @@ -361,7 +361,7 @@ struct TestWorkItemFnsOutOfRange : public TestWorkItemBase outOfRangeWorkItemKernelCode) {} - virtual cl_int SetUp(const char *kernel_source) override + cl_int SetUp(const char *kernel_source) override { std::ostringstream sstr; std::string program_source; @@ -392,7 +392,7 @@ struct TestWorkItemFnsOutOfRange : public TestWorkItemBase } - virtual cl_int Validate(const cl_uint dim) + cl_int Validate(const cl_uint dim) { cl_uint threads_to_verify = 1; for (size_t j = 0; j < dim; j++) threads_to_verify *= threads[j]; @@ -507,9 +507,9 @@ struct TestWorkItemFnsOutOfRange : public TestWorkItemBase for (size_t dim = 1; dim <= 3; dim++) { - cl_uint local_workgroup_size[3] = { maxWorkItemSizes[0], - maxWorkItemSizes[1], - maxWorkItemSizes[2] }; + size_t local_workgroup_size[3] = { maxWorkItemSizes[0], + maxWorkItemSizes[1], + maxWorkItemSizes[2] }; // check if maximum work group size for current dimention is not // exceeded cl_uint work_group_size = max_workgroup_size + 1;