summaryrefslogtreecommitdiff
path: root/include/opencl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-02-05 23:42:30 +0200
committerTor Lillqvist <tml@collabora.com>2015-02-06 09:35:10 +0200
commit43617f14485b79609079c55c872ac088e231db3c (patch)
treed144d000d6f8023b4508a09ffd55696ea8d391e0 /include/opencl
parent7d7076446efa50a4a4997289272934bd35fa4d58 (diff)
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
Diffstat (limited to 'include/opencl')
-rw-r--r--include/opencl/openclwrapper.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/opencl/openclwrapper.hxx b/include/opencl/openclwrapper.hxx
index 9fde5d63ccc3..75ecbc85a606 100644
--- a/include/opencl/openclwrapper.hxx
+++ b/include/opencl/openclwrapper.hxx
@@ -79,6 +79,12 @@ OPENCL_DLLPUBLIC void getOpenCLDeviceInfo(size_t& rDeviceId, size_t& rPlatformId
*/
OPENCL_DLLPUBLIC void setOpenCLCmdQueuePosition( int nPos );
+/**
+ * Return a textual representation of an OpenCL error code.
+ * (Currently the symbolic name sans the CL_ prefix.)
+ */
+OPENCL_DLLPUBLIC const char* errorString(cl_int nError);
+
}
#endif