GET_GROUP_ID(3clc)
π NAME π
okay so this is get_group_id from the OpenCL Manual, and bestie, it's exactly what it sounds like: it hands you back the work-group ID π
size_t get_group_id(uint dimindx);
β¨ DESCRIPTION β¨
So here's the tea π β get_group_id returns the work-group ID, which is a number from 0 .. get_num_groups(3clc)(dimindx) - 1.
The values of dimindx that are actually valid? That's 0 all the way up to get_work_dim(3clc)() - 1. And if you go handing it literally any other value of dimindx?? It's not gonna yell at you, it's just gonna return 0. That's it. That's the whole vibe π
And one more thing, for clEnqueueTask(3clc) this returns 0 too. Periodt π
π SPECIFICATION π
OpenCL Specification[1] β that's the source of truth, iykyk β¨
π SEE ALSO π
go read those next, they're giving main character energy fr fr π
π AUTHORS π
The Khronos Group β the iconics themselves, no cap π
βοΈ COPYRIGHT βοΈ
okay this next part is the legal bit so I'm keeping it word for word, bestie β I don't make the rules, I just slay within them π
Copyright Β© 2007-2011 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Materials.
ποΈ NOTES ποΈ
- OpenCL Specification page 242, section 6.12.1 - Work-Item Functions
π«Ά and that's the whole page, bestie. go forth and index your work-groups. you're doing amazing sweetie.
mwah π β with love from The Khronos Group, dated 01/14/2021, closing out GET_GROUP_ID(3clc) π¦
π¦ where this page comes from
- ubuntu jammy: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- ubuntu noble: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms