mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
Minor cleanup of Context class
Change-Id: I1d9169ce0019162b20d573a315d006c6a0913e4f Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
fd195f0967
commit
831233a8d2
@@ -41,14 +41,8 @@ namespace NEO {
|
||||
Context::Context(
|
||||
void(CL_CALLBACK *funcNotify)(const char *, const void *, size_t, void *),
|
||||
void *data) {
|
||||
properties = nullptr;
|
||||
numProperties = 0;
|
||||
contextCallback = funcNotify;
|
||||
userData = data;
|
||||
memoryManager = nullptr;
|
||||
specialQueue = nullptr;
|
||||
defaultDeviceQueue = nullptr;
|
||||
driverDiagnostics = nullptr;
|
||||
sharingFunctions.resize(SharingType::MAX_SHARING_VALUE);
|
||||
schedulerBuiltIn = std::make_unique<BuiltInKernel>();
|
||||
}
|
||||
@@ -422,5 +416,4 @@ ClDevice *Context::getSubDeviceByIndex(uint32_t subDeviceIndex) const {
|
||||
AsyncEventsHandler &Context::getAsyncEventsHandler() {
|
||||
return *static_cast<ClExecutionEnvironment *>(devices[0]->getExecutionEnvironment())->getAsyncEventsHandler();
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -20,7 +20,6 @@ namespace NEO {
|
||||
|
||||
class AsyncEventsHandler;
|
||||
struct BuiltInKernel;
|
||||
class CommandStreamReceiver;
|
||||
class CommandQueue;
|
||||
class Device;
|
||||
class DeviceQueue;
|
||||
@@ -156,20 +155,20 @@ class Context : public BaseObject<_cl_context> {
|
||||
|
||||
cl_int processExtraProperties(cl_context_properties propertyType, cl_context_properties propertyValue);
|
||||
|
||||
const cl_context_properties *properties;
|
||||
size_t numProperties;
|
||||
void(CL_CALLBACK *contextCallback)(const char *, const void *, size_t, void *);
|
||||
void *userData;
|
||||
const cl_context_properties *properties = nullptr;
|
||||
size_t numProperties = 0u;
|
||||
void(CL_CALLBACK *contextCallback)(const char *, const void *, size_t, void *) = nullptr;
|
||||
void *userData = nullptr;
|
||||
|
||||
std::unique_ptr<BuiltInKernel> schedulerBuiltIn;
|
||||
|
||||
ClDeviceVector devices;
|
||||
MemoryManager *memoryManager;
|
||||
MemoryManager *memoryManager = nullptr;
|
||||
SVMAllocsManager *svmAllocsManager = nullptr;
|
||||
CommandQueue *specialQueue;
|
||||
DeviceQueue *defaultDeviceQueue;
|
||||
CommandQueue *specialQueue = nullptr;
|
||||
DeviceQueue *defaultDeviceQueue = nullptr;
|
||||
std::vector<std::unique_ptr<SharingFunctions>> sharingFunctions;
|
||||
DriverDiagnostics *driverDiagnostics;
|
||||
DriverDiagnostics *driverDiagnostics = nullptr;
|
||||
bool interopUserSync = false;
|
||||
cl_bool preferD3dSharedResources = 0u;
|
||||
ContextType contextType = ContextType::CONTEXT_TYPE_DEFAULT;
|
||||
|
||||
Reference in New Issue
Block a user