mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
refactor: remove redundant definitions KB/MB/GB
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
878a95aaf9
commit
6849d33326
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -42,7 +42,7 @@ class KernelSlmArgTest : public MultiRootDeviceWithSubDevicesFixture {
|
||||
|
||||
pKernelInfo->addArgLocal(2, 0x30, 0x10);
|
||||
|
||||
pKernelInfo->kernelDescriptor.kernelAttributes.slmInlineSize = 3 * KB;
|
||||
pKernelInfo->kernelDescriptor.kernelAttributes.slmInlineSize = 3 * MemoryConstants::kiloByte;
|
||||
|
||||
for (auto &rootDeviceIndex : this->context->getRootDeviceIndices()) {
|
||||
pKernel[rootDeviceIndex] = new MockKernel(program.get(), *pKernelInfo, *deviceFactory->rootDevices[rootDeviceIndex]);
|
||||
@@ -88,7 +88,7 @@ TEST_F(KernelSlmArgTest, WhenSettingSizeThenAlignmentOfHigherSlmArgsIsUpdated) {
|
||||
slmOffset = ptrOffset(crossThreadData, 0x30);
|
||||
EXPECT_EQ(0x200u, *slmOffset);
|
||||
|
||||
EXPECT_EQ(4 * KB, pKernel[rootDeviceIndex]->slmTotalSize);
|
||||
EXPECT_EQ(4 * MemoryConstants::kiloByte, pKernel[rootDeviceIndex]->slmTotalSize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,6 +107,6 @@ TEST_F(KernelSlmArgTest, GivenReverseOrderWhenSettingSizeThenAlignmentOfHigherSl
|
||||
slmOffset = ptrOffset(crossThreadData, 0x30);
|
||||
EXPECT_EQ(0x200u, *slmOffset);
|
||||
|
||||
EXPECT_EQ(4 * KB, pKernel[rootDeviceIndex]->slmTotalSize);
|
||||
EXPECT_EQ(4 * MemoryConstants::kiloByte, pKernel[rootDeviceIndex]->slmTotalSize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ HWCMDTEST_P(IGFX_GEN8_CORE, KernelSLMAndBarrierTest, GivenStaticSlmSizeWhenProgr
|
||||
DefaultWalkerType walkerCmd{};
|
||||
// define kernel info
|
||||
kernelInfo.kernelDescriptor.kernelAttributes.barrierCount = 1;
|
||||
kernelInfo.kernelDescriptor.kernelAttributes.slmInlineSize = GetParam() * KB;
|
||||
kernelInfo.kernelDescriptor.kernelAttributes.slmInlineSize = GetParam() * MemoryConstants::kiloByte;
|
||||
|
||||
MockKernel kernel(program.get(), kernelInfo, *pClDevice);
|
||||
ASSERT_EQ(CL_SUCCESS, kernel.initialize());
|
||||
|
||||
Reference in New Issue
Block a user