CLRELEASEPROGRAM(3clc)
π CLRELEASEPROGRAM π
okay bestie, welcome to the OpenCL Manual, page for clReleaseProgram β it's a 3clc situation and it's lowkey iconic π
β¨ NAME β¨
clReleaseProgram β decrements the program reference count. that's it, that's the whole job, and she does it flawlessly π¦
cl_int clReleaseProgram(cl_program program);
π«Ά NOTES π«Ά
okay so here's the tea, and it's important tea: the program object gets deleted only after all the kernel objects associated with program have been deleted and the program reference count becomes zero</> π
so like. both things. not one, both. no cap.
π ERRORS π
she returns CL_SUCCESS if the function is executed successfully (slay β¨). otherwise, bestie, she returns one of these:
CL_INVALID_PROGRAMβ ifprogramis not a valid program object πCL_OUT_OF_RESOURCESβ if there is a failure to allocate resources required by the OpenCL implementation on the deviceCL_OUT_OF_HOST_MEMORYβ if there is a failure to allocate resources required by the OpenCL implementation on the host
π SPECIFICATION π
OpenCL Specification[1] β the receipts are right there, iykyk π
π SEE ALSO π
go read those too, the whole friend group is adorable π
π§ 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 condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials.
legal said what it said and we respect legal π
πΈ NOTES πΈ
- OpenCL Specification page 136, section 5.6.1 - Creating Program Objects
and that's the whole page, bestie!! this manual came from The Khronos Group, dated 01/14/2021, and it lives under the name CLRELEASEPROGRAM(3clc). periodt π
β¨π¦
π¦ 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