diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-02-05 13:16:09 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-02-05 15:01:16 +0200 |
commit | 119d9c33b03790d52d57a27854064ec554a5777c (patch) | |
tree | 6b779eb0652d495c21d2858a6095c7a304d4ee3a /include/opencl | |
parent | 32632975a3d88b6a8d6fad31f541b41527abe141 (diff) |
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
Diffstat (limited to 'include/opencl')
-rw-r--r-- | include/opencl/openclwrapper.hxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/opencl/openclwrapper.hxx b/include/opencl/openclwrapper.hxx index d86981926267..9fde5d63ccc3 100644 --- a/include/opencl/openclwrapper.hxx +++ b/include/opencl/openclwrapper.hxx @@ -24,14 +24,6 @@ #include <osl/file.hxx> #include <rtl/string.hxx> - -#define CHECK_OPENCL(status,name) \ -if( status != CL_SUCCESS ) \ -{ \ - printf ("OpenCL error code is %d at " SAL_DETAIL_WHERE " when %s .\n", status, name); \ - return false; \ -} - #define MAX_CLFILE_NUM 50 #define OPENCL_CMDQUEUE_SIZE 1 // number of command queues per OpenCL device. |