PSCF v1.3
cuda/Reduce.h
1#ifndef PRDC_CUDA_REDUCE_H
2#define PRDC_CUDA_REDUCE_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include "types.h"
12#include <pscf/cuda/DeviceArray.h>
13
14namespace Pscf {
15namespace Prdc {
16namespace Cuda {
17
58namespace Reduce {
59
65cudaReal sum(DeviceArray<cudaReal> const & in);
66
72cudaReal max(DeviceArray<cudaReal> const & in);
73
79cudaReal maxAbs(DeviceArray<cudaReal> const & in);
80
86cudaReal min(DeviceArray<cudaReal> const & in);
87
93cudaReal minAbs(DeviceArray<cudaReal> const & in);
94
101cudaReal innerProduct(DeviceArray<cudaReal> const & a,
102 DeviceArray<cudaReal> const & b);
103
105
106} // Reduce
107} // Cuda
108} // Prdc
109} // Pscf
110#endif
Functions that perform parallel reductions on the GPU.
Definition Reduce.cpp:15
Fields, FFTs, and utilities for periodic boundary conditions (CUDA)
Definition Reduce.cpp:14
Periodic fields and crystallography.
Definition CField.cpp:11
PSCF package top-level namespace.
Definition param_pc.dox:1