11__lambdas_with_boost_compute_">Is
      it possible to use ordinary C++ functions/functors or C++11 lambdas with Boost.Compute?</a>
    </h4>
<p>
      Unfortunately no. OpenCL relies on having C99 source code available at run-time
      in order to execute code on the GPU. Thus compiled C++ functions or C++11 lambdas
      cannot simply be passed to the OpenCL environment to be executed on the GPU.
    </p>
<p>
      This is the reason why I wrote the Boost.Compute lambda library. Basically
      it take