Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 12/09/2013 03:21 PM, Markus Mohrhard wrote:
The source code is at
http://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/opencl .
You might need something like
http://opengrok.libreoffice.org/xref/core/sc/Library_scopencl.mk#58 for OSX.

After applying

diff --git a/opencl/opencl-info.cxx b/opencl/opencl-info.cxx
index c0f0659..7670966 100644
--- a/opencl/opencl-info.cxx
+++ b/opencl/opencl-info.cxx
@@ -7,6 +7,8 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */

+#if 0
+
 #include "clew.h"

 #if defined(WIN32) | defined(_WIN32) || defined(__WIN32)
@@ -18,6 +20,12 @@
 #define OPENCL_DLL_NAME "libOpenCL.so"
 #endif

+#else
+
+#include "opencl.h"
+
+#endif
+
 #include <iostream>
 #include <fstream>
 #include <string>
@@ -138,7 +146,11 @@ void list_platforms(std::ofstream& file)

 int main(int, char**)
 {
+#if 0
     int status = clewInit(OPENCL_DLL_NAME);
+#else
+    int status = 0;
+#endif
     std::ofstream file("opencl.log");
     if(status < 0)
     {

succeeded to

cd opencl && g++ -o opencl-info opencl-info.cxx -I /System/Library/Frameworks/OpenCL.framework/Headers 
-framework OpenCL && ./opencl-info

and got the attached opencl.log.

Stephan


OpenCL platform
Name: Apple
Vendor: Apple
OpenCL version: OpenCL 1.2 (Aug 24 2013 21:03:27)
Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut 
cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event

  OpenCL device
   Name: Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz
   Version: OpenCL 1.2 
   Vendor: Intel
   Compute Units: 8
   Driver: 1.1


  OpenCL device
   Name: GeForce GT 650M
   Version: OpenCL 1.2 
   Vendor: NVIDIA
   Compute Units: 2
   Driver: 8.18.22 310.40.05f01
   Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut 
cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_byte_addressable_store 
cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics 
cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_APPLE_fp64_basic_ops 
cl_khr_fp64 cl_khr_3d_image_writes cl_khr_depth_images cl_khr_gl_depth_images 
cl_khr_gl_msaa_sharing cl_khr_image2d_from_buffer 


  OpenCL device
   Name: HD Graphics 4000
   Version: OpenCL 1.2 
   Vendor: Intel
   Compute Units: 16
   Driver: 1.2(Sep 19 2013 22:31:23)
   Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut 
cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_global_int32_base_atomics 
cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics 
cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_image2d_from_buffer 
cl_khr_gl_depth_images cl_khr_depth_images 


success

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.