summaryrefslogtreecommitdiff
path: root/include/opencl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-07-01 18:24:48 +0100
committerMichael Meeks <michael.meeks@collabora.com>2016-07-01 19:02:57 +0000
commitef47ce2397d4ed453fe01d994d13a13f442ec3bb (patch)
tree8055cdc3a1fe6e60d61cbe0171f0ff0c60afd2ef /include/opencl
parent3ebfc5b95559a9bcb2fc0508b51fd00e8eb20260 (diff)
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 <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/opencl')
-rw-r--r--include/opencl/openclwrapper.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/opencl/openclwrapper.hxx b/include/opencl/openclwrapper.hxx
index 178c685834ae..b83c1fc2ff00 100644
--- a/include/opencl/openclwrapper.hxx
+++ b/include/opencl/openclwrapper.hxx
@@ -35,7 +35,7 @@ struct KernelEnv
cl_program mpkProgram;
};
-struct GPUEnv
+struct OPENCL_DLLPUBLIC GPUEnv
{
//share vb in all modules in hb library
cl_platform_id mpPlatformID;
@@ -48,9 +48,12 @@ struct GPUEnv
bool mnKhrFp64Flag;
bool mnAmdFp64Flag;
cl_uint mnPreferredVectorWidthFloat;
+
+ static bool isOpenCLEnabled();
};
extern OPENCL_DLLPUBLIC GPUEnv gpuEnv;
+
OPENCL_DLLPUBLIC bool generatBinFromKernelSource( cl_program program, const char * clFileName );
OPENCL_DLLPUBLIC bool buildProgramFromBinary(const char* buildOption, GPUEnv* gpuEnv, const char* filename, int idx);
OPENCL_DLLPUBLIC void setKernelEnv( KernelEnv *envInfo );