DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
constraintMatrixInfoDeviceKernels.h
Go to the documentation of this file.
1#ifndef constraintMatrixInfoDeviceKernels_H
2#define constraintMatrixInfoDeviceKernels_H
3#include <DeviceAPICalls.h>
6
7
8namespace dftfe
9{
10 // Declare dftUtils functions
11 namespace dftUtils
12 {
13 template <typename ValueType>
14 void
16 const dftfe::uInt contiguousBlockSize,
17 ValueType *xVec,
18 const dftfe::uInt *constraintLocalRowIdsUnflattened,
19 const dftfe::uInt numConstraints,
20 const dftfe::uInt *constraintRowSizes,
21 const dftfe::uInt *constraintRowSizesAccumulated,
22 const dftfe::uInt *constraintLocalColumnIdsAllRowsUnflattened,
23 const double *constraintColumnValuesAllRowsUnflattened,
24 const double *inhomogenities);
25
26 template <typename ValueType>
27 void
29 const dftfe::uInt contiguousBlockSize,
30 ValueType *xVec,
31 const dftfe::uInt *constraintLocalRowIdsUnflattened,
32 const dftfe::uInt numConstraints,
33 const dftfe::uInt *constraintRowSizes,
34 const dftfe::uInt *constraintRowSizesAccumulated,
35 const dftfe::uInt *constraintLocalColumnIdsAllRowsUnflattened,
36 const double *constraintColumnValuesAllRowsUnflattened);
37
38 template <typename ValueType>
39 void
40 setzeroDevice(const dftfe::uInt contiguousBlockSize,
41 ValueType *xVec,
42 const dftfe::uInt *constraintLocalRowIdsUnflattened,
43 const dftfe::uInt numConstraints);
44 void
46 const double *xVec,
47 const dftfe::uInt *constraintLocalRowIdsUnflattened,
48 const dftfe::uInt numConstraints,
49 const dftfe::uInt *constraintRowSizes,
50 const dftfe::uInt *constraintRowSizesAccumulated,
51 const dftfe::uInt *constraintLocalColumnIdsAllRowsUnflattened,
52 double *constraintColumnValuesAllRowsUnflattened);
53 } // namespace dftUtils
54} // namespace dftfe
55#endif
Contains repeatedly used functions in the KSDFT calculations.
Definition CompositeData.h:29
void scaleConstraintsDevice(const double *xVec, const dftfe::uInt *constraintLocalRowIdsUnflattened, const dftfe::uInt numConstraints, const dftfe::uInt *constraintRowSizes, const dftfe::uInt *constraintRowSizesAccumulated, const dftfe::uInt *constraintLocalColumnIdsAllRowsUnflattened, double *constraintColumnValuesAllRowsUnflattened)
void distributeDevice(const dftfe::uInt contiguousBlockSize, ValueType *xVec, const dftfe::uInt *constraintLocalRowIdsUnflattened, const dftfe::uInt numConstraints, const dftfe::uInt *constraintRowSizes, const dftfe::uInt *constraintRowSizesAccumulated, const dftfe::uInt *constraintLocalColumnIdsAllRowsUnflattened, const double *constraintColumnValuesAllRowsUnflattened, const double *inhomogenities)
void distributeSlaveToMasterAtomicAddDevice(const dftfe::uInt contiguousBlockSize, ValueType *xVec, const dftfe::uInt *constraintLocalRowIdsUnflattened, const dftfe::uInt numConstraints, const dftfe::uInt *constraintRowSizes, const dftfe::uInt *constraintRowSizesAccumulated, const dftfe::uInt *constraintLocalColumnIdsAllRowsUnflattened, const double *constraintColumnValuesAllRowsUnflattened)
void setzeroDevice(const dftfe::uInt contiguousBlockSize, ValueType *xVec, const dftfe::uInt *constraintLocalRowIdsUnflattened, const dftfe::uInt numConstraints)
Definition pseudoPotentialToDftfeConverter.cc:34
std::uint32_t uInt
Definition TypeConfig.h:10