Description Usage Arguments Details Value See Also Examples
setOpencl
enables or disables OpenCL computation.
1 | setOpencl(deviceType)
|
deviceType |
The type of OpenCL device, including three options: \'none\', \'cpu\' and \'gpu\' |
This function enables OpenCL computation by selecting a CPU/GPU device and utilizing all of its cores for further computation.
Thus, all tasks will be executed in parallel.
About the parameter deviceType
, there exists three options: \'none\' means disable OpenCL,
\'cpu\' means selecting a CPU device and \'gpu\' means using a GPU device.
Information of the successfully selected device
1 2 3 4 | showOpencl()
setOpencl("gpu")
setOpencl("cpu")
setOpencl("none")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.