OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomese-simd commits / 111129a

Add documentation.
111129aae04fd7492263eb842d142bb1664417b4
by Linas Vepštas <linasvepstas@gmail.com> · 2025-09-12T15:25:02.000Z

Changed files (1) +21 -0

opencog/atoms/opencl/GenIDL.h +21 -0
……@@ -42,7 +42,28 @@ namespace opencog
4242 *
4343 * At this time, this handles only the simplest kernel interfaes.
4444 * This will need to be extended as experience grows.
45 *
46 * The code here takes OpenCL function declaration prototypes of the form
47 *
48 * kernel void vec_add(global double *sum,
49 * global const double *a,
50 * global const double *b,
51 * const unsigned long sz)
52 *
53 * and converts them to the Atomese expressions
54 *
55 * (Section
56 * (ItemNode "vec_add")
57 * (ConnectorSeq
58 * (Connector (Type 'FloatValue) (Sex "output"))
59 * (Connector (Type 'FloatValue) (Sex "input"))
60 * (Connector (Type 'FloatValue) (Sex "input"))
61 * (Connector (Type 'FloatValue) (Sex "scalar"))))
62 *
63 * See the notes in Design-C.md on why this is a good idea, and
64 * Design-E.md as to why this is a bad idea.
4565 */
66
4667class GenIDL
4768{
4869protected: