コード例 #1
0
ファイル: api_program.cpp プロジェクト: jakebolewski/clover
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;
}
コード例 #2
0
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;
}