Kaydet (Commit) 7a0ed3a4 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Disable pre-compilation of OpenCL kernels for now.

Change-Id: I1e61fab8ae26c11af05084db1a5542c066f69852
üst 0f46b069
......@@ -54,7 +54,7 @@
#include <boost/scoped_ptr.hpp>
#define ENABLE_THREADED_OPENCL_KERNEL_COMPILATION 1
#define ENABLE_THREADED_OPENCL_KERNEL_COMPILATION 0
using namespace formula;
......@@ -3506,8 +3506,6 @@ ScFormulaCellGroupRef ScFormulaCell::CreateCellGroup( SCROW nLen, bool bInvarian
#if ENABLE_THREADED_OPENCL_KERNEL_COMPILATION
if (mxGroup->sxCompilationThread.is())
mxGroup->scheduleCompilation();
#else
mxGroup->compileOpenCLKernel();
#endif
return mxGroup;
}
......
......@@ -3208,6 +3208,10 @@ DynamicKernel::~DynamicKernel()
/// Build code
void DynamicKernel::CreateKernel(void)
{
if (mpKernel)
// already created.
return;
cl_int err;
std::string kname = "DynamicKernel"+mKernelSignature;
// Compile kernel here!!!
......
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