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
3be59e38
Kaydet (Commit)
3be59e38
authored
Eyl 13, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
store the platform and device id for later look-up
Change-Id: If95858d3812c913a3695f04bcfac76325171d102
üst
783179c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
platforminfo.hxx
sc/inc/platforminfo.hxx
+2
-2
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+3
-1
No files found.
sc/inc/platforminfo.hxx
Dosyayı görüntüle @
3be59e38
...
...
@@ -20,7 +20,7 @@ namespace sc {
struct
SC_DLLPUBLIC
OpenclDeviceInfo
{
size_t
mnId
;
void
*
device
;
OUString
maName
;
OUString
maVendor
;
size_t
mnMemory
;
...
...
@@ -30,7 +30,7 @@ struct SC_DLLPUBLIC OpenclDeviceInfo
struct
SC_DLLPUBLIC
OpenclPlatformInfo
{
void
*
mnId
;
void
*
platform
;
OUString
maVendor
;
OUString
maName
;
std
::
vector
<
OpenclDeviceInfo
>
maDevices
;
...
...
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
3be59e38
...
...
@@ -2640,6 +2640,8 @@ namespace {
void
createDeviceInfo
(
cl_device_id
aDeviceId
,
OpenclPlatformInfo
&
rPlatformInfo
)
{
OpenclDeviceInfo
aDeviceInfo
;
aDeviceInfo
.
device
=
aDeviceId
;
char
pName
[
64
];
cl_int
nState
=
clGetDeviceInfo
(
aDeviceId
,
CL_DEVICE_NAME
,
64
,
pName
,
NULL
);
if
(
nState
!=
CL_SUCCESS
)
...
...
@@ -2680,7 +2682,7 @@ void createDeviceInfo(cl_device_id aDeviceId, OpenclPlatformInfo& rPlatformInfo)
bool
createPlatformInfo
(
cl_platform_id
nPlatformId
,
OpenclPlatformInfo
&
rPlatformInfo
)
{
rPlatformInfo
.
mnId
=
nPlatformId
;
rPlatformInfo
.
platform
=
nPlatformId
;
char
pName
[
64
];
cl_int
nState
=
clGetPlatformInfo
(
nPlatformId
,
CL_PLATFORM_NAME
,
64
,
pName
,
NULL
);
...
...
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