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

  • 常规讨论

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


    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