mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Cleanup includes 34
Cleaned up files: opencl/source/command_queue/cl_local_work_size.h opencl/test/unit_test/mocks/mock_buffer.h shared/source/program/kernel_info.cpp Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ba95e8b465
commit
16d5a323c7
40
shared/source/program/work_size_info.h
Normal file
40
shared/source/program/work_size_info.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <igfxfmid.h>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
struct KernelInfo;
|
||||
struct RootDeviceEnvironment;
|
||||
|
||||
struct WorkSizeInfo {
|
||||
uint32_t maxWorkGroupSize;
|
||||
uint32_t minWorkGroupSize;
|
||||
bool hasBarriers;
|
||||
uint32_t simdSize;
|
||||
uint32_t slmTotalSize;
|
||||
GFXCORE_FAMILY coreFamily;
|
||||
uint32_t numThreadsPerSubSlice;
|
||||
uint32_t localMemSize;
|
||||
bool imgUsed = false;
|
||||
bool yTiledSurfaces = false;
|
||||
bool useRatio = false;
|
||||
bool useStrictRatio = false;
|
||||
float targetRatio = 0;
|
||||
|
||||
WorkSizeInfo(uint32_t maxWorkGroupSize, bool hasBarriers, uint32_t simdSize, uint32_t slmTotalSize, const RootDeviceEnvironment &rootDeviceEnvironment, uint32_t numThreadsPerSubSlice, uint32_t localMemSize, bool imgUsed, bool yTiledSurface, bool disableEUFusion);
|
||||
|
||||
void setIfUseImg(const KernelInfo &kernelInfo);
|
||||
void setMinWorkGroupSize(const RootDeviceEnvironment &rootDeviceEnvironemnt, bool disableEUFusion);
|
||||
void checkRatio(const size_t workItems[3]);
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user