Add isSpecialWorkgroupSizeRequired helper

Change-Id: Ic8d4471f48ed5f25eefa802444d0ea62ac0112da
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-4648
This commit is contained in:
Kamil Kopryk
2020-05-07 13:51:31 +02:00
committed by sys_ocldev
parent 7f2042ea22
commit 1dad22a12a
6 changed files with 40 additions and 5 deletions

View File

@@ -348,3 +348,12 @@ INSTANTIATE_TEST_CASE_P(wgs,
::testing::Combine(
::testing::ValuesIn(simdSizes),
::testing::ValuesIn(regionCases)));
TEST(WorkgroupSizeTest, WhenSetSpecialWorkgroupSizeIsCalledThenWorkgroupSizeIsSetTo1x1x1) {
size_t workgroupSize[3] = {};
setSpecialWorkgroupSize(workgroupSize);
EXPECT_EQ(1u, workgroupSize[0]);
EXPECT_EQ(1u, workgroupSize[1]);
EXPECT_EQ(1u, workgroupSize[2]);
}