mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 19:32:25 +08:00
Cleanup includes 25
Cleaned up files: level_zero/core/source/device/device.h opencl/source/helpers/dispatch_info.h shared/source/os_interface/os_interface.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8f2af28b11
commit
bd81b5546d
@@ -10,8 +10,10 @@
|
||||
#include "shared/source/compiler_interface/compiler_cache.h"
|
||||
|
||||
#include "opencl/source/kernel/kernel.h"
|
||||
#include "opencl/source/mem_obj/mem_obj.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
bool DispatchInfo::usesSlm() const {
|
||||
return (kernel == nullptr) ? false : kernel->getSlmTotalSize() > 0;
|
||||
}
|
||||
@@ -28,6 +30,16 @@ uint32_t DispatchInfo::getRequiredPrivateScratchSize() const {
|
||||
return (kernel == nullptr) ? 0 : kernel->getPrivateScratchSize();
|
||||
}
|
||||
|
||||
MultiDispatchInfo::~MultiDispatchInfo() {
|
||||
for (MemObj *redescribedSurface : redescribedSurfaces) {
|
||||
redescribedSurface->release();
|
||||
}
|
||||
}
|
||||
|
||||
void MultiDispatchInfo::pushRedescribedMemObj(std::unique_ptr<MemObj> memObj) {
|
||||
redescribedSurfaces.push_back(memObj.release());
|
||||
}
|
||||
|
||||
Kernel *MultiDispatchInfo::peekMainKernel() const {
|
||||
if (dispatchInfos.size() == 0) {
|
||||
return nullptr;
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
#include "opencl/source/built_ins/builtins_dispatch_builder.h"
|
||||
#include "opencl/source/kernel/kernel_objects_for_aux_translation.h"
|
||||
#include "opencl/source/mem_obj/mem_obj.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
@@ -85,11 +84,7 @@ class DispatchInfo {
|
||||
};
|
||||
|
||||
struct MultiDispatchInfo {
|
||||
~MultiDispatchInfo() {
|
||||
for (MemObj *redescribedSurface : redescribedSurfaces) {
|
||||
redescribedSurface->release();
|
||||
}
|
||||
}
|
||||
~MultiDispatchInfo();
|
||||
|
||||
explicit MultiDispatchInfo(Kernel *mainKernel) : mainKernel(mainKernel) {}
|
||||
explicit MultiDispatchInfo(const BuiltinOpParams &operationParams) : builtinOpParams(operationParams) {}
|
||||
@@ -182,9 +177,7 @@ struct MultiDispatchInfo {
|
||||
return redescribedSurfaces;
|
||||
}
|
||||
|
||||
void pushRedescribedMemObj(std::unique_ptr<MemObj> memObj) {
|
||||
redescribedSurfaces.push_back(memObj.release());
|
||||
}
|
||||
void pushRedescribedMemObj(std::unique_ptr<MemObj> memObj);
|
||||
|
||||
Kernel *peekMainKernel() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user