Table of Contents

Enum CudaMemoryRangeAttribute

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

CUDA managed-memory range attributes that can be queried as scalar values. 可作为标量查询的 CUDA managed memory range 属性。

public enum CudaMemoryRangeAttribute

Fields

AccessedBy = 3

Devices that have accessed-by advice for the whole range. 对整个范围设置 accessed-by 建议的设备。

This attribute returns an array in CUDA and is not accepted by the scalar query helpers. 该属性在 CUDA 中返回数组,标量查询辅助方法不接受它。

LastPrefetchLocation = 4

Last location to which every page in the range was explicitly prefetched. 该范围内所有页面最近一次被显式预取到的位置。

LastPrefetchLocationId = 8

Last prefetch location id for every page in the range. CUDA 12.3 or newer. 该范围内所有页面最近一次预取位置 id。需要 CUDA 12.3 或更高版本。

LastPrefetchLocationType = 7

Last prefetch location type for every page in the range. CUDA 12.3 or newer. 该范围内所有页面最近一次预取位置类型。需要 CUDA 12.3 或更高版本。

PreferredLocation = 2

Preferred location for every page in the range. 该范围内所有页面的首选位置。

PreferredLocationId = 6

Preferred location id for every page in the range. CUDA 12.3 or newer. 该范围内所有页面的首选位置 id。需要 CUDA 12.3 或更高版本。

PreferredLocationType = 5

Preferred location type for every page in the range. CUDA 12.3 or newer. 该范围内所有页面的首选位置类型。需要 CUDA 12.3 或更高版本。

ReadMostly = 1

Whether every page in the range has read-mostly advice enabled. 该范围内所有页面是否启用了 read-mostly 建议。