C# Class Encog.Engine.Opencl.Kernels.EncogKernel

Defines a basic OpenCL kernal, as used by Encog. Contains the kernal source c and a compiled program/kernal.
Mostra file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Compile ( ) : void

Compile the kernel with no preprocessor defines.

Compile ( String>.IDictionary options ) : void

Compile the kernel with a map of preprocessor defines, a collection of name-value pairs.

CreateArrayReadOnly ( float array ) : ComputeBuffer

Create an array buffer that is read only for floats.

CreateArrayReadOnly ( int array ) : ComputeBuffer

Create an array buffer that is read only for ints.

CreateFloatArrayWriteOnly ( int length ) : ComputeBuffer

Create an array buffer that is write only.

EncogKernel ( EncogCLDevice device, String sourceName, String kernelName ) : System

Create an Encog OpenCL kernel. The Kernel will be loaded from an embedded resource.

PrepareKernel ( ) : void

Called internally to prepare to execute a kernel.

Release ( ) : void

Release this kernel.

Method Details

Compile() public method

Compile the kernel with no preprocessor defines.
public Compile ( ) : void
return void

Compile() public method

Compile the kernel with a map of preprocessor defines, a collection of name-value pairs.
public Compile ( String>.IDictionary options ) : void
options String>.IDictionary A map of preprocessor defines.
return void

CreateArrayReadOnly() public method

Create an array buffer that is read only for floats.
public CreateArrayReadOnly ( float array ) : ComputeBuffer
array float The array to base on.
return ComputeBuffer

CreateArrayReadOnly() public method

Create an array buffer that is read only for ints.
public CreateArrayReadOnly ( int array ) : ComputeBuffer
array int The array to base on.
return ComputeBuffer

CreateFloatArrayWriteOnly() public method

Create an array buffer that is write only.
public CreateFloatArrayWriteOnly ( int length ) : ComputeBuffer
length int The length of the buffer.
return ComputeBuffer

EncogKernel() public method

Create an Encog OpenCL kernel. The Kernel will be loaded from an embedded resource.
public EncogKernel ( EncogCLDevice device, String sourceName, String kernelName ) : System
device EncogCLDevice The OpenCL device to use.
sourceName String The name of the kernel, from an embedded resource.
kernelName String The name of the function, in the kernel, called to start thekernel.
return System

PrepareKernel() public method

Called internally to prepare to execute a kernel.
public PrepareKernel ( ) : void
return void

Release() public method

Release this kernel.
public Release ( ) : void
return void