Class BaseCompiler
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Amplifier
Assembly: Amplifier.dll
Syntax
public abstract class BaseCompiler : IDisposable
Constructors
| Improve this Doc View SourceBaseCompiler(String)
Initializes a new instance of the BaseCompiler class.
Declaration
public BaseCompiler(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Properties
| Improve this Doc View SourceDevices
Gets or sets the devices.
Declaration
public abstract List<Device> Devices { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Device> | The devices. |
Kernels
Gets the kernel functions for the compiler.
Declaration
public abstract List<string> Kernels { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.String> | The kernels. |
Name
Gets or sets the name of the compiler.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Methods
| Improve this Doc View SourceCompileKernel(Type)
Compiles the kernel.
Declaration
public abstract void CompileKernel(Type cls)
Parameters
Type | Name | Description |
---|---|---|
System.Type | cls | The CLS. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public virtual void Dispose()
Execute<TSource>(String, Object[])
Executes the specified kernel function name.
Declaration
public abstract void Execute<TSource>(string functionName, params object[] args)
where TSource : struct
Parameters
Type | Name | Description |
---|---|---|
System.String | functionName | Name of the function. |
System.Object[] | args |
Type Parameters
Name | Description |
---|---|
TSource | The type of the source. |
GetExec<T>()
Gets the execute.
Declaration
public dynamic GetExec<T>()
where T : struct
Returns
Type | Description |
---|---|
System.Object |
Type Parameters
Name | Description |
---|---|
T |
UseDevice(Int32)
Uses the device for the compiler.
Declaration
public abstract void UseDevice(int deviceId = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | deviceId | The device identifier. |
Implements
System.IDisposable