mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +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:
@@ -42,7 +42,7 @@ namespace OCLRT {
|
||||
|
||||
std::unique_ptr<Platform> platformImpl;
|
||||
|
||||
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned);
|
||||
bool getDevices(HardwareInfo **hwInfo, size_t &numDevicesReturned, ExecutionEnvironment &executionEnvironment);
|
||||
|
||||
Platform *platform() { return platformImpl.get(); }
|
||||
|
||||
@@ -138,7 +138,7 @@ bool Platform::initialize() {
|
||||
return true;
|
||||
}
|
||||
|
||||
state = OCLRT::getDevices(&hwInfo, numDevicesReturned) ? StateIniting : StateNone;
|
||||
state = OCLRT::getDevices(&hwInfo, numDevicesReturned, *executionEnvironment) ? StateIniting : StateNone;
|
||||
|
||||
if (state == StateNone) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user