Skip to content

Commit 0583413

Browse files
Remove error for unused parameter
Remove error for unused parameter from clGetKernelMaxConcurrentWorkGroupCountINTEL Resolves: NEO-7044 Signed-off-by: Neumann, Marta <marta.neumann@intel.com>
1 parent bee5f91 commit 0583413

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

opencl/source/api/api.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5946,11 +5946,6 @@ cl_int CL_API_CALL clGetKernelMaxConcurrentWorkGroupCountINTEL(cl_command_queue
59465946
return retVal;
59475947
}
59485948

5949-
if (globalWorkOffset == nullptr) {
5950-
retVal = CL_INVALID_GLOBAL_OFFSET;
5951-
return retVal;
5952-
}
5953-
59545949
if (localWorkSize == nullptr) {
59555950
retVal = CL_INVALID_WORK_GROUP_SIZE;
59565951
return retVal;

opencl/test/unit_test/api/cl_get_kernel_max_concurrent_work_group_count_intel_tests.inl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2021 Intel Corporation
2+
* Copyright (C) 2020-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -49,10 +49,6 @@ TEST_F(clGetKernelMaxConcurrentWorkGroupCountTests, GivenInvalidInputWhenCalling
4949
globalWorkOffset, localWorkSize, &suggestedWorkGroupCount);
5050
EXPECT_EQ(CL_INVALID_WORK_DIMENSION, retVal);
5151

52-
retVal = clGetKernelMaxConcurrentWorkGroupCountINTEL(pCommandQueue, pMultiDeviceKernel, workDim,
53-
nullptr, localWorkSize, &suggestedWorkGroupCount);
54-
EXPECT_EQ(CL_INVALID_GLOBAL_OFFSET, retVal);
55-
5652
retVal = clGetKernelMaxConcurrentWorkGroupCountINTEL(pCommandQueue, pMultiDeviceKernel, workDim,
5753
globalWorkOffset, nullptr, &suggestedWorkGroupCount);
5854
EXPECT_EQ(CL_INVALID_WORK_GROUP_SIZE, retVal);
@@ -71,6 +67,11 @@ TEST_F(clGetKernelMaxConcurrentWorkGroupCountTests, GivenVariousInputWhenGetting
7167
size_t expectedMaxConcurrentWorkGroupCount = pKernel->getMaxWorkGroupCount(workDim, localWorkSize, pCommandQueue);
7268
EXPECT_EQ(expectedMaxConcurrentWorkGroupCount, maxConcurrentWorkGroupCount);
7369

70+
retVal = clGetKernelMaxConcurrentWorkGroupCountINTEL(pCommandQueue, pMultiDeviceKernel, workDim, nullptr, localWorkSize,
71+
&maxConcurrentWorkGroupCount);
72+
EXPECT_EQ(CL_SUCCESS, retVal);
73+
EXPECT_EQ(expectedMaxConcurrentWorkGroupCount, maxConcurrentWorkGroupCount);
74+
7475
auto pKernelWithExecutionEnvironmentPatch = MockKernel::create(pCommandQueue->getDevice(), pProgram);
7576
auto kernelInfos = MockKernel::toKernelInfoContainer(pKernelWithExecutionEnvironmentPatch->getKernelInfo(), testedRootDeviceIndex);
7677
MultiDeviceKernel multiDeviceKernelWithExecutionEnvironmentPatch(MockMultiDeviceKernel::toKernelVector(pKernelWithExecutionEnvironmentPatch), kernelInfos);

0 commit comments

Comments
 (0)