mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Store device binary per root device in program
Related-To: NEO-5001 Change-Id: I9834f6894625031c734c68ebf210e6042c470ec7 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
9c1b818598
commit
fc090f74c6
@@ -16,7 +16,7 @@ void ClDeviceFixture::SetUp() {
|
||||
}
|
||||
|
||||
void ClDeviceFixture::SetUpImpl(const NEO::HardwareInfo *hardwareInfo) {
|
||||
pDevice = MockDevice::createWithNewExecutionEnvironment<MockDevice>(hardwareInfo);
|
||||
pDevice = MockDevice::createWithNewExecutionEnvironment<MockDevice>(hardwareInfo, rootDeviceIndex);
|
||||
ASSERT_NE(nullptr, pDevice);
|
||||
pClDevice = new MockClDevice{pDevice};
|
||||
ASSERT_NE(nullptr, pClDevice);
|
||||
@@ -35,6 +35,6 @@ void ClDeviceFixture::TearDown() {
|
||||
MockDevice *ClDeviceFixture::createWithUsDeviceId(unsigned short usDeviceId) {
|
||||
hardwareInfo = *defaultHwInfo;
|
||||
hardwareInfo.platform.usDeviceID = usDeviceId;
|
||||
return MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hardwareInfo);
|
||||
return MockDevice::createWithNewExecutionEnvironment<MockDevice>(&hardwareInfo, rootDeviceIndex);
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user