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:
Andrzej Swierczynski
2020-03-17 12:37:38 +01:00
committed by sys_ocldev
parent ef64990016
commit 3b4276c8f7
22 changed files with 156 additions and 81 deletions

View File

@ -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