Skip to content
Anthony Liot edited this page Oct 13, 2013 · 20 revisions

For build your sample you simply need to use emcc for build you C/C++ sources. You can take a look to the Makefile inside the webcl samples folder.

The WebCL-translator add some build settings for have more info during the execution of the OpenCL/WebCL code.

Settings

  1. OPENCL_OLD_VERSION

Enable the first version of WebCL-translator, this version it's compatible for Firefox and Webkit. It's not compatible with cl.hpp headers, doesn't implement all the OpenCL function. The CL/GL interoperability it's partially supported.

By default the settings is disabled, and use the last version of WebCL-translator, only compatible with WebKit. With an implementation of all OpenCL function, support of cl.hpp header.

  1. OPENCL_DEBUG

  2. OPENCL_GRAB_TRACE

  3. OPENCL_PRINT_TRACE

  4. OPENCL_PROFILE

  5. OPENCL_CHECK_SET_POINTER

  6. OPENCL_CHECK_VALID_OBJECT

Clone this wiki locally