Class MemoryAllocationOptions
- Assembly
- Orleans.GpuBridge.Abstractions.dll
Options for memory allocation
public sealed record MemoryAllocationOptions : IEquatable<MemoryAllocationOptions>
- Inheritance
-
MemoryAllocationOptions
- Implements
- Inherited Members
Constructors
MemoryAllocationOptions(MemoryType, bool, bool, int, IComputeDevice?)
Options for memory allocation
public MemoryAllocationOptions(MemoryType Type = MemoryType.Device, bool ZeroInitialize = false, bool EnablePeerAccess = false, int Alignment = 256, IComputeDevice? PreferredDevice = null)
Parameters
TypeMemoryTypeZeroInitializeboolEnablePeerAccessboolAlignmentintPreferredDeviceIComputeDevice
Properties
Alignment
public int Alignment { get; init; }
Property Value
EnablePeerAccess
public bool EnablePeerAccess { get; init; }
Property Value
PreferredDevice
public IComputeDevice? PreferredDevice { get; init; }
Property Value
Type
public MemoryType Type { get; init; }
Property Value
ZeroInitialize
public bool ZeroInitialize { get; init; }