summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-08-26 15:16:40 +0300
committerTor Lillqvist <tml@collabora.com>2015-08-26 15:16:40 +0300
commita81f59f83e7886c88bd1fbf1589848aa1297ab8f (patch)
tree19faa6667338fce43c6c24c2637a568b9601fd05 /opencl
parent0c76f53c83016064ad2cc569a4df176937478c98 (diff)
Log OpenCL errors symbolically here, too
Change-Id: I96ef317e974a9db1713ad3005d0efcecb2bacda5
Diffstat (limited to 'opencl')
-rw-r--r--opencl/source/openclwrapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx
index 4da1ec702fb7..d6041e6c850b 100644
--- a/opencl/source/openclwrapper.cxx
+++ b/opencl/source/openclwrapper.cxx
@@ -772,7 +772,7 @@ bool switchOpenCLDevice(const OUString* pDevice, bool bAutoSelect, bool bForceEv
cps[2] = 0;
cl_context context = clCreateContext( cps, 1, &pDeviceId, NULL, NULL, &nState );
if (nState != CL_SUCCESS)
- SAL_WARN("opencl", "clCreateContext failed: " << nState);
+ SAL_WARN("opencl", "clCreateContext failed: " << errorString(nState));
if(nState != CL_SUCCESS || context == NULL)
{
@@ -790,7 +790,7 @@ bool switchOpenCLDevice(const OUString* pDevice, bool bAutoSelect, bool bForceEv
command_queue[i] = clCreateCommandQueue(
context, pDeviceId, 0, &nState);
if (nState != CL_SUCCESS)
- SAL_WARN("opencl", "clCreateCommandQueue failed: " << nState);
+ SAL_WARN("opencl", "clCreateCommandQueue failed: " << errorString(nState));
if (command_queue[i] == NULL || nState != CL_SUCCESS)
{