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
e3ece4b3
Kaydet (Commit)
e3ece4b3
authored
Kas 20, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Handle a case where the profile initialization fails.
Change-Id: Ifd1ab147926ab4f1d34161840d17fdf1ab3f9810
üst
1283dcb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
opencl_device.cxx
sc/source/core/opencl/opencl_device.cxx
+8
-1
No files found.
sc/source/core/opencl/opencl_device.cxx
Dosyayı görüntüle @
e3ece4b3
...
@@ -428,9 +428,16 @@ ds_device getDeviceSelection(const char* sProfilePath, bool bForceSelection)
...
@@ -428,9 +428,16 @@ ds_device getDeviceSelection(const char* sProfilePath, bool bForceSelection)
{
{
/* Setup */
/* Setup */
ds_status
status
;
ds_status
status
;
ds_profile
*
profile
;
ds_profile
*
profile
=
NULL
;
status
=
initDSProfile
(
&
profile
,
"LibreOffice v0.1"
);
status
=
initDSProfile
(
&
profile
,
"LibreOffice v0.1"
);
if
(
!
profile
)
{
// failed to initialize profile.
selectedDevice
.
oclDeviceID
=
NULL
;
return
selectedDevice
;
}
/* Try reading scores from file */
/* Try reading scores from file */
std
::
string
tmpStr
(
sProfilePath
);
std
::
string
tmpStr
(
sProfilePath
);
const
char
*
fileName
=
tmpStr
.
append
(
"sc_opencl_device_profile.dat"
).
c_str
();
const
char
*
fileName
=
tmpStr
.
append
(
"sc_opencl_device_profile.dat"
).
c_str
();
...
...
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