2019-01-10 20:57:40 +08:00
|
|
|
/*
|
2021-05-13 21:27:50 +08:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-01-10 20:57:40 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/hw_helper.h"
|
2021-12-15 01:40:08 +08:00
|
|
|
#include "shared/test/common/test_macros/test.h"
|
2019-01-10 20:57:40 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2019-01-10 20:57:40 +08:00
|
|
|
|
|
|
|
template <typename FamilyType>
|
2020-10-23 22:11:02 +08:00
|
|
|
void whenGetGpgpuEnginesThenReturnTwoRcsEngines(const HardwareInfo &hwInfo) {
|
2020-02-21 22:25:04 +08:00
|
|
|
auto gpgpuEngines = HwHelperHw<FamilyType>::get().getGpgpuEngineInstances(hwInfo);
|
2020-01-21 16:35:12 +08:00
|
|
|
EXPECT_EQ(3u, gpgpuEngines.size());
|
2020-09-15 23:29:02 +08:00
|
|
|
EXPECT_EQ(aub_stream::ENGINE_RCS, gpgpuEngines[0].first);
|
|
|
|
EXPECT_EQ(aub_stream::ENGINE_RCS, gpgpuEngines[1].first);
|
|
|
|
EXPECT_EQ(aub_stream::ENGINE_RCS, gpgpuEngines[2].first);
|
2019-01-10 20:57:40 +08:00
|
|
|
}
|