Is it possible to do a reduction on an array with openmp?

前端 未结 5 671
一整个雨季
一整个雨季 2020-12-15 05:57

Does OpenMP natively support reduction of a variable that represents an array?

This would work something like the following...

float* a = (float*) c         


        
5条回答
  •  不知归路
    2020-12-15 06:27

    Now the latest openMP 4.5 spec has supports of reduction of C/C++ arrays. http://openmp.org/wp/2015/11/openmp-45-specs-released/

    And latest GCC 6.1 also has supported this feature. http://openmp.org/wp/2016/05/gcc-61-released-supports-openmp-45/

    But I didn't give it a try yet. Wish others can test this feature.

提交回复
热议问题