mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Add methods to get builtins and compiler interface from device
Related-To: NEO-4355 Change-Id: I6b120b5293a180ce35a1671b5d2952003d56f9a6 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
9fadc918c7
commit
899045f900
@@ -72,6 +72,8 @@ class Device : public ReferenceTrackedObject<Device> {
|
||||
SpecializedDeviceT *getSpecializedDevice() const {
|
||||
return reinterpret_cast<SpecializedDeviceT *>(specializedDevice);
|
||||
}
|
||||
CompilerInterface *getCompilerInterface() const;
|
||||
BuiltIns *getBuiltIns() const;
|
||||
|
||||
virtual uint32_t getRootDeviceIndex() const = 0;
|
||||
virtual uint32_t getNumAvailableDevices() const = 0;
|
||||
@@ -134,6 +136,13 @@ inline GmmHelper *Device::getGmmHelper() const {
|
||||
return getRootDeviceEnvironment().getGmmHelper();
|
||||
}
|
||||
|
||||
inline CompilerInterface *Device::getCompilerInterface() const {
|
||||
return executionEnvironment->getCompilerInterface();
|
||||
}
|
||||
inline BuiltIns *Device::getBuiltIns() const {
|
||||
return executionEnvironment->getBuiltIns();
|
||||
}
|
||||
|
||||
inline std::atomic<uint32_t> &Device::getSelectorCopyEngine() {
|
||||
return selectorCopyEngine;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user