mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Move AsyncEventsHandler to ClExecutionEnvironment
Related-To: NEO-4207 Change-Id: If859f995aae57ac03de13d57cc5a38c97303bbb4 Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ef64990016
commit
3b4276c8f7
@@ -21,6 +21,7 @@
|
||||
#include "opencl/source/cl_device/cl_device.h"
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
#include "opencl/source/device_queue/device_queue.h"
|
||||
#include "opencl/source/execution_environment/cl_execution_environment.h"
|
||||
#include "opencl/source/gtpin/gtpin_notify.h"
|
||||
#include "opencl/source/helpers/get_info_status_mapper.h"
|
||||
#include "opencl/source/helpers/surface_formats.h"
|
||||
@@ -385,4 +386,8 @@ bool Context::isDeviceAssociated(const ClDevice &clDevice) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
AsyncEventsHandler &Context::getAsyncEventsHandler() {
|
||||
return *static_cast<ClExecutionEnvironment *>(devices[0]->getExecutionEnvironment())->getAsyncEventsHandler();
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
namespace NEO {
|
||||
|
||||
class AsyncEventsHandler;
|
||||
struct BuiltInKernel;
|
||||
class CommandStreamReceiver;
|
||||
class CommandQueue;
|
||||
@@ -143,6 +144,8 @@ class Context : public BaseObject<_cl_context> {
|
||||
|
||||
bool isDeviceAssociated(const ClDevice &clDevice) const;
|
||||
|
||||
AsyncEventsHandler &getAsyncEventsHandler();
|
||||
|
||||
protected:
|
||||
Context(void(CL_CALLBACK *pfnNotify)(const char *, const void *, size_t, void *) = nullptr,
|
||||
void *userData = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user