GET_GROUP_ID(3clc)

πŸ“¦
version 1.0~svn33624 Β· 3 versions
, in ubuntu jammy, ubuntu noble

πŸŽ€ 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 πŸ‘‘


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 πŸ—’οΈ

  1. 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