Table of Contents

Interface IGpuAcceleratedPINN<T>

Namespace
AiDotNet.PhysicsInformed.Interfaces
Assembly
AiDotNet.dll

Interface for Physics-Informed Neural Networks that support GPU acceleration.

public interface IGpuAcceleratedPINN<T>

Type Parameters

T

The numeric type used for calculations.

Remarks

For Beginners: This interface marks PINNs that can take advantage of GPU acceleration during training. GPU acceleration can provide significant speedups for:

  • Batch processing of collocation points
  • Parallel derivative computations
  • Matrix operations in the forward and backward passes

Implementing this interface signals that the PINN can use GPU resources when available.

Properties

GpuConfig

Gets or sets the GPU acceleration configuration.

GpuAccelerationConfig? GpuConfig { get; set; }

Property Value

GpuAccelerationConfig

IsGpuAvailable

Gets a value indicating whether GPU is currently available and ready for use.

bool IsGpuAvailable { get; }

Property Value

bool

UseGpuAcceleration

Gets or sets whether GPU acceleration is enabled for training.

bool UseGpuAcceleration { get; set; }

Property Value

bool

Methods

InitializeGpu(GpuAccelerationConfig?)

Initializes GPU resources for accelerated training.

bool InitializeGpu(GpuAccelerationConfig? config = null)

Parameters

config GpuAccelerationConfig

Optional GPU configuration. If null, uses default settings.

Returns

bool

True if GPU initialization was successful, false otherwise.

ReleaseGpuResources()

Releases GPU resources.

void ReleaseGpuResources()