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
cab3e225
Kaydet (Commit)
cab3e225
authored
Haz 16, 2013
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OpenCL code cleanups
Change-Id: Iab75b11f13856a6e631587e22b5d76977b8c7448
üst
f01985a2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
RepositoryExternal.mk
RepositoryExternal.mk
+1
-1
configure.ac
configure.ac
+2
-2
CppunitTest_sc_ucalc.mk
sc/CppunitTest_sc_ucalc.mk
+3
-0
openclwrapper.cxx
sc/source/core/opencl/openclwrapper.cxx
+2
-3
No files found.
RepositoryExternal.mk
Dosyayı görüntüle @
cab3e225
...
...
@@ -29,7 +29,7 @@
# External headers
ifeq ($(ENABLE_OPEN
G
CL),TRUE)
ifeq ($(ENABLE_OPENCL),TRUE)
define gb_LinkTarget__use_opencl
$(call gb_LinkTarget_set_include,$(1),\
...
...
configure.ac
Dosyayı görüntüle @
cab3e225
...
...
@@ -9756,8 +9756,8 @@ if test "z$with_opencl_sdk" = "z"; then
else
if test -d $with_opencl_sdk/include; then
ENABLE_OPENCL=TRUE
OPENCL_CFLAGS="-I
$with_opencl_sdk/include"
OPENCL_LIBS="-L
$with_opencl_sdk/lib/x86 -lOpenCL"
OPENCL_CFLAGS="-I$with_opencl_sdk/include"
OPENCL_LIBS="-L$with_opencl_sdk/lib/x86 -lOpenCL"
AC_MSG_RESULT([found at path $with_opencl_sdk])
else
AC_MSG_ERROR([no headers found found at $with_opencl_sdk/include ])
...
...
sc/CppunitTest_sc_ucalc.mk
Dosyayı görüntüle @
cab3e225
...
...
@@ -20,6 +20,9 @@ $(eval $(call gb_CppunitTest_use_library_objects,sc_ucalc,sc))
ifeq ($(ENABLE_TELEPATHY),TRUE)
$(eval $(call gb_CppunitTest_use_libraries,sc_ucalc,tubes))
endif
ifeq ($(ENABLE_OPENCL),TRUE)
$(eval $(call gb_CppunitTest_use_externals,sc_ucalc,opencl))
endif
$(eval $(call gb_CppunitTest_use_externals,sc_ucalc,\
boost_headers \
...
...
sc/source/core/opencl/openclwrapper.cxx
Dosyayı görüntüle @
cab3e225
...
...
@@ -11,6 +11,7 @@
#include <stdlib.h>
#include <string.h>
#include "random.hxx"
#include "openclwrapper.hxx"
#include "oclkernels.hxx"
...
...
@@ -1003,10 +1004,8 @@ double OclCalc::OclProcess(cl_kernel_function function, double *data,
double
OclCalc
::
OclTest
()
{
double
data
[
NUM
];
srand
((
unsigned
int
)
time
(
NULL
));
for
(
int
i
=
0
;
i
<
NUM
;
i
++
)
{
data
[
i
]
=
rand
()
/
(
RAND_MAX
+
1.0
);
data
[
i
]
=
sc
::
rng
::
uniform
(
);
fprintf
(
stderr
,
"%f
\t
"
,
data
[
i
]);
}
OclProcess
(
&
OclFormulax
,
data
,
AVG
);
...
...
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