ILGPU  0.9.0
ILGPU.Backends.CompiledKernel Class Reference

Represents a compiled kernel that encapsulates emitted binary code. More...

Inheritance diagram for ILGPU.Backends.CompiledKernel:
ILGPU.Backends.IL.ILCompiledKernel ILGPU.Backends.OpenCL.CLCompiledKernel ILGPU.Backends.PTX.PTXCompiledKernel

Classes

struct  FunctionInfo
 Contains information about functions. More...
 
class  KernelInfo
 Provides detailed information about compiled kernels. More...
 

Public Member Functions

override string ToString ()
 Returns the string representation of this kernel. More...
 

Public Attributes

MethodInfo SourceMethod => EntryPoint.MethodInfo
 Represents the source method. More...
 
IndexType IndexType => EntryPoint.IndexType
 Returns the index type of the entry point. More...
 
KernelSpecialization Specialization => EntryPoint.Specialization
 Returns the associated kernel specialization. More...
 

Protected Member Functions

 CompiledKernel (Context context, EntryPoint entryPoint, KernelInfo info)
 Constructs a new compiled kernel. More...
 

Properties

Context Context [get]
 Returns the associated context. More...
 
KernelInfo Info [get]
 Returns information about all functions in the compiled kernel. More...
 

Detailed Description

Represents a compiled kernel that encapsulates emitted binary code.

Constructor & Destructor Documentation

ILGPU.Backends.CompiledKernel.CompiledKernel ( Context  context,
EntryPoint  entryPoint,
KernelInfo  info 
)
protected

Constructs a new compiled kernel.

Parameters
contextThe associated context.
entryPointThe entry point.
infoDetailed kernel information.

Member Function Documentation

override string ILGPU.Backends.CompiledKernel.ToString ( )

Returns the string representation of this kernel.

Returns
The string representation of this kernel.

Member Data Documentation

IndexType ILGPU.Backends.CompiledKernel.IndexType => EntryPoint.IndexType

Returns the index type of the entry point.

MethodInfo ILGPU.Backends.CompiledKernel.SourceMethod => EntryPoint.MethodInfo

Represents the source method.

KernelSpecialization ILGPU.Backends.CompiledKernel.Specialization => EntryPoint.Specialization

Returns the associated kernel specialization.

Property Documentation

Context ILGPU.Backends.CompiledKernel.Context
get

Returns the associated context.

KernelInfo ILGPU.Backends.CompiledKernel.Info
get

Returns information about all functions in the compiled kernel.

This instance will be available when the ContextFlags.EnableKernelStatistics is set.


The documentation for this class was generated from the following file: