Quantcast
Viewing all articles
Browse latest Browse all 5

Reduction operation can reduce on multiple ranks?

English

Theoretically, 

sum = __sec_reduce_add(a[:][:]); //sum across the whole array 'a'

sum_of_column[:]=__sec_reduce_add(a[:][:]); //sum across the column of 'a'

Actually, when I tested the second statement, the sum_of_column got always the sum across the whole array of a, no matter the rank of sum_of_column. 

For a given execution context of rank m and a reduction array section argument with rank n, where n>m, it is the last n-m ranks of the array section argument who should be reduced, right? What went wrong? 

Thank you for your help!


Viewing all articles
Browse latest Browse all 5


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>