GET_WORK_DIM(3clc)

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

✨ 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 Β© 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 🧚

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