diff --git a/src/arch/opencl/openclprocessor.cpp b/src/arch/opencl/openclprocessor.cpp index 0da9cd22b59c592060f48267d71c74624315a90c..4219244b5f663011d0b15c2b56bb7e672244b85a 100644 --- a/src/arch/opencl/openclprocessor.cpp +++ b/src/arch/opencl/openclprocessor.cpp @@ -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(){