CppunitTest_sc_opencl_test clBuildProgram CL_BUILD_PROGRAM_FAILURE

Stephan Bergmann sbergman at redhat.com
Mon Dec 9 08:44:22 PST 2013


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: opencl.log
Type: text/x-log
Size: 1557 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131209/7ff2dd30/attachment.bin>


More information about the LibreOffice mailing list