使用数组<>和array_view<>在同一个AMP内核中? [英] using array<> and array_view<> in the same AMP kernel?
本文介绍了使用数组<>和array_view<>在同一个AMP内核中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好.是否可以通过从 array 对象到对象的索引进行读取/写入 同一AMP内核中的 array_view 对象?例如,给定2D array ("myArray")和 array_view ("myArrayView")可能是以下几种:
Hello. Is it possible to read/write via indices from an array object to an array_view object in the same AMP kernel? For example, given a 2D array ("myArray") and array_view ("myArrayView") is the following possible:
myArrayView(行,列)= myArray(行,列);
myArrayView(row, column) = myArray(row, column);
谢谢.
-L
推荐答案
嗨LKeene,
Hi LKeene,
您描述的此方案受支持.您在尝试时是否遇到任何问题?
This scenario you described is supported. Did you encounter any issue while trying it out?
谢谢,
玲莉
Thanks,
Lingli
这篇关于使用数组<>和array_view<>在同一个AMP内核中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文