1#ifndef PARALLEL_REDUCTIONS_H
2#define PARALLEL_REDUCTIONS_H
12__global__
void reductionSum(cudaReal* sum,
const cudaReal* in,
int size);
14__global__
void reductionInnerProduct(cudaReal* innerprod,
const cudaReal* a,
const cudaReal* b,
int size);
16__global__
void reductionMax(cudaReal* max,
const cudaReal* in,
int size);
18__global__
void reductionMaxAbs(cudaReal* max,
const cudaReal* in,
int size);
20__global__
void reductionMin(cudaReal* min,
const cudaReal* in,
int size);
22__global__
void reductionMinAbs(cudaReal* min,
const cudaReal* in,
int size);
C++ namespace for polymer self-consistent field theory (PSCF).