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
3ecb8eff
Kaydet (Commit)
3ecb8eff
authored
Kas 12, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Check blacklist and whitelist here, too
Change-Id: I0e411dccf445cb8d1e2e5238c1164d7ac18d8636
üst
6f584490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
opencl_device.cxx
sc/source/core/opencl/opencl_device.cxx
+26
-0
No files found.
sc/source/core/opencl/opencl_device.cxx
Dosyayı görüntüle @
3ecb8eff
...
...
@@ -26,6 +26,8 @@
#include <boost/scoped_ptr.hpp>
#include "opencl_device.hxx"
#include "openclwrapper.hxx"
#include "platforminfo.hxx"
#define INPUTSIZE 15360
#define OUTPUTSIZE 15360
...
...
@@ -400,6 +402,30 @@ ds_status pickBestDevice(ds_profile* profile, int* bestDeviceIdx)
ds_device
device
=
profile
->
devices
[
d
];
LibreOfficeDeviceScore
*
pScore
=
(
LibreOfficeDeviceScore
*
)
device
.
score
;
// Check blacklist and whitelist for actual devices
if
(
device
.
type
==
DS_DEVICE_OPENCL_DEVICE
)
{
// There is a silly impedance mismatch here. Why do we
// need two different ways to describe an OpenCL platform
// and an OpenCL device driver?
OpenCLPlatformInfo
aPlatform
;
OpenCLDeviceInfo
aDevice
;
// We know that only the below fields are used by checkForKnownBadCompilers()
aPlatform
.
maVendor
=
OUString
(
device
.
oclPlatformVendor
,
strlen
(
device
.
oclPlatformVendor
),
RTL_TEXTENCODING_UTF8
);
aDevice
.
maName
=
OUString
(
device
.
oclDeviceName
,
strlen
(
device
.
oclDeviceName
),
RTL_TEXTENCODING_UTF8
);
aDevice
.
maDriver
=
OUString
(
device
.
oclDriverVersion
,
strlen
(
device
.
oclDriverVersion
),
RTL_TEXTENCODING_UTF8
);
// If blacklisted or not whitelisted, ignore it
if
(
opencl
::
checkForKnownBadCompilers
(
aPlatform
,
aDevice
))
{
SAL_INFO
(
"sc.opencl.device"
,
"Device["
<<
d
<<
"] "
<<
device
.
oclDeviceName
<<
" is blacklisted or not whitelisted"
);
pScore
->
fTime
=
DBL_MAX
;
pScore
->
bNoCLErrors
=
true
;
}
}
double
fScore
=
DBL_MAX
;
if
(
pScore
)
{
...
...
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