mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Move storage of mapped operations to OpenCL context
Relate-To: NEO-6352 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ca0138da2e
commit
8c9dd3085b
@@ -16,6 +16,7 @@
|
||||
#include "opencl/source/gtpin/gtpin_notify.h"
|
||||
#include "opencl/source/helpers/base_object.h"
|
||||
#include "opencl/source/helpers/destructor_callbacks.h"
|
||||
#include "opencl/source/mem_obj/map_operations_handler.h"
|
||||
|
||||
#include <list>
|
||||
#include <map>
|
||||
@@ -93,6 +94,8 @@ class Context : public BaseObject<_cl_context> {
|
||||
return svmAllocsManager;
|
||||
}
|
||||
|
||||
auto &getMapOperationsStorage() { return mapOperationsStorage; }
|
||||
|
||||
const std::set<uint32_t> &getRootDeviceIndices() const;
|
||||
|
||||
uint32_t getMaxRootDeviceIndex() const;
|
||||
@@ -199,6 +202,7 @@ class Context : public BaseObject<_cl_context> {
|
||||
void *userData = nullptr;
|
||||
MemoryManager *memoryManager = nullptr;
|
||||
SVMAllocsManager *svmAllocsManager = nullptr;
|
||||
MapOperationsStorage mapOperationsStorage = {};
|
||||
StackVec<CommandQueue *, 1> specialQueues;
|
||||
DeviceQueue *defaultDeviceQueue = nullptr;
|
||||
DriverDiagnostics *driverDiagnostics = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user