Table of Contents

Class GpuAcceleratedAttribute

Namespace
Orleans.GpuBridge.Abstractions
Assembly
Orleans.GpuBridge.Abstractions.dll

Marks a class or method as GPU-accelerated, associating it with a specific kernel.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false)]
public sealed class GpuAcceleratedAttribute : Attribute
Inheritance
GpuAcceleratedAttribute
Inherited Members

Remarks

This attribute is used to indicate that a grain or method should use GPU acceleration through the specified kernel ID. The kernel must be registered with the KernelCatalog before the grain is activated.

Constructors

GpuAcceleratedAttribute(string)

Initializes a new instance of the GpuAcceleratedAttribute class.

public GpuAcceleratedAttribute(string id)

Parameters

id string

The kernel identifier. Must match a registered kernel in the KernelCatalog.

Properties

KernelId

Gets the kernel identifier to use for GPU acceleration.

public string KernelId { get; }

Property Value

string