Jump to content

OpenCL: Difference between revisions

441 bytes added ,  21 October 2019
No edit summary
Line 8: Line 8:


==Getting Started==
==Getting Started==
===C/C++===
===C===
See https://www.eriksmistad.no/getting-started-with-opencl-and-gpu-computing/
See https://www.eriksmistad.no/getting-started-with-opencl-and-gpu-computing/


Line 133: Line 133:
}
}
</syntaxhighlight>
</syntaxhighlight>
===C++===
[https://github.khronos.org/OpenCL-CLHPP/index.html#intro C++ Bindings]<br>
While you can use the C bindings in your C++ application, Khronos also provides a set of C++ bindings in <code>CL/cl2.hpp</code> which are much easier to use alongside std containers such as <code>std::vector</code>. When using C++ bindings, you also do not need to worry about releasing buffers since these are reference-counted.
TODO: Provide an example.


===Julia===
===Julia===
See [https://github.com/JuliaGPU/OpenCL.jl OpenCL.jl].
See [https://github.com/JuliaGPU/OpenCL.jl OpenCL.jl].


==Usage==
==Usage==