Table of Contents

Class KernelDescriptor

Namespace
Orleans.GpuBridge.Runtime
Assembly
Orleans.GpuBridge.Runtime.dll

Describes a kernel registration with its input/output types and factory.

public sealed class KernelDescriptor
Inheritance
KernelDescriptor
Inherited Members

Properties

Factory

Gets or sets the factory function for creating kernel instances.

public Func<IServiceProvider, object>? Factory { get; set; }

Property Value

Func<IServiceProvider, object>

Id

Gets or sets the kernel identifier.

public KernelId Id { get; set; }

Property Value

KernelId

InType

Gets or sets the input type for the kernel.

public Type InType { get; set; }

Property Value

Type

OutType

Gets or sets the output type for the kernel.

public Type OutType { get; set; }

Property Value

Type

Methods

Build(Action<KernelDescriptor>)

Builds a kernel descriptor using a configuration action.

public static KernelDescriptor Build(Action<KernelDescriptor> cfg)

Parameters

cfg Action<KernelDescriptor>

Configuration action to apply to the descriptor.

Returns

KernelDescriptor

A configured kernel descriptor.

FromFactory(Func<IServiceProvider, object>)

Sets the factory function for creating kernel instances.

public KernelDescriptor FromFactory(Func<IServiceProvider, object> f)

Parameters

f Func<IServiceProvider, object>

The factory function.

Returns

KernelDescriptor

The descriptor for fluent chaining.

In<T>()

Sets the input type for the kernel.

public KernelDescriptor In<T>()

Returns

KernelDescriptor

The descriptor for fluent chaining.

Type Parameters

T

The input type.

Out<T>()

Sets the output type for the kernel.

public KernelDescriptor Out<T>()

Returns

KernelDescriptor

The descriptor for fluent chaining.

Type Parameters

T

The output type.

SetId(string)

Sets the kernel identifier.

public KernelDescriptor SetId(string id)

Parameters

id string

The kernel identifier string.

Returns

KernelDescriptor

The descriptor for fluent chaining.