mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +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:
@@ -52,13 +52,13 @@ CommandStreamReceiver *createCommandStream(const HardwareInfo *pHwInfo) {
|
||||
return commandStreamReceiver;
|
||||
}
|
||||
|
||||
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned) {
|
||||
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment) {
|
||||
if (overrideDeviceWithDefaultHardwareInfo) {
|
||||
*hwInfo = const_cast<HardwareInfo *>(*platformDevices);
|
||||
numDevicesReturned = numPlatformDevices;
|
||||
return getDevicesResult;
|
||||
}
|
||||
|
||||
return getDevicesImpl(hwInfo, numDevicesReturned);
|
||||
return getDevicesImpl(hwInfo, numDevicesReturned, executionEnvironment);
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user