mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Respect minimal SIMD size in aub tests
Change-Id: I9019cc9d5befad563d5a7f6c013523d18dc5c076 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
14cc57a078
commit
1c6abfb210
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -122,11 +122,16 @@ struct AUBHelloWorldIntegrateTest : public HelloWorldFixture<AUBHelloWorldFixtur
|
||||
|
||||
void SetUp() override {
|
||||
std::tie(KernelFixture::simd, param) = GetParam();
|
||||
if (KernelFixture::simd < HwHelper::get(NEO::platformDevices[0]->platform.eRenderCoreFamily).getMinimalSIMDSize()) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
ParentClass::SetUp();
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
ParentClass::TearDown();
|
||||
if (!IsSkipped()) {
|
||||
ParentClass::TearDown();
|
||||
}
|
||||
}
|
||||
|
||||
template <typename FamilyType>
|
||||
@@ -303,12 +308,17 @@ struct AUBSimpleArgIntegrateTest : public SimpleArgFixture<AUBSimpleArgFixtureFa
|
||||
typedef SimpleArgFixture<AUBSimpleArgFixtureFactory> ParentClass;
|
||||
|
||||
void SetUp() override {
|
||||
ParentClass::SetUp();
|
||||
std::tie(simd, param) = GetParam();
|
||||
if (simd < HwHelper::get(NEO::platformDevices[0]->platform.eRenderCoreFamily).getMinimalSIMDSize()) {
|
||||
GTEST_SKIP();
|
||||
}
|
||||
ParentClass::SetUp();
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
ParentClass::TearDown();
|
||||
if (!IsSkipped()) {
|
||||
ParentClass::TearDown();
|
||||
}
|
||||
}
|
||||
cl_uint simd;
|
||||
TestParam param;
|
||||
|
||||
Reference in New Issue
Block a user