@@ -162,21 +162,6 @@ void evolve_psi_tensor(const int nband,
162162 syncmem_complex_h2d_op ()(ctx, cpu_ctx, Htmp.data <std::complex <double >>(), h_mat.p , pv->nloc );
163163 syncmem_complex_h2d_op ()(ctx, cpu_ctx, Hold.data <std::complex <double >>(), h_mat.p , pv->nloc );
164164
165- // Convert s_mat.p, h_mat.p to Tensor using TensorMap
166- // ct::TensorMap s_mat_tensor(s_mat.p,
167- // ct::DataType::DT_COMPLEX_DOUBLE,
168- // ct::DeviceType::CpuDevice,
169- // ct::TensorShape({pv->nloc}));
170- // ct::TensorMap h_mat_tensor(h_mat.p,
171- // ct::DataType::DT_COMPLEX_DOUBLE,
172- // ct::DeviceType::CpuDevice,
173- // ct::TensorShape({pv->nloc}));
174-
175- // Use Tensor's copy constructor to create Stmp, Htmp, and Hold
176- // ct::Tensor Stmp(s_mat_tensor);
177- // ct::Tensor Htmp(h_mat_tensor);
178- // ct::Tensor Hold(h_mat_tensor);
179-
180165 ct::Tensor U_operator (ct::DataType::DT_COMPLEX_DOUBLE, ct_device_type, ct::TensorShape ({pv->nloc }));
181166 U_operator.zero ();
182167
@@ -210,7 +195,6 @@ void evolve_psi_tensor(const int nband,
210195 // / @brief apply U_operator to the wave function of the previous step for new wave function
211196 // / @input U_operator, psi_k_laststep, print_matrix
212197 // / @output psi_k
213- // Use TensorMap to map psi_k_laststep and psi_k to Tensor
214198 if (!use_lapack)
215199 {
216200 upsi_tensor (pv, nband, nlocal, U_operator, psi_k_laststep, psi_k, print_matrix);
@@ -239,7 +223,6 @@ void evolve_psi_tensor(const int nband,
239223 // / @brief compute ekb
240224 // / @input Htmp, psi_k
241225 // / @output ekb
242- // Create a Tensor for ekb using TensorMap
243226 if (!use_lapack)
244227 {
245228 compute_ekb_tensor (pv, nband, nlocal, Hold, psi_k, ekb);
0 commit comments