WAIT_GROUP_EVENTS(3clc)

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

✨ WAIT_GROUP_EVENTS ✨

okay so bestie, welcome to WAIT_GROUP_EVENTS(3clc), straight out of the OpenCL Manual πŸ’– this one's a little three-parter in the man page family and it's giving "short but VERY serious" energy, so pay attention fr fr πŸ‘‘


πŸ’« NAME πŸ’«

wait_group_events β€” the way you sit there and wait for the events that identify the async_work_group_copy operations to complete πŸ•°οΈβœ¨

void wait_group_events(int num_events, event_t *event_list);

like. that's the whole signature. cute, right? πŸŽ€


🌸 DESCRIPTION 🌸

So here's the tea β˜•: you're waiting on the events that identify the async_work_group_copy(3clc) operations to complete. That's it, that's the job.

And the event objects specified in event_list will be released after the wait is performed β€” so once you've waited, they're gone, periodt πŸ’… don't go touching them after.

⚠️ THE BIG ONE, no cap: this function must be encountered by all work-items in a work-group executing the kernel with the same num_events and event objects specified in event_list β€” otherwise the results are undefined. everybody in the group has to show up to this party with the exact same guest list, or it's chaos πŸ˜­πŸ‘―β™€οΈ

πŸ¦‹ NOTES πŸ¦‹

The kernel must wait for the completion of all async copies using the wait_group_events built-in function before exiting β€” otherwise the behavior is undefined 🫣

like literally do not leave the function early, the async copies are still out there and they will NOT be chill about it πŸ’€


🌈 SPECIFICATION 🌈

OpenCL Specification[1] β€” see the footnote bestie, it's right there at the bottom 🧚


⭐ SEE ALSO ⭐


πŸ‘‘ AUTHORS πŸ‘‘

The Khronos Group πŸ’œ iconic of them honestly


Copyright Β© 2007-2011 The Khronos Group Inc.

and here's the legal bit, verbatim, because we do not paraphrase legal text in this group chat 🫑

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 condition that this copyright notice and permission notice shall be
included in all copies or substantial portions of the Materials.

🌸 NOTES (the footnote one, not the other one) 🌸

  1. OpenCL Specification page 276, section 6.12.10 - Async Copies from Global to Local Memory... πŸ“–βœ¨

and that's the whole page bestie!! πŸ’– written by The Khronos Group, dated 01/14/2021, and it lives in section 3clc of the OpenCL Manual πŸ¦‹ now go forth and wait on your events, responsibly, with the whole work-group, or else πŸ”₯πŸ‘‘ mwah πŸ’…

πŸ“¦ where this page comes from