4#ifndef source_estate_ELECSTATE_MULTI_DEVICE_H
5#define source_estate_ELECSTATE_MULTI_DEVICE_H
11template <
typename FPTYPE,
typename Device>
30 const std::complex<FPTYPE>* wfcr);
52 const std::complex<FPTYPE>* wfcr,
53 const std::complex<FPTYPE>* wfcr_another_spin);
56#if __CUDA || __UT_USE_CUDA || __ROCM || __UT_USE_ROCM
57template <
typename FPTYPE>
60 void operator()(
const base_device::DEVICE_GPU* ctx,
65 const std::complex<FPTYPE>* wfcr);
67 void operator()(
const base_device::DEVICE_GPU* ctx,
73 const std::complex<FPTYPE>* wfcr,
74 const std::complex<FPTYPE>* wfcr_another_spin);
Definition elecstate_op.h:12
void operator()(const Device *ctx, const int &spin, const int &nrxx, const FPTYPE &weight, FPTYPE **rho, const std::complex< FPTYPE > *wfcr)
Calculate psiToRho output within the band-by-band loop, NSPIN != 4.