Commit Graph

13 Commits

Author SHA1 Message Date
Tor Lillqvist
770c92b048 Add SAL_INFOs for tracing kernel and program life cycle
Change-Id: Icb28114d3939063dedaedbd0ce370210b3721fc5
2015-02-10 20:29:42 +02:00
Caolán McNamara
c7258cfccd shared_ptr<T>(new T(args)) -> make_shared<T>(args)
and boost:make_shared->std::make_shared

Change-Id: Ic1e187c52c856a7b27817967b2caa8920f23a98d
2015-02-06 16:45:13 +00:00
Tor Lillqvist
43617f1448 Move OpenCLError::strerror() from sc to opencl, and rename to errorString()
There is nothing Calc-specific in this function, and surely it will be good to
output OpenCL errors symbolically also in the opencl module.

Change-Id: Ibe7d0d036f24dd87e06b8290224e1033dda0f3d1
2015-02-06 09:35:10 +02:00
Tor Lillqvist
119d9c33b0 The horrible CHECK_OPENCL() fortunately is used only in openclwrapper.cxx
So move it there. While at it, make it use SAL_WARN() instead of
printf.

Also, add a few more SAL_WARN() and SAL_INFO().

Change-Id: Ib058fb20d07757331ca364a8d7649abc59e9494b
2015-02-05 15:01:16 +02:00
Andrea Gelmini
07e84cae98 Fix typo comments Resouce->Resource
Change-Id: Ia3195a21ad46b4c9830ee6293135dfe5945986a2
Reviewed-on: https://gerrit.libreoffice.org/13985
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-01-19 06:13:25 +00:00
Kohei Yoshida
e12fcd050a Set up foundation for supporting multiple OpenCL command queues per device.
Change-Id: Ia63c8bd6552cdbc2b5eabadaa044b9f1eca5f664
2015-01-07 16:39:38 -05:00
Stephan Bergmann
ebf88643f3 opencl: Use appropriate OUString functions on string constants
Change-Id: I0c461fa2c2ac62f9dd63e793f8cbc0c68c510082
2014-12-18 14:12:29 +01:00
Kohei Yoshida
a4681be534 Enable out-of-order kernel execution.
Change-Id: I4dbc69ca2618c37184ffdc217493e3880e149617
2014-12-17 16:39:06 -05:00
Tor Lillqvist
52f9606ed0 The OpenCLEnv struct is used only inside openclwrapper.cxx
Change-Id: I95fbee302213e6ced469dd7a2a1c254178159357
2014-11-27 19:12:21 +02:00
Tor Lillqvist
598f25c857 Clean up confusing OpenCL code a bit
Get rid of the silly OpenCLDevice class that had only static members. We can
as well just use namespacing. Remove functions only used internally in
openclwrapper.cxx from the now public openclwrapper.hxx header.

Change-Id: If7336edd262c772564dc13e64113d72d0b52428c
2014-11-27 19:12:21 +02:00
Tor Lillqvist
79d6813609 Use correct SAL_INFO log area
Change-Id: I47e6dcf18fe141b8dba33a8c3cd83f80950045cd
2014-11-27 15:41:49 +02:00
Tor Lillqvist
a70b717ef8 Move more Calc-independent OpenCL stuff from the sc to the opencl module
No cleanups yet. Just removed the "sc" namespace parts now when this stuff is
no longer Calc-specific. There is still horribly confusing use of the same
OpenCLDevice name for both a class and as a namespace, for instance. And the
OpenCLDevice class has only public static members even, so effectively it acts
as just a namespace anyway... Etc.

Change-Id: Idc5f30a721df0101426c676f04a85e02c5dc8443
2014-11-27 15:32:58 +02:00
Tor Lillqvist
c1d09b1ad0 Work in progress: Move Calc-independend OpenCL configuration out of sc
Intermediate commit. More changes will follow: The device selection
logic needs to be moved, too. (And cleaned up.) Instead of the
separate formulacalculationoptions dialog we should simply have a
normal options page for those OpenCL-related settings that will remain
purely Calc-specific, like the formula opcode subsetting.

Change-Id: Id60d95e80d377cbbf5780beb473b221bce06b5e5
2014-11-27 11:07:37 +02:00