Commit c1745c5c authored by Victor Lopez's avatar Victor Lopez

Disable OpenCL context release on finalization

Close #1244
parent 51a68766
......@@ -96,12 +96,15 @@ OpenCLAdapter::~OpenCLAdapter()
++i )
clReleaseProgram( i->second );
errCode = clReleaseContext( _ctx );
//Invalid context means it was already released by another thread
if( errCode != CL_SUCCESS && errCode != CL_INVALID_CONTEXT){
warning0( "Unable to release the context" );
}
/* Disabling context relase. See #1244
*/
/* errCode = clReleaseContext( _ctx ); */
/* //Invalid context means it was already released by another thread */
/* if( errCode != CL_SUCCESS && errCode != CL_INVALID_CONTEXT){ */
/* warning0( "Unable to release the context" ); */
/* } */
}
bool OpenCLAdapter::outOfOrderSupport(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment