Reduces M x N matrix. Returns column results for a generic reduction operation. More...
Go to the source code of this file.
Functions | |
| template<typename T , typename R > | |
| __global__ void | reduce2 (T *xsum, T *x, int n, int stride, R op) |
| Reduction kernel. More... | |
| int | main () |
Reduces M x N matrix. Returns column results for a generic reduction operation.
Definition in file reduce2.cu.
| int main | ( | void | ) |
Definition at line 70 of file reduce2.cu.
| __global__ void reduce2 | ( | T * | xsum, |
| T * | x, | ||
| int | n, | ||
| int | stride, | ||
| R | op | ||
| ) |
Reduction kernel.
Definition at line 30 of file reduce2.cu.
1.8.4