CLRELEASEPROGRAM(3clc)

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

πŸ’– 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 β€” if program is not a valid program object πŸ™ˆ
  • CL_OUT_OF_RESOURCES β€” if there is a failure to allocate resources required by the OpenCL implementation on the device
  • CL_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 Β© 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 🌸

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