summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl/openclwrapper.hxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-17 23:04:54 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-19 17:03:26 +0200
commita321536cc682e98ad677deae3fa36b4dd25520f5 (patch)
treebb718e88fe046a84c78cba6b842e906e45856706 /sc/source/core/opencl/openclwrapper.hxx
parent7f7c930dcd9195a05fb133ebb393dcbd37e2f66c (diff)
read the binary files from the cached folder
Change-Id: Ifc5084a3d8ef661e3b3fca7fbc76e1c0c62b2056
Diffstat (limited to 'sc/source/core/opencl/openclwrapper.hxx')
-rw-r--r--sc/source/core/opencl/openclwrapper.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/opencl/openclwrapper.hxx b/sc/source/core/opencl/openclwrapper.hxx
index 7bcf5c4ee337..c81c313dd96d 100644
--- a/sc/source/core/opencl/openclwrapper.hxx
+++ b/sc/source/core/opencl/openclwrapper.hxx
@@ -13,6 +13,9 @@
#include <config_features.h>
#include <formula/opcode.hxx>
#include <sal/detail/log.h>
+#include <osl/file.hxx>
+#include <vector>
+#include <boost/shared_ptr.hpp>
#include <cassert>
#include "platforminfo.hxx"
@@ -174,7 +177,7 @@ public:
static int cachedOfKernerPrg( const GPUEnv *gpuEnvCached, const char * clFileName );
static int generatBinFromKernelSource( cl_program program, const char * clFileName );
static int writeBinaryToFile( const OString& rName, const char* birary, size_t numBytes );
- static int binaryGenerated( const char * clFileName, FILE ** fhandle );
+ static std::vector<boost::shared_ptr<osl::File> > binaryGenerated( const char * clFileName, cl_context context);
static int compileKernelFile( const char *filename, GPUEnv *gpuInfo, const char *buildOption );
static int initOpenclAttr( OpenCLEnv * env );