ILGPU  0.9.0
ILGPU.Runtime.KernelSpecialization Struct Reference

Represents a kernel specialization. More...

Inheritance diagram for ILGPU.Runtime.KernelSpecialization:

Public Member Functions

 KernelSpecialization (int?maxNumThreadsPerGroup, int?minNumGroupsPerMultiprocessor)
 Constructs a new specialization object. More...
 
bool Equals (KernelSpecialization other)
 Returns true if the given specialization is equal to the current specialization. More...
 
bool IsCompatibleWith (Accelerator accelerator)
 Checks whether the given accelerator is compatible with the current specialization. More...
 
override bool Equals (object obj)
 Returns true if the given object is equal to the current specialization. More...
 
override int GetHashCode ()
 Returns the hash code of this specialization. More...
 
override string ToString ()
 Returns the string representation of this specialization. More...
 

Static Public Member Functions

static bool operator== (KernelSpecialization first, KernelSpecialization second)
 Returns true if the specialization and second specialization are the same. More...
 
static bool operator!= (KernelSpecialization first, KernelSpecialization second)
 Returns true if the first and second specialization are not the same. More...
 

Static Public Attributes

static readonly KernelSpecialization Empty = new KernelSpecialization()
 Represents an empty (or no) specialization that allows the compiler to freely decide on its own. More...
 

Properties

int MaxNumThreadsPerGroup [get]
 Returns the desired maximum number of threads per group. More...
 
int MinNumGroupsPerMultiprocessor [get]
 Returns the desired minimum number of groups per multiprocessor. More...
 

Detailed Description

Represents a kernel specialization.

Constructor & Destructor Documentation

ILGPU.Runtime.KernelSpecialization.KernelSpecialization ( int?  maxNumThreadsPerGroup,
int?  minNumGroupsPerMultiprocessor 
)

Constructs a new specialization object.

Parameters
maxNumThreadsPerGroupThe maximum number of threads per group.
minNumGroupsPerMultiprocessorThe minimum number of groups per multiprocessor.

Member Function Documentation

bool ILGPU.Runtime.KernelSpecialization.Equals ( KernelSpecialization  other)

Returns true if the given specialization is equal to the current specialization.

Parameters
otherThe other specialization.
Returns
True, if the given specialization is equal to the current specialization.
override bool ILGPU.Runtime.KernelSpecialization.Equals ( object  obj)

Returns true if the given object is equal to the current specialization.

Parameters
objThe other object.
Returns
True, if the given object is equal to the current specialization.
override int ILGPU.Runtime.KernelSpecialization.GetHashCode ( )

Returns the hash code of this specialization.

Returns
The hash code of this specialization.
bool ILGPU.Runtime.KernelSpecialization.IsCompatibleWith ( Accelerator  accelerator)

Checks whether the given accelerator is compatible with the current specialization.

Parameters
acceleratorThe target accelerator.
Returns
True, if the given accelerator is compatible with the current specialization.
static bool ILGPU.Runtime.KernelSpecialization.operator!= ( KernelSpecialization  first,
KernelSpecialization  second 
)
static

Returns true if the first and second specialization are not the same.

Parameters
firstThe first specialization.
secondThe second specialization.
Returns
True, if the first and second specialization are not the same.
static bool ILGPU.Runtime.KernelSpecialization.operator== ( KernelSpecialization  first,
KernelSpecialization  second 
)
static

Returns true if the specialization and second specialization are the same.

Parameters
firstThe first specialization.
secondThe second specialization.
Returns
True, if the first and second specialization are the same.
override string ILGPU.Runtime.KernelSpecialization.ToString ( )

Returns the string representation of this specialization.

Returns
The string representation of this specialization.

Member Data Documentation

readonly KernelSpecialization ILGPU.Runtime.KernelSpecialization.Empty = new KernelSpecialization()
static

Represents an empty (or no) specialization that allows the compiler to freely decide on its own.

Property Documentation

int ILGPU.Runtime.KernelSpecialization.MaxNumThreadsPerGroup
get

Returns the desired maximum number of threads per group.

int ILGPU.Runtime.KernelSpecialization.MinNumGroupsPerMultiprocessor
get

Returns the desired minimum number of groups per multiprocessor.


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