Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3d160b1f
Kaydet (Commit)
3d160b1f
authored
Şub 28, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert int flag OpenclDevice::isInited to bool
Change-Id: I3283be819e1686b70a85aa05844deaaca17db0db
üst
f9c68a3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+5
-5
openclwrapper.hxx
sc/source/core/opencl/openclwrapper.hxx
+1
-1
No files found.
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
3d160b1f
...
@@ -44,7 +44,7 @@ using namespace std;
...
@@ -44,7 +44,7 @@ using namespace std;
namespace
sc
{
namespace
opencl
{
namespace
sc
{
namespace
opencl
{
GPUEnv
OpenclDevice
::
gpuEnv
;
GPUEnv
OpenclDevice
::
gpuEnv
;
int
OpenclDevice
::
isInited
=
0
;
bool
OpenclDevice
::
bIsInited
=
false
;
namespace
{
namespace
{
...
@@ -310,7 +310,7 @@ bool OpenclDevice::initOpenclAttr( OpenCLEnv * env )
...
@@ -310,7 +310,7 @@ bool OpenclDevice::initOpenclAttr( OpenCLEnv * env )
void
OpenclDevice
::
releaseOpenclEnv
(
GPUEnv
*
gpuInfo
)
void
OpenclDevice
::
releaseOpenclEnv
(
GPUEnv
*
gpuInfo
)
{
{
if
(
!
i
sInited
)
if
(
!
bI
sInited
)
{
{
return
;
return
;
}
}
...
@@ -325,7 +325,7 @@ void OpenclDevice::releaseOpenclEnv( GPUEnv *gpuInfo )
...
@@ -325,7 +325,7 @@ void OpenclDevice::releaseOpenclEnv( GPUEnv *gpuInfo )
clReleaseContext
(
gpuEnv
.
mpContext
);
clReleaseContext
(
gpuEnv
.
mpContext
);
gpuEnv
.
mpContext
=
NULL
;
gpuEnv
.
mpContext
=
NULL
;
}
}
isInited
=
0
;
bIsInited
=
false
;
gpuInfo
->
mnIsUserCreated
=
0
;
gpuInfo
->
mnIsUserCreated
=
0
;
free
(
gpuInfo
->
mpArryDevsID
);
free
(
gpuInfo
->
mpArryDevsID
);
...
@@ -479,7 +479,7 @@ bool OpenclDevice::initOpenclRunEnv( int argc )
...
@@ -479,7 +479,7 @@ bool OpenclDevice::initOpenclRunEnv( int argc )
if
(
(
argc
>
MAX_CLFILE_NUM
)
||
(
argc
<
0
)
)
if
(
(
argc
>
MAX_CLFILE_NUM
)
||
(
argc
<
0
)
)
return
true
;
return
true
;
if
(
!
i
sInited
)
if
(
!
bI
sInited
)
{
{
registOpenclKernel
();
registOpenclKernel
();
//initialize devices, context, command_queue
//initialize devices, context, command_queue
...
@@ -506,7 +506,7 @@ bool OpenclDevice::initOpenclRunEnv( int argc )
...
@@ -506,7 +506,7 @@ bool OpenclDevice::initOpenclRunEnv( int argc )
{
{
SAL_INFO
(
"sc.opencl"
,
"USE float type"
);
SAL_INFO
(
"sc.opencl"
,
"USE float type"
);
}
}
isInited
=
1
;
bIsInited
=
true
;
}
}
return
false
;
return
false
;
}
}
...
...
sc/source/core/opencl/openclwrapper.hxx
Dosyayı görüntüle @
3d160b1f
...
@@ -151,7 +151,7 @@ class OpenclDevice
...
@@ -151,7 +151,7 @@ class OpenclDevice
{
{
public
:
public
:
static
GPUEnv
gpuEnv
;
static
GPUEnv
gpuEnv
;
static
int
i
sInited
;
static
bool
bI
sInited
;
static
OString
maCacheFolder
;
static
OString
maCacheFolder
;
static
void
registOpenclKernel
();
static
void
registOpenclKernel
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment