none
How to use index in C++ AMP? RRS feed

  • 常规讨论

  • 我有一个二维数组,放在了一个array_view里,那么在做相应的parallel_for_each循环时,使用二维的index<2> idx。

    核心函数中想要判断元素的位置,比如如果是第一列的就如何如何,否则如何如何,该怎么判断呢?index类似乎没有相应的方法?

    there is a two-demension array, which has been put in an array_view, so "index<2> idx" is used in parallel_for_each.

    in my kernel function, i want to recognize the position of the element in the array. for example, if the element is in the first column, do something, else do something else.

    it seems that there is not any function of index for that thing.

    so what to do to know the position of element by index in C++ AMP?


    2012年7月27日 7:25

全部回复