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
79ae6389
Kaydet (Commit)
79ae6389
authored
Eki 31, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Kas 10, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make that file platform independent
Change-Id: I65c056faaa95af3493b73a7403f199c8c826d724
üst
5606d14c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
platform_detect.cxx
sc/workben/opencl/platform_detect.cxx
+9
-5
No files found.
sc/workben/opencl/platform_detect.cxx
Dosyayı görüntüle @
79ae6389
...
@@ -7,13 +7,17 @@
...
@@ -7,13 +7,17 @@
using
namespace
std
;
using
namespace
std
;
#ifdef WIN32
#define OPENCL_DLL_NAME "OpenCL.dll"
#elif defined(MACOSX)
#define OPENCL_DLL_NAME NULL
#else
#define OPENCL_DLL_NAME "libOpenCL.so"
#endif
int
main
()
int
main
()
{
{
const
char
*
dllname
=
"libOpenCL.so"
;
// on Linux
int
status
=
clewInit
(
OPENCL_DLL_NAME
);
// const char* dllname = "OpenCL.dll"; // from GPU driver.
// const char* dllname = "amdocl.dll"; // from AMD SDK
// const char* dllname = "intelocl.dll"; // from Intel SDK
int
status
=
clewInit
(
dllname
);
if
(
status
<
0
)
if
(
status
<
0
)
{
{
cout
<<
"failed to load"
<<
endl
;
cout
<<
"failed to load"
<<
endl
;
...
...
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