WORKITEMFUNCTIONS(3clc)

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

πŸ’– WORK-ITEM BUILT-IN (3clc) πŸ’–

okay bestie, welcome to the OpenCL Manual ✨ β€” specifically the page all about work-item built-ins, and honestly? this one is the moment. 🫢


🌸 NAME 🌸

Work-Item_Built-In_Functions β€” click an item in the table below for details about that function. (yes it's a table in the original, and no we're not doing tables here, so it's a list now, but every single entry is still here, no cap πŸ’…)


✨ DESCRIPTION ✨

so, built-in work-item functions? they're your little intel crew πŸ•΅οΈβ™€οΈπŸ’– you use them to query:

  • the number of dimensions
  • the global and local work size that got specified to clEnqueueNDRangeKernel(3clc)
  • the global and local identifier of each work-item while that kernel is being executed on a device

and here's the tea β˜• β€” when you're executing a kernel using clEnqueueTask(3clc), the number of dimensions, the global work size, and the local work size are all one. literally just 1. iconic behaviour honestly. πŸ‘‘


πŸ“œ SPECIFICATION πŸ“œ

OpenCL Specification[1] β€” that's the source of truth, bestie. πŸŽ€


πŸ‘€ SEE ALSO πŸ‘€

go read those next, iykyk πŸ¦‹


🫢 AUTHORS 🫢

The Khronos Group β€” the collective. the moment. the icons. πŸ‘‘


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 condition:

the above copyright notice and this permission notice shall be included in all copies or substantial portions of the Materials.

(that condition is not optional, bestie, don't skip it πŸ™ˆ)


πŸŽ€ NOTES πŸŽ€

  1. OpenCL Specification page 242, section 6.12.1 - Work-Item Functions

and that's the whole page!! 🌈 from The Khronos Group, dated 01/14/2021, living under the title WORK-ITEM BUILT-IN(3clc) forever and ever. go query some work items, bestie, you got this πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from