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
c5922978
Kaydet (Commit)
c5922978
authored
Tem 04, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sizeof(char) is 1 by definition
Change-Id: Ibd6f74a84b49e609c8771080984832eb61949a68
üst
e79ccf01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+4
-4
No files found.
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
c5922978
...
...
@@ -150,7 +150,7 @@ int OpenclDevice::ConvertToString(const char *filename, char **source) {
file_size
=
ftell
(
file
);
rewind
(
file
);
*
source
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
file_size
+
1
);
*
source
=
(
char
*
)
malloc
(
file_size
+
1
);
if
(
*
source
==
(
char
*
)
NULL
)
{
return
0
;
}
...
...
@@ -209,7 +209,7 @@ int OpenclDevice::WriteBinaryToFile(const char* fileName, const char* birary,
return
0
;
}
fwrite
(
birary
,
sizeof
(
char
)
,
numBytes
,
output
);
fwrite
(
birary
,
1
,
numBytes
,
output
);
fclose
(
output
);
return
1
;
...
...
@@ -252,7 +252,7 @@ int OpenclDevice::GeneratBinFromKernelSource(cl_program program,
for
(
i
=
0
;
i
<
numDevices
;
i
++
)
{
if
(
binarySizes
[
i
]
!=
0
)
{
binaries
[
i
]
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
binarySizes
[
i
]);
binaries
[
i
]
=
(
char
*
)
malloc
(
binarySizes
[
i
]);
if
(
binaries
[
i
]
==
NULL
)
{
return
0
;
}
...
...
@@ -519,7 +519,7 @@ int OpenclDevice::CompileKernelFile(GPUEnv *gpuInfo, const char *buildOption) {
fd1
=
fopen
(
"kernel-build.log"
,
"w+"
);
if
(
fd1
!=
NULL
)
{
fwrite
(
buildLog
,
sizeof
(
char
)
,
length
,
fd1
);
fwrite
(
buildLog
,
1
,
length
,
fd1
);
fclose
(
fd1
);
}
...
...
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