mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Add clGetExecutionInfoIntel API
This API allows querying for execution related information. CL_EXECUTION_INFO_MAX_WORKGROUP_COUNT_INTEL parameter allows to query for maximal work group count that is possible to run concurrently on the device. Related-To: NEO-2712 Change-Id: I4e6b4c80aeb06ff966fb543c0a7f05ed54416dab Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
340e80bb1a
commit
4b2a8e99d8
19
core/helpers/kernel_helpers.h
Normal file
19
core/helpers/kernel_helpers.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
struct KernelHelper {
|
||||
static uint32_t getMaxWorkGroupCount(uint32_t simd, uint32_t availableThreadCount, uint32_t dssCount, uint32_t availableSlmSize,
|
||||
uint32_t usedSlmSize, uint32_t maxBarrierCount, uint32_t numberOfBarriers, uint32_t workDim,
|
||||
const size_t *localWorkSize);
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user