Table of Contents

Class MemoryAllocationOptions

Namespace
Orleans.GpuBridge.Abstractions.Providers.Memory.Options
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

Type MemoryType
ZeroInitialize bool
EnablePeerAccess bool
Alignment int
PreferredDevice IComputeDevice

Properties

Alignment

public int Alignment { get; init; }

Property Value

int

EnablePeerAccess

public bool EnablePeerAccess { get; init; }

Property Value

bool

PreferredDevice

public IComputeDevice? PreferredDevice { get; init; }

Property Value

IComputeDevice

Type

public MemoryType Type { get; init; }

Property Value

MemoryType

ZeroInitialize

public bool ZeroInitialize { get; init; }

Property Value

bool