PSCF v1.1
ParallelReductions.h
1#ifndef PARALLEL_REDUCTIONS_H
2#define PARALLEL_REDUCTIONS_H
3
4#include "GpuTypes.h"
5
6namespace Pscf {
7namespace Pspg {
8
12__global__ void reductionSum(cudaReal* sum, const cudaReal* in, int size);
13
14__global__ void reductionInnerProduct(cudaReal* innerprod, const cudaReal* a, const cudaReal* b, int size);
15
16__global__ void reductionMax(cudaReal* max, const cudaReal* in, int size);
17
18__global__ void reductionMaxAbs(cudaReal* max, const cudaReal* in, int size);
19
20__global__ void reductionMin(cudaReal* min, const cudaReal* in, int size);
21
22__global__ void reductionMinAbs(cudaReal* min, const cudaReal* in, int size);
23
26}
27}
28#endif
C++ namespace for polymer self-consistent field theory (PSCF).