mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Use ZE_AFFINITY_MASK for neo devices
Resolves: NEO-5438 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
2eaf830aff
commit
8ed14d0c9f
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
* Copyright (C) 2019-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -201,7 +201,6 @@ TEST(SubDevicesTest, givenDeviceWithoutSubDevicesWhenGettingDeviceByIdZeroThenGe
|
||||
|
||||
EXPECT_EQ(1u, device->getNumAvailableDevices());
|
||||
EXPECT_EQ(device.get(), device->getDeviceById(0u));
|
||||
EXPECT_THROW(device->getDeviceById(1), std::exception);
|
||||
}
|
||||
|
||||
TEST(SubDevicesTest, givenDeviceWithSubDevicesWhenGettingDeviceByIdThenGetCorrectSubDevice) {
|
||||
@ -245,7 +244,7 @@ TEST(RootDevicesTest, givenRootDeviceWithSubdevicesWhenCreateEnginesThenDeviceCr
|
||||
|
||||
auto executionEnvironment = new MockExecutionEnvironment;
|
||||
MockDevice device(executionEnvironment, 0);
|
||||
device.subdevices.resize(2u);
|
||||
device.numSubDevices = 2;
|
||||
EXPECT_EQ(0u, device.engines.size());
|
||||
device.createEngines();
|
||||
EXPECT_EQ(1u, device.engines.size());
|
||||
|
Reference in New Issue
Block a user