Exemplo n.º 1
0
memory_object::~memory_object()
{
    if (!m_valid.exchange(false))
        return;
    pyopencl_call_guarded_cleanup(clReleaseMemObject, PYOPENCL_CL_CASTABLE_THIS);
}
Exemplo n.º 2
0
kernel::~kernel()
{
    pyopencl_call_guarded_cleanup(clReleaseKernel, PYOPENCL_CL_CASTABLE_THIS);
}
Exemplo n.º 3
0
program::~program()
{
    pyopencl_call_guarded_cleanup(clReleaseProgram, this);
}
Exemplo n.º 4
0
context::~context()
{
    pyopencl_call_guarded_cleanup(clReleaseContext, PYOPENCL_CL_CASTABLE_THIS);
}
Exemplo n.º 5
0
kernel::~kernel()
{
    pyopencl_call_guarded_cleanup(clReleaseKernel, this);
}