mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
25 lines
630 B
C++
25 lines
630 B
C++
/*
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/test/common/test_macros/test.h"
|
|
|
|
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
|
|
|
|
using namespace NEO;
|
|
|
|
typedef Test<ClDeviceFixture> BroadwellOnlyTest;
|
|
|
|
BDWTEST_F(BroadwellOnlyTest, WhenGettingProductFamilyThenBroadwellIsReturned) {
|
|
EXPECT_EQ(IGFX_BROADWELL, pDevice->getHardwareInfo().platform.eProductFamily);
|
|
}
|
|
|
|
typedef Test<ClDeviceFixture> Gen8OnlyTest;
|
|
|
|
GEN8TEST_F(Gen8OnlyTest, WhenGettingRenderCoreFamilyThenGen8CoreIsReturned) {
|
|
EXPECT_EQ(IGFX_GEN8_CORE, pDevice->getRenderCoreFamily());
|
|
}
|