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
ee19608f
Kaydet (Commit)
ee19608f
authored
Eyl 18, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
void* is dangerous
no idea how that ever worked Change-Id: Ie14c86a241a2fa7e1963385987245cd0ee965fcf
üst
5b0bc1be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+5
-3
No files found.
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
ee19608f
...
...
@@ -437,17 +437,19 @@ int OpenclDevice::compileKernelFile( GPUEnv *gpuInfo, const char *buildOption )
if
(
aGeneratedFiles
.
size
()
==
numDevices
)
{
bBinaryExisted
=
true
;
boost
::
scoped_array
<
char
*>
pBinary
(
new
char
*
[
numDevices
]);
boost
::
scoped_array
<
unsigned
char
*>
pBinary
(
new
unsigned
char
*
[
numDevices
]);
for
(
size_t
i
=
0
;
i
<
numDevices
;
++
i
)
{
sal_uInt64
nSize
;
aGeneratedFiles
[
i
]
->
getSize
(
nSize
);
char
*
binary
=
new
char
[
nSize
];
unsigned
char
*
binary
=
new
unsigned
char
[
nSize
];
sal_uInt64
nBytesRead
;
aGeneratedFiles
[
i
]
->
read
(
binary
,
nSize
,
nBytesRead
);
if
(
nSize
!=
nBytesRead
)
assert
(
false
);
length
=
nBytesRead
;
pBinary
[
i
]
=
binary
;
}
...
...
@@ -467,7 +469,7 @@ int OpenclDevice::compileKernelFile( GPUEnv *gpuInfo, const char *buildOption )
fprintf
(
stderr
,
"Create kernel from binary
\n
"
);
gpuInfo
->
mpArryPrograms
[
idx
]
=
clCreateProgramWithBinary
(
gpuInfo
->
mpContext
,
numDevices
,
mpArryDevsID
.
get
(),
&
length
,
(
const
unsigned
char
**
)
&
pBinary
,
mpArryDevsID
.
get
(),
&
length
,
(
const
unsigned
char
**
)
pBinary
.
get
()
,
&
binary_status
,
&
clStatus
);
if
(
clStatus
!=
CL_SUCCESS
)
{
...
...
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