并发命名空间枚举 (AMP)

access_type 枚举
queuing_mode 枚举

access_type 枚举

用于表示对数据的各种类型的访问的枚举类型。

enum access_type;

“属性” 描述
access_type_auto 自动为加速器选择最佳 access_type
access_type_none 专用。 分配只能在加速器上访问,而不能在 CPU 上访问。
access_type_read 共享。 分配可在加速器上访问,可在 CPU 上读取。
access_type_read_write 共享。 分配可在加速器上访问,可在 CPU 上写入。
access_type_write 共享。 分配可在加速器上访问,可在 CPU 上读取和写入。

queuing_mode 枚举

指定加速器支持的排队模式。

enum queuing_mode;

“属性” 描述
queuing_mode_immediate 一种队列模式,指定任何命令(例如 ,parallel_for_each Function (C++ AMP))在返回到调用方后立即发送到相应的加速器设备。
queuing_mode_automatic 一种队列模式,指定命令在对应于 accelerator_view 对象的命令队列上排队。 调用 accelerator_view::flush 时,命令将发送到设备。

另请参阅

并发命名空间 (C++ AMP)