cl_int clReleaseProgram(cl_program program) { if (!program->isA(Coal::Object::T_Program)) return CL_INVALID_PROGRAM; if (program->dereference()) delete program; return CL_SUCCESS; }
cl_int clReleaseProgram(cl_program program) { #ifdef DBG_API std::cerr << "Entering clReleaseProgram\n"; #endif if (!program->isA(Coal::Object::T_Program)) return CL_INVALID_PROGRAM; if (program->dereference()) delete program; #ifdef DBG_API std::cerr << "Leaving clReleaseProgram\n"; #endif return CL_SUCCESS; }