GpuAcceleratorFactory
StockSharp.Algo.Gpu
Factory utilities to select and create an ILGPU accelerator.
Методы
CreateBestAccelerator
public static ValueTuple<Context, Accelerator> CreateBestAccelerator()
result = GpuAcceleratorFactory.CreateBestAccelerator()
Create the best available accelerator using a fresh ILGPU Context.
Возвращает: Tuple containing created Context and Accelerator.
TryCreateBestAccelerator
public static bool TryCreateBestAccelerator(Context context, Accelerator accelerator)
result = GpuAcceleratorFactory.TryCreateBestAccelerator(context, accelerator)
Try to create the best available accelerator using a fresh ILGPU Context.
- context
- Created ILGPU context when method returns . The caller must dispose it.
- accelerator
- Created accelerator when method returns . The caller must dispose it.
Возвращает: if an accelerator was created; otherwise, .