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
74370959
Kaydet (Commit)
74370959
authored
Eyl 13, 2013
tarafından
Kohei Yoshida
Kaydeden (comit)
Markus Mohrhard
Eyl 19, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct shared library name per platform.
Change-Id: Ie50661aff48f74ea49162d1f893d3d0fc2ee2165
üst
83c8c7f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+6
-2
No files found.
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
74370959
...
@@ -33,6 +33,10 @@
...
@@ -33,6 +33,10 @@
#define OCL_CHECK(value1,value2,str) \
#define OCL_CHECK(value1,value2,str) \
if(value1!=value2) \
if(value1!=value2) \
fprintf(stderr,"[OCL_ERROR] %s\n",str);
fprintf(stderr,"[OCL_ERROR] %s\n",str);
#define OPENCL_DLL_NAME "OpenCL.dll"
#else
#define OPENCL_DLL_NAME "libOpenCL.so"
#endif
#endif
using
namespace
std
;
using
namespace
std
;
...
@@ -46,7 +50,7 @@ int OpenclDevice::initEnv()
...
@@ -46,7 +50,7 @@ int OpenclDevice::initEnv()
{
{
// TODO: This part needs more platform specific handling. On Windows,
// TODO: This part needs more platform specific handling. On Windows,
// the GPU Driver itself installs OpenCL.dll in the system folder.
// the GPU Driver itself installs OpenCL.dll in the system folder.
int
status
=
clewInit
(
"OpenCL.dll"
);
int
status
=
clewInit
(
OPENCL_DLL_NAME
);
if
(
status
<
0
)
if
(
status
<
0
)
return
1
;
return
1
;
...
@@ -2693,7 +2697,7 @@ bool createPlatformInfo(cl_platform_id nPlatformId, OpenclPlatformInfo& rPlatfor
...
@@ -2693,7 +2697,7 @@ bool createPlatformInfo(cl_platform_id nPlatformId, OpenclPlatformInfo& rPlatfor
void
fillOpenCLInfo
(
std
::
vector
<
OpenclPlatformInfo
>&
rPlatforms
)
void
fillOpenCLInfo
(
std
::
vector
<
OpenclPlatformInfo
>&
rPlatforms
)
{
{
int
status
=
clewInit
(
"libOpenCL.so"
);
int
status
=
clewInit
(
OPENCL_DLL_NAME
);
if
(
status
<
0
)
if
(
status
<
0
)
return
;
return
;
...
...
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