![]() |
SystemEX
Lacking
Additional generic collection types missing in .net
|
Beginner-friendly example demonstrating how to use a native RAM-based compute kernel in SystemEx. More...
Classes | |
| class | KernelRamExamples.ExampleRamKernelAdd |
| Example implementation of a RAM‑based compute kernel that adds two integers. More... | |
| class | KernelRamExamples.Programm |
| Example program demonstrating how to run the RAM kernel. | |
Functions | |
| delegate int | KernelRamExamples.MyKernelFunction (IntPtr A, int dwSize, IntPtr B, int dwSizeB, IntPtr C) |
Beginner-friendly example demonstrating how to use a native RAM-based compute kernel in SystemEx.
This example shows how SystemEx executes a native C function through the RAM kernel backend. It demonstrates the complete workflow:
The example loads a native DLL containing a function with the following signature:
The function adds the integer stored in buffer A to the integer stored in buffer B, and writes the result into buffer C.
SystemEx provides a device abstraction layer that allows:
The class ExampleRamKernelAdd inherits from NativeRAMKernel, which manages:
The program performs the following steps:
This example is intentionally simple and focuses on demonstrating the mechanics of native kernel execution in SystemEx.