mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Make gmm client context non-static member
Construct platform and initialize gmm in each test Change-Id: I4f209369e77213420308f31f911b7a569ea93283
This commit is contained in:
committed by
sys_ocldev
parent
7423919629
commit
a906ddaa66
@@ -105,6 +105,7 @@ class Device : public BaseObject<_cl_device_id> {
|
||||
size_t &retSize);
|
||||
|
||||
MemoryManager *getMemoryManager() const;
|
||||
GmmHelper *getGmmHelper() const;
|
||||
|
||||
/* We hide the retain and release function of BaseObject. */
|
||||
void retain() override;
|
||||
@@ -194,4 +195,7 @@ inline volatile uint32_t *Device::getTagAddress() const {
|
||||
inline MemoryManager *Device::getMemoryManager() const {
|
||||
return executionEnvironment->memoryManager.get();
|
||||
}
|
||||
inline GmmHelper *Device::getGmmHelper() const {
|
||||
return executionEnvironment->getGmmHelper();
|
||||
}
|
||||
} // namespace OCLRT
|
||||
|
||||
Reference in New Issue
Block a user