C# Class Encog.Engine.Opencl.EncogCLQueue

An open CL queue.
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Array2Buffer ( float source, ComputeBuffer targetBuffer ) : void

Copy a float array to a buffer.

Array2Buffer ( int source, ComputeBuffer targetBuffer ) : void

Copy an int array to a buffer.

Buffer2Array ( ComputeBuffer sourceBuffer, float target ) : void

Copy a buffer to a float array.

Buffer2Array ( ComputeBuffer sourceBuffer, int target ) : void

Copy a buffer to an int array.

EncogCLQueue ( EncogCLDevice device ) : System

Construct a device.

Execute ( EncogKernel kernel ) : void

Execute the specified kernel.

WaitFinish ( ) : void

Wait until the queue is finished.

Method Details

Array2Buffer() public method

Copy a float array to a buffer.
public Array2Buffer ( float source, ComputeBuffer targetBuffer ) : void
source float The array.
targetBuffer ComputeBuffer The buffer.
return void

Array2Buffer() public method

Copy an int array to a buffer.
public Array2Buffer ( int source, ComputeBuffer targetBuffer ) : void
source int The source array.
targetBuffer ComputeBuffer The buffer.
return void

Buffer2Array() public method

Copy a buffer to a float array.
public Buffer2Array ( ComputeBuffer sourceBuffer, float target ) : void
sourceBuffer ComputeBuffer The source buffer.
target float The target array.
return void

Buffer2Array() public method

Copy a buffer to an int array.
public Buffer2Array ( ComputeBuffer sourceBuffer, int target ) : void
sourceBuffer ComputeBuffer The source buffer.
target int The target array.
return void

EncogCLQueue() public method

Construct a device.
public EncogCLQueue ( EncogCLDevice device ) : System
device EncogCLDevice The OpenCL device to base on.
return System

Execute() public method

Execute the specified kernel.
public Execute ( EncogKernel kernel ) : void
kernel Encog.Engine.Opencl.Kernels.EncogKernel The kernel to execute.
return void

WaitFinish() public method

Wait until the queue is finished.
public WaitFinish ( ) : void
return void