Kaydet (Commit) 74ab9fb5 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Bin an unused function

Change-Id: Iedea7622d27e263b21943f7696ff71fb7fbd7c80
üst aaa0ead8
...@@ -615,29 +615,6 @@ bool OpenclDevice::buildProgramFromBinary(const char* buildOption, GPUEnv* gpuIn ...@@ -615,29 +615,6 @@ bool OpenclDevice::buildProgramFromBinary(const char* buildOption, GPUEnv* gpuIn
return buildProgram(buildOption, gpuInfo, idx); 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 ) int OpenclDevice::initOpenclRunEnv( int argc )
{ {
if ( MAX_CLKERNEL_NUM <= 0 ) if ( MAX_CLKERNEL_NUM <= 0 )
......
...@@ -172,13 +172,11 @@ public: ...@@ -172,13 +172,11 @@ public:
static int releaseOpenclRunEnv(); static int releaseOpenclRunEnv();
static int initOpenclRunEnv( GPUEnv *gpu ); static int initOpenclRunEnv( GPUEnv *gpu );
static int releaseOpenclEnv( GPUEnv *gpuInfo ); static int releaseOpenclEnv( GPUEnv *gpuInfo );
static int compileKernelFile( GPUEnv *gpuInfo, const char *buildOption );
static int initOpenclRunEnv( int argc ); static int initOpenclRunEnv( int argc );
static int cachedOfKernerPrg( const GPUEnv *gpuEnvCached, const char * clFileName ); static int cachedOfKernerPrg( const GPUEnv *gpuEnvCached, const char * clFileName );
static int generatBinFromKernelSource( cl_program program, 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 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 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 buildProgramFromSource(const char* buildOption, GPUEnv* gpuEnv, const char* filename, int idx);
static bool buildProgramFromBinary(const char* buildOption, GPUEnv* gpuEnv, const char* filename, int idx); static bool buildProgramFromBinary(const char* buildOption, GPUEnv* gpuEnv, const char* filename, int idx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment