From ef47ce2397d4ed453fe01d994d13a13f442ec3bb Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 1 Jul 2016 18:24:48 +0100 Subject: tdf#90336 - further cleanup of OpenCL options page. Still problematic; since we only show OpenCL as being available if it has already been initialized and used. Change-Id: I5e82a3f778f4f2025408330b6d9da51402d01e79 Reviewed-on: https://gerrit.libreoffice.org/26866 Tested-by: Jenkins Reviewed-by: Michael Meeks --- opencl/source/openclwrapper.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'opencl') diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index ace3210e9013..a54d86a70fc4 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -865,6 +865,11 @@ const char* errorString(cl_int nError) #undef CASE } +bool GPUEnv::isOpenCLEnabled() +{ + return gpuEnv.mpDevID; +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit