mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Cleaned up files: level_zero/core/source/cmdlist/cmdlist_hw.h level_zero/core/source/cmdqueue/cmdqueue.h level_zero/core/source/event/event.h opencl/source/helpers/get_info_status_mapper.h opencl/source/helpers/hardware_commands_helper.h shared/source/helpers/per_thread_data.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
27 lines
590 B
C++
27 lines
590 B
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/local_id_gen.h"
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace NEO {
|
|
class LinearStream;
|
|
|
|
struct PerThreadDataHelper {
|
|
static inline size_t getPerThreadDataSizeTotal(
|
|
uint32_t simd,
|
|
uint32_t grfSize,
|
|
uint32_t numChannels,
|
|
size_t localWorkSize) {
|
|
return getThreadsPerWG(simd, localWorkSize) * getPerThreadSizeLocalIDs(simd, grfSize, numChannels);
|
|
}
|
|
}; // namespace PerThreadDataHelper
|
|
} // namespace NEO
|