mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
fix: add function to calculate number of threads per tg
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
987394b27c
commit
7cb3278eb3
@@ -16,7 +16,7 @@ inline uint32_t getGRFsPerThread(uint32_t simd, uint32_t grfSize) {
|
||||
return (simd == 32 && grfSize == 32) ? 2 : 1;
|
||||
}
|
||||
|
||||
inline size_t getThreadsPerWG(uint32_t simd, size_t lws) {
|
||||
inline uint32_t getThreadsPerWG(uint32_t simd, uint32_t lws) {
|
||||
auto result = lws + simd - 1;
|
||||
|
||||
// Original logic:
|
||||
|
||||
Reference in New Issue
Block a user