summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/opencl/openclwrapper.cxx10
-rw-r--r--sc/source/core/opencl/openclwrapper.hxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index f9acfd85fe2e..b1a8ecc3aee8 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -44,7 +44,7 @@ using namespace std;
namespace sc { namespace opencl {
GPUEnv OpenclDevice::gpuEnv;
-int OpenclDevice::isInited =0;
+bool OpenclDevice::bIsInited = false;
namespace {
@@ -310,7 +310,7 @@ bool OpenclDevice::initOpenclAttr( OpenCLEnv * env )
void OpenclDevice::releaseOpenclEnv( GPUEnv *gpuInfo )
{
- if ( !isInited )
+ if ( !bIsInited )
{
return;
}
@@ -325,7 +325,7 @@ void OpenclDevice::releaseOpenclEnv( GPUEnv *gpuInfo )
clReleaseContext( gpuEnv.mpContext );
gpuEnv.mpContext = NULL;
}
- isInited = 0;
+ bIsInited = false;
gpuInfo->mnIsUserCreated = 0;
free( gpuInfo->mpArryDevsID );
@@ -479,7 +479,7 @@ bool OpenclDevice::initOpenclRunEnv( int argc )
if ( ( argc > MAX_CLFILE_NUM ) || ( argc < 0 ) )
return true;
- if ( !isInited )
+ if ( !bIsInited )
{
registOpenclKernel();
//initialize devices, context, command_queue
@@ -506,7 +506,7 @@ bool OpenclDevice::initOpenclRunEnv( int argc )
{
SAL_INFO("sc.opencl", "USE float type");
}
- isInited = 1;
+ bIsInited = true;
}
return false;
}
diff --git a/sc/source/core/opencl/openclwrapper.hxx b/sc/source/core/opencl/openclwrapper.hxx
index 0f3b11452b5e..1112d088c14a 100644
--- a/sc/source/core/opencl/openclwrapper.hxx
+++ b/sc/source/core/opencl/openclwrapper.hxx
@@ -151,7 +151,7 @@ class OpenclDevice
{
public:
static GPUEnv gpuEnv;
- static int isInited;
+ static bool bIsInited;
static OString maCacheFolder;
static void registOpenclKernel();