Show / Hide Table of Contents

Class BaseCompiler

Inheritance
System.Object
BaseCompiler
CUDACompiler
OpenCLCompiler
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 Source

BaseCompiler(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 Source

Devices

Gets or sets the devices.

Declaration
public abstract List<Device> Devices { get; }
Property Value
Type Description
System.Collections.Generic.List<Device>

The devices.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

CompileKernel(Type)

Compiles the kernel.

Declaration
public abstract void CompileKernel(Type cls)
Parameters
Type Name Description
System.Type cls

The CLS.

| Improve this Doc View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public virtual void Dispose()
| Improve this Doc View Source

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.

| Improve this Doc View Source

GetExec<T>()

Gets the execute.

Declaration
public dynamic GetExec<T>()
    where T : struct
Returns
Type Description
System.Object
Type Parameters
Name Description
T
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX