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
0d0d3a05
Kaydet (Commit)
0d0d3a05
authored
Eyl 30, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make source code opencl 1.0 compliant
Change-Id: Id6055194eb225b85a5c66c5cf9fb44ad342df1a7
üst
19e48764
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+8
-6
No files found.
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
0d0d3a05
...
...
@@ -259,11 +259,12 @@ OString createFileName(cl_device_id deviceId, const char* clFileName)
std
::
vector
<
boost
::
shared_ptr
<
osl
::
File
>
>
OpenclDevice
::
binaryGenerated
(
const
char
*
clFileName
,
cl_context
context
)
{
cl_uin
t
numDevices
=
0
;
size_
t
numDevices
=
0
;
std
::
vector
<
boost
::
shared_ptr
<
osl
::
File
>
>
aGeneratedFiles
;
cl_int
clStatus
=
clGetContextInfo
(
context
,
CL_CONTEXT_NUM_DEVICES
,
sizeof
(
numDevices
),
&
numDevices
,
NULL
);
cl_int
clStatus
=
clGetContextInfo
(
context
,
CL_CONTEXT_DEVICES
,
0
,
NULL
,
&
numDevices
);
numDevices
/=
sizeof
(
numDevices
);
if
(
clStatus
!=
CL_SUCCESS
)
return
aGeneratedFiles
;
...
...
@@ -465,9 +466,10 @@ int OpenclDevice::compileKernelFile( GPUEnv *gpuInfo, const char *buildOption )
idx
=
gpuInfo
->
mnFileCount
;
cl_uint
numDevices
;
clStatus
=
clGetContextInfo
(
gpuInfo
->
mpContext
,
CL_CONTEXT_NUM_DEVICES
,
sizeof
(
numDevices
),
&
numDevices
,
NULL
);
size_t
numDevices
;
clStatus
=
clGetContextInfo
(
gpuInfo
->
mpContext
,
CL_CONTEXT_DEVICES
,
0
,
NULL
,
&
numDevices
);
numDevices
/=
sizeof
(
numDevices
);
CHECK_OPENCL
(
clStatus
,
"clGetContextInfo"
);
std
::
vector
<
boost
::
shared_ptr
<
osl
::
File
>
>
aGeneratedFiles
=
binaryGenerated
(
...
...
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