2020-03-17 12:37:38 +01:00
|
|
|
/*
|
2025-11-07 09:36:19 +00:00
|
|
|
* Copyright (C) 2020-2025 Intel Corporation
|
2020-03-17 12:37:38 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "opencl/source/execution_environment/cl_execution_environment.h"
|
|
|
|
|
|
|
|
|
|
#include "opencl/source/event/async_events_handler.h"
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
ClExecutionEnvironment::ClExecutionEnvironment() : ExecutionEnvironment() {
|
|
|
|
|
asyncEventsHandler.reset(new AsyncEventsHandler());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AsyncEventsHandler *ClExecutionEnvironment::getAsyncEventsHandler() const {
|
|
|
|
|
return asyncEventsHandler.get();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ClExecutionEnvironment::~ClExecutionEnvironment() {
|
|
|
|
|
asyncEventsHandler->closeThread();
|
|
|
|
|
};
|
2021-10-15 12:02:31 +00:00
|
|
|
void ClExecutionEnvironment::prepareRootDeviceEnvironments(uint32_t numRootDevices) {
|
|
|
|
|
ExecutionEnvironment::prepareRootDeviceEnvironments(numRootDevices);
|
|
|
|
|
}
|
2020-03-17 12:37:38 +01:00
|
|
|
} // namespace NEO
|