共用方式為


array_view::synchronize_to 方法

將對此 array_view 物件進行的任何修改同步處理至指定的 accelerator_view。

void synchronize_to(
   const accelerator_view& _Accl_view,
   access_type _Access_type = access_type_read
) const restrict(cpu);

void synchronize_to(
   const accelerator_view& _Accl_view
) const restrict(cpu);

參數

  • _Accl_view
    同步處理的目標 accelerator_view。

  • _Access_type
    目標 accelerator_view 上所需的 access_type。 這個參數的預設值為 access_type_read。

需求

**標頭:**amp.h

**命名空間:**concurrency

請參閱

參考

array_view 類別