[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Fri Apr 28 07:06:06 UTC 2017


 sc/source/core/opencl/formulagroupcl.cxx |   14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

New commits:
commit 9b9b76347df54b0f5a2d6e5e019ebda0797fd641
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Apr 28 10:05:19 2017 +0300

    Bin the same comment copy-pasted meaninglessly
    
    Change-Id: I1f6498f037a2ff121ef7db0976329b12e22c2f94

diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index e74ace0f196d..c066d74fc501 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -163,7 +163,7 @@ size_t VectorRef::Marshal( cl_kernel k, int argno, int, cl_program )
     {
         throw Unhandled(__FILE__, __LINE__);
     }
-    // Obtain cl context
+
     ::opencl::KernelEnv kEnv;
     ::opencl::setKernelEnv(&kEnv);
     cl_int err;
@@ -757,7 +757,7 @@ public:
 size_t DynamicKernelStringArgument::Marshal( cl_kernel k, int argno, int, cl_program )
 {
     FormulaToken* ref = mFormulaTree->GetFormulaToken();
-    // Obtain cl context
+
     ::opencl::KernelEnv kEnv;
     ::opencl::setKernelEnv(&kEnv);
     cl_int err;
@@ -1437,7 +1437,7 @@ public:
     virtual size_t Marshal( cl_kernel k, int argno, int w, cl_program mpProgram )
     {
         assert(Base::mpClmem == nullptr);
-        // Obtain cl context
+
         ::opencl::KernelEnv kEnv;
         ::opencl::setKernelEnv(&kEnv);
         cl_int err;
@@ -2225,7 +2225,6 @@ public:
         }
         if (dynamic_cast<OpGeoMean*>(mpCodeGen.get()))
         {
-            // Obtain cl context
             ::opencl::KernelEnv kEnv;
             ::opencl::setKernelEnv(&kEnv);
             cl_int err;
@@ -2287,7 +2286,6 @@ public:
         }
         if (OpSumIfs* OpSumCodeGen = dynamic_cast<OpSumIfs*>(mpCodeGen.get()))
         {
-            // Obtain cl context
             ::opencl::KernelEnv kEnv;
             ::opencl::setKernelEnv(&kEnv);
             cl_int err;
@@ -3771,7 +3769,7 @@ void DynamicKernel::CreateKernel()
     cl_int err;
     std::string kname = "DynamicKernel" + mKernelSignature;
     // Compile kernel here!!!
-    // Obtain cl context
+
     ::opencl::KernelEnv kEnv;
     ::opencl::setKernelEnv(&kEnv);
     const char* src = mFullProgramSrc.c_str();
@@ -3881,7 +3879,6 @@ void DynamicKernel::CreateKernel()
 
 void DynamicKernel::Launch( size_t nr )
 {
-    // Obtain cl context
     ::opencl::KernelEnv kEnv;
     ::opencl::setKernelEnv(&kEnv);
     cl_int err;
@@ -4058,7 +4055,6 @@ public:
         // Map results back
         mpCLResBuf = mpKernel->GetResultBuffer();
 
-        // Obtain cl context
         ::opencl::KernelEnv kEnv;
         ::opencl::setKernelEnv(&kEnv);
 
@@ -4084,7 +4080,6 @@ public:
 
         rDoc.SetFormulaResults(rTopPos, mpResBuf, mnGroupLength);
 
-        // Obtain cl context
         ::opencl::KernelEnv kEnv;
         ::opencl::setKernelEnv(&kEnv);
 
@@ -4185,7 +4180,6 @@ void genRPNTokens( ScDocument& rDoc, const ScAddress& rTopPos, ScTokenArray& rCo
 
 bool waitForResults()
 {
-    // Obtain cl context
     ::opencl::KernelEnv kEnv;
     ::opencl::setKernelEnv(&kEnv);
 


More information about the Libreoffice-commits mailing list