[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at collabora.com
Fri Oct 31 04:19:20 PDT 2014
sc/source/core/opencl/formulagroupcl.cxx | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
New commits:
commit 292256d2f24ce62d53c721539e7670b8c7d8d9f1
Author: Tor Lillqvist <tml at collabora.com>
Date: Fri Oct 31 13:02:36 2014 +0200
Append kernel signature to the log area in the SAL_INFO dump of its source
Makes it possible to look at the OpenCL source for just a specific function,
by setting for instance SAL_LOG=+INFO.sc.opencl.source.nop_VLookup.
Change-Id: Ie9e1f7b1542043717ac3652226713f4ab88883e1
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index b03c087..86d8535 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -3287,7 +3287,14 @@ public:
decl << ") {\n\tint gid0 = get_global_id(0);\n\tresult[gid0] = " <<
DK->GenSlidingWindowDeclRef(false) << ";\n}\n";
mFullProgramSrc = decl.str();
- SAL_INFO("sc.opencl.source", "Program to be compiled:\n" << mFullProgramSrc);
+ std::stringstream area;
+#ifdef SAL_DETAIL_ENABLE_LOG_INFO
+ if (mKernelSignature[0] == '_')
+ area << "sc.opencl.source." << mKernelSignature.substr(1, std::string::npos);
+ else
+ area << "sc.opencl.source." << mKernelSignature;
+ SAL_INFO(area.str().c_str(), "Program to be compiled:\n" << mFullProgramSrc);
+#endif
}
/// Produce kernel hash
std::string GetMD5()
More information about the Libreoffice-commits
mailing list