PSCF v1.1
KernelWrappers.h
1#ifndef PSPG_KERNEL_WRAPPERS_H
2#define PSPG_KERNEL_WRAPPERS_H
3
4#include "ParallelReductions.h"
5#include "GpuTypes.h"
6#include "LinearAlgebra.h"
7
8namespace Pscf {
9namespace Pspg {
10
14__host__ cudaReal gpuSum(cudaReal const * d_in, int size);
15
16__host__ cudaReal gpuInnerProduct(cudaReal const * d_a, cudaReal const * d_b, int size);
17
18__host__ cudaReal gpuMax(cudaReal const * d_in, int size);
19
20__host__ cudaReal gpuMaxAbs(cudaReal const * d_in, int size);
21
22__host__ cudaReal gpuMin(cudaReal const * d_in, int size);
23
24__host__ cudaReal gpuMinAbs(cudaReal const * d_in, int size);
25
28}
29}
30#endif
C++ namespace for polymer self-consistent field theory (PSCF).