mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
performance: enable USM pooling on L0/LNL
Related-To: NEO-16382 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a45a4ab44e
commit
5570635226
@@ -55,12 +55,12 @@ bool ProductHelperHw<gfxProduct>::isMisalignedUserPtr2WayCoherent() const {
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::isHostUsmPoolAllocatorSupported() const {
|
||||
return ApiSpecificConfig::OCL == ApiSpecificConfig::getApiType();
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::isDeviceUsmPoolAllocatorSupported() const {
|
||||
return ApiSpecificConfig::OCL == ApiSpecificConfig::getApiType();
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -141,16 +141,8 @@ LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorS
|
||||
}
|
||||
|
||||
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsHostDeviceUsmPoolAllocatorSupportedThenCorrectValueIsReturned) {
|
||||
{
|
||||
VariableBackup<ApiSpecificConfig::ApiType> backup(&apiTypeForUlts, ApiSpecificConfig::OCL);
|
||||
EXPECT_TRUE(productHelper->isHostUsmPoolAllocatorSupported());
|
||||
EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported());
|
||||
}
|
||||
{
|
||||
VariableBackup<ApiSpecificConfig::ApiType> backup(&apiTypeForUlts, ApiSpecificConfig::L0);
|
||||
EXPECT_FALSE(productHelper->isHostUsmPoolAllocatorSupported());
|
||||
EXPECT_FALSE(productHelper->isDeviceUsmPoolAllocatorSupported());
|
||||
}
|
||||
EXPECT_TRUE(productHelper->isHostUsmPoolAllocatorSupported());
|
||||
EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported());
|
||||
}
|
||||
|
||||
LNLTEST_F(LnlProductHelper, givenProductHelperWhenIsMisalignedUserPtr2WayCoherentThenReturnTrue) {
|
||||
|
||||
Reference in New Issue
Block a user