mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Create Level Zero command queue based on queue desc ordinal
And correctly return the number of engines available. Related-to: NEO-4590 Change-Id: I637b3a94473e146003ea5e1c86d38e311406ce7e Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b7e65150d3
commit
77791ba889
@@ -207,6 +207,11 @@ EngineControl &Device::getEngine(aub_stream::EngineType engineType, bool lowPrio
|
||||
UNRECOVERABLE_IF(true);
|
||||
}
|
||||
|
||||
EngineControl &Device::getEngine(uint32_t index) {
|
||||
UNRECOVERABLE_IF(index >= engines.size());
|
||||
return engines[index];
|
||||
}
|
||||
|
||||
bool Device::getDeviceAndHostTimer(uint64_t *deviceTimestamp, uint64_t *hostTimestamp) const {
|
||||
TimeStampData queueTimeStamp;
|
||||
bool retVal = getOSTime()->getCpuGpuTime(&queueTimeStamp);
|
||||
|
||||
@@ -42,6 +42,7 @@ class Device : public ReferenceTrackedObject<Device> {
|
||||
const HardwareInfo &getHardwareInfo() const;
|
||||
const DeviceInfo &getDeviceInfo() const;
|
||||
EngineControl &getEngine(aub_stream::EngineType engineType, bool lowPriority);
|
||||
EngineControl &getEngine(uint32_t index);
|
||||
EngineControl &getDefaultEngine();
|
||||
EngineControl &getInternalEngine();
|
||||
std::atomic<uint32_t> &getSelectorCopyEngine();
|
||||
|
||||
Reference in New Issue
Block a user