MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / afcl_get_context

Function afcl_get_context

src/backend/opencl/platform.cpp:791–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791af_err afcl_get_context(cl_context* ctx, const bool retain) {
792 try {
793 *ctx = getContext()();
794 if (retain) { clRetainContext(*ctx); }
795 }
796 CATCHALL;
797 return AF_SUCCESS;
798}
799
800af_err afcl_get_queue(cl_command_queue* queue, const bool retain) {
801 try {

Callers

nothing calls this directly

Calls 1

getContextFunction · 0.50

Tested by

no test coverage detected