From 43617f14485b79609079c55c872ac088e231db3c Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 5 Feb 2015 23:42:30 +0200 Subject: 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 --- include/opencl/openclwrapper.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/opencl') 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 -- cgit