Solved
Forum Discussion
HRZ
Frequent Contributor
6 years agoIs there any reqd_work_group_size or max_work_group_size used in the kernel?
- whan016 years ago
New Contributor
You remind me. There's neither reqd_work_group_size nor max_work_group_size, but at the head of each kernel function there's a declaration __attribute__((task)) which implicitly indicates the max work group dimension is 0. The max group work items is 1. So here's problem. Thanks!
- HRZ6 years ago
Frequent Contributor
So the kernel is not even NDRange. 😅
Be careful that just removing that attribute will not convert the kernel to NDRange; you will need to rewrite the kernel and replace the loops in it with get_global_id()/get_local_id().
- whan016 years ago
New Contributor
Thanks for the further reminder. I'm new to HARP2 and OpenCL and maybe I need to go back to the programming manual.