mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 00:59:38 +08:00
Pass ExecutionEnvironment to get devices.
- this would allow for further re-use of objects allocated here. Change-Id: I73b62ae3991ebd786dea3c085e1391194b8de6ba
This commit is contained in:
@@ -36,7 +36,7 @@ extern const HardwareInfo *hardwareInfoTable[IGFX_MAX_PRODUCT];
|
||||
size_t DeviceFactory::numDevices = 0;
|
||||
HardwareInfo *DeviceFactory::hwInfos = nullptr;
|
||||
|
||||
bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices) {
|
||||
bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices, ExecutionEnvironment &executionEnvironment) {
|
||||
auto totalDeviceCount = 1u;
|
||||
if (DebugManager.flags.CreateMultipleDevices.get()) {
|
||||
totalDeviceCount = DebugManager.flags.CreateMultipleDevices.get();
|
||||
|
||||
Reference in New Issue
Block a user