Jump to content

OpenCL: Difference between revisions

429 bytes added ,  19 September 2019
no edit summary
No edit summary
No edit summary
Line 136: Line 136:
===Julia===
===Julia===
See [https://github.com/JuliaGPU/OpenCL.jl OpenCL.jl].
See [https://github.com/JuliaGPU/OpenCL.jl OpenCL.jl].
=Usage=
==Types==
[https://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/scalarDataTypes.html Scalar Data Types]
While all OpenCL devices support single-precision floats, not all support double-precision doubles.<br>
Just like glsl, OpenCL supports vector types such
<syntaxhighlight lang="c">float3 my_vec = (float3)(1.0);</syntaxhighlight>
where its elements are accessed using x,y,z as <code>my_vec.x</code>.<br>




=Advanced Topics=
=Advanced Topics=
====Local Memory v. Global Memory====
====Local Memory v. Global Memory====