summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/opencl/openclwrapper.cxx23
-rw-r--r--sc/source/core/opencl/openclwrapper.hxx2
2 files changed, 0 insertions, 25 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index 046297fd0688..6400dc0b5422 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -615,29 +615,6 @@ bool OpenclDevice::buildProgramFromBinary(const char* buildOption, GPUEnv* gpuIn
return buildProgram(buildOption, gpuInfo, idx);
}
-int OpenclDevice::compileKernelFile( GPUEnv *gpuInfo, const char *buildOption )
-{
- int idx;
- const char* filename = "kernel.cl";
- fprintf(stderr, "compileKernelFile ... \n");
- if ( cachedOfKernerPrg(gpuInfo, filename) == 1 )
- {
- return 1;
- }
-
- idx = gpuInfo->mnFileCount;
-
- bool bSuccess = buildProgramFromBinary(buildOption, gpuInfo, filename, idx);
- if(!bSuccess)
- bSuccess = buildProgramFromSource(buildOption, gpuInfo, filename, idx);
-
- strcpy( gpuInfo->mArryKnelSrcFile[idx], filename );
-
- gpuInfo->mnFileCount += 1;
-
- return bSuccess;
-}
-
int OpenclDevice::initOpenclRunEnv( int argc )
{
if ( MAX_CLKERNEL_NUM <= 0 )
diff --git a/sc/source/core/opencl/openclwrapper.hxx b/sc/source/core/opencl/openclwrapper.hxx
index dd9595490ec5..aee27789ba59 100644
--- a/sc/source/core/opencl/openclwrapper.hxx
+++ b/sc/source/core/opencl/openclwrapper.hxx
@@ -172,13 +172,11 @@ public:
static int releaseOpenclRunEnv();
static int initOpenclRunEnv( GPUEnv *gpu );
static int releaseOpenclEnv( GPUEnv *gpuInfo );
- static int compileKernelFile( GPUEnv *gpuInfo, const char *buildOption );
static int initOpenclRunEnv( int argc );
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 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 bool buildProgramFromSource(const char* buildOption, GPUEnv* gpuEnv, const char* filename, int idx);
static bool buildProgramFromBinary(const char* buildOption, GPUEnv* gpuEnv, const char* filename, int idx);