Skip to content

Commit 9b111a3

Browse files
committed
Update diago_subspace
1 parent 478ed3f commit 9b111a3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/module_hsolver/diago_dav_subspace.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,22 @@ class Diago_DavSubspace
139139

140140
bool test_exit_cond(const int& ntry, const int& notconv, const bool& scf);
141141

142+
#ifdef __DSP
143+
using resmem_complex_op = base_device::memory::resize_memory_op_mt<T, Device>;
144+
using delmem_complex_op = base_device::memory::delete_memory_op_mt<T, Device>;
145+
#else
142146
using resmem_complex_op = base_device::memory::resize_memory_op<T, Device>;
143147
using delmem_complex_op = base_device::memory::delete_memory_op<T, Device>;
148+
#endif
144149
using setmem_complex_op = base_device::memory::set_memory_op<T, Device>;
145150

151+
#ifdef __DSP
152+
using resmem_real_op = base_device::memory::resize_memory_op_mt<Real, Device>;
153+
using delmem_real_op = base_device::memory::delete_memory_op_mt<Real, Device>;
154+
#else
146155
using resmem_real_op = base_device::memory::resize_memory_op<Real, Device>;
147156
using delmem_real_op = base_device::memory::delete_memory_op<Real, Device>;
157+
#endif
148158
using setmem_real_op = base_device::memory::set_memory_op<Real, Device>;
149159

150160
using resmem_real_h_op = base_device::memory::resize_memory_op<Real, base_device::DEVICE_CPU>;

0 commit comments

Comments
 (0)