Skip to content

Commit

Permalink
fix issue 3985 about dcu compile (#3986)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohan Chen <mohan.chen.chen.mohan@gmail.com>
  • Loading branch information
haozhihan and mohanchen committed Apr 16, 2024
1 parent 3035d4d commit 9cfde82
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions source/module_hsolver/kernels/rocm/dngvd_op.hip.cu
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,46 @@ void dnevx_op<std::complex<double>, psi::DEVICE_GPU>::operator()(const psi::DEVI
hipErrcheck(hipMemcpy(_eigenvalue, eigenvalue.data(), sizeof(double) * eigenvalue.size(), hipMemcpyHostToDevice));
}


template <>
void dngvx_op<std::complex<float>, psi::DEVICE_GPU>::operator()(
const psi::DEVICE_GPU* d,
const int nbase,
const int ldh,
std::complex<float>* hcc,
std::complex<float>* scc,
const int m,
float* eigenvalue,
std::complex<float>* vcc)
{
}

template <>
void dngvx_op<std::complex<double>, psi::DEVICE_GPU>::operator()(
const psi::DEVICE_GPU* d,
const int nbase,
const int ldh,
std::complex<double>* hcc,
std::complex<double>* scc,
const int m,
double* eigenvalue,
std::complex<double>* vcc)
{
}

#ifdef __LCAO
template <>
void dngvx_op<double, psi::DEVICE_GPU>::operator()(
const psi::DEVICE_GPU* d,
const int nbase,
const int ldh,
double* hcc,
double* scc,
const int m,
double* eigenvalue,
double* vcc)
{
}
#endif // __LCAO

} // namespace hsolver

0 comments on commit 9cfde82

Please sign in to comment.