The weaver is a critical component of Kelp.Net and is the first object call you will make when running a test. This object houses a variety of OpenCL objects such as:
- An array of ComputeDevices
- A Boolean flag indicating if the GPU is enabled
- A dictionary of KernelSources
The weaver is the place to tell your program whether you will be using a CPU or GPU, and which device (if your system is capable of multiple devices) you will be using. You only need to make a single call to the weaver, at the beginning of your program, similar to what you see here:
You also can avoid using the initialization call of the weaver and allow it to determine ...