@@ -70,7 +70,8 @@ class Device : public BaseObject<_cl_device_id> {
7070 deviceInfo.force32BitAddressess = value;
7171 }
7272
73- EngineControl &getEngine (size_t engineId);
73+ EngineControl &getEngine (uint32_t engineId);
74+ EngineControl &getDefaultEngine ();
7475
7576 volatile uint32_t *getTagAddress () const ;
7677
@@ -146,7 +147,6 @@ class Device : public BaseObject<_cl_device_id> {
146147 HardwareCapabilities hardwareCapabilities = {};
147148 DeviceInfo deviceInfo;
148149
149- volatile uint32_t *tagAddress = nullptr ;
150150 GraphicsAllocation *preemptionAllocation = nullptr ;
151151 std::unique_ptr<OSTime> osTime;
152152 std::unique_ptr<DriverInfo> driverInfo;
@@ -161,6 +161,7 @@ class Device : public BaseObject<_cl_device_id> {
161161 PreemptionMode preemptionMode;
162162 ExecutionEnvironment *executionEnvironment = nullptr ;
163163 uint32_t deviceIndex = 0u ;
164+ uint32_t defaultEngineIndex = 0 ;
164165};
165166
166167template <cl_device_info Param>
@@ -171,12 +172,12 @@ inline void Device::getCap(const void *&src,
171172 retSize = size = DeviceInfoTable::Map<Param>::size;
172173}
173174
174- inline EngineControl &Device::getEngine (size_t engineId) {
175+ inline EngineControl &Device::getEngine (uint32_t engineId) {
175176 return engines[engineId];
176177}
177178
178- inline volatile uint32_t * Device::getTagAddress () const {
179- return tagAddress ;
179+ inline EngineControl & Device::getDefaultEngine () {
180+ return engines[defaultEngineIndex] ;
180181}
181182
182183inline MemoryManager *Device::getMemoryManager () const {
0 commit comments