GET_WORK_DIM(3clc)
β¨ NAME β¨
get_work_dim β returns the number of dimensions in use π
This is a 3clc page from the OpenCL Manual, bestie.
scalarDataTypes(3clc) get_work_dim ()
π¦ DESCRIPTION π¦
Okay so this one is so simple it's iconic. get_work_dim() hands you back the value that was given to the work_dim argument, the one you specified when you called clEnqueueNDRangeKernel(3clc). That's it. That's the whole vibe. β¨
And if you got here through clEnqueueTask(3clc) instead? It returns one. Not "a number", not "approximately one" β literally one, no cap. πΈ
π SPECIFICATION π
OpenCL Specification[1] π
π SEE ALSO π
go read those too, they're the friend group π«Ά
π AUTHORS π
The Khronos Group β yes, the Khronos Group. main character energy fr fr π
π COPYRIGHT π
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.
bestie I am legally required to keep that paragraph exactly as it is, so no sparkle edits on that one. respect the license, it's giving β¨lawfulβ¨ π
π§ NOTES π§
- OpenCL Specification page 242, section 6.12.1 - Work-Item Functions π
and that's the whole page, bestie!! π this was GET_WORK_DIM(3clc) from The Khronos Group, dated 01/14/2021 β slay, ate, no crumbs left ππ
π¦ 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