@@ -5,44 +5,44 @@ remove_definitions(-D__EXX)
55
66if (ENABLE_MPI)
77 AddTest(
8- TARGET hsolver_parak2d_test
8+ TARGET MODULE_HSOLVER_parak2d_test
99 LIBS parameter ${math_libs} base device MPI::MPI_CXX
1010 SOURCES parallel_k2d_test.cpp ../parallel_k2d.cpp ../../module_cell/parallel_kpoints.cpp
1111 )
1212 AddTest(
13- TARGET HSolver_bpcg
13+ TARGET MODULE_HSOLVER_bpcg
1414 LIBS parameter ${math_libs} base psi device container
1515 SOURCES diago_bpcg_test.cpp ../diago_bpcg.cpp ../para_linear_transform.cpp ../diago_iter_assist.cpp
1616 ../../module_basis/module_pw/test /test_tool.cpp
1717 ../../module_hamilt_general/operator.cpp
1818 ../../module_hamilt_pw/hamilt_pwdft/operator_pw/operator_pw.cpp
1919 )
2020 AddTest(
21- TARGET HSolver_cg
21+ TARGET MODULE_HSOLVER_cg
2222 LIBS parameter ${math_libs} base psi device container
2323 SOURCES diago_cg_test.cpp ../diago_cg.cpp ../diago_iter_assist.cpp ../diag_const_nums.cpp
2424 ../../module_basis/module_pw/test /test_tool.cpp
2525 ../../module_hamilt_general/operator.cpp
2626 ../../module_hamilt_pw/hamilt_pwdft/operator_pw/operator_pw.cpp
2727 )
2828 AddTest(
29- TARGET HSolver_cg_float
29+ TARGET MODULE_HSOLVER_cg_float
3030 LIBS parameter ${math_libs} base psi device container
3131 SOURCES diago_cg_float_test.cpp ../diago_cg.cpp ../diago_iter_assist.cpp ../diag_const_nums.cpp
3232 ../../module_basis/module_pw/test /test_tool.cpp
3333 ../../module_hamilt_general/operator.cpp
3434 ../../module_hamilt_pw/hamilt_pwdft/operator_pw/operator_pw.cpp
3535 )
3636 AddTest(
37- TARGET HSolver_dav
37+ TARGET MODULE_HSOLVER_dav
3838 LIBS parameter ${math_libs} base psi device
3939 SOURCES diago_david_test.cpp ../diago_david.cpp ../diago_iter_assist.cpp ../diag_const_nums.cpp
4040 ../../module_basis/module_pw/test /test_tool.cpp
4141 ../../module_hamilt_general/operator.cpp
4242 ../../module_hamilt_pw/hamilt_pwdft/operator_pw/operator_pw.cpp
4343 )
4444 AddTest(
45- TARGET HSolver_dav_float
45+ TARGET MODULE_HSOLVER_dav_float
4646 LIBS parameter ${math_libs} base psi device
4747 SOURCES diago_david_float_test.cpp ../diago_david.cpp ../diago_iter_assist.cpp ../diag_const_nums.cpp
4848 ../../module_basis/module_pw/test /test_tool.cpp
@@ -51,15 +51,15 @@ if (ENABLE_MPI)
5151 )
5252 if (ENABLE_LCAO)
5353 AddTest(
54- TARGET HSolver_cg_real
54+ TARGET MODULE_HSOLVER_cg_real
5555 LIBS parameter ${math_libs} base psi device container
5656 SOURCES diago_cg_float_test.cpp ../diago_cg.cpp ../diago_iter_assist.cpp ../diag_const_nums.cpp
5757 ../../module_basis/module_pw/test /test_tool.cpp
5858 ../../module_hamilt_general/operator.cpp
5959 ../../module_hamilt_pw/hamilt_pwdft/operator_pw/operator_pw.cpp
6060 )
6161 AddTest(
62- TARGET HSolver_dav_real
62+ TARGET MODULE_HSOLVER_dav_real
6363 LIBS parameter ${math_libs} base psi device
6464 SOURCES diago_david_real_test.cpp ../diago_david.cpp ../diago_iter_assist.cpp ../diag_const_nums.cpp
6565 ../../module_basis/module_pw/test /test_tool.cpp
@@ -69,20 +69,20 @@ if (ENABLE_MPI)
6969 endif ()
7070
7171 AddTest(
72- TARGET HSolver_base
72+ TARGET MODULE_HSOLVER_base
7373 LIBS parameter ${math_libs} psi device base
7474 SOURCES test_hsolver.cpp
7575 )
7676
7777 AddTest(
78- TARGET HSolver_pw
78+ TARGET MODULE_HSOLVER_pw
7979 LIBS parameter ${math_libs} psi device base container
8080 SOURCES test_hsolver_pw.cpp ../hsolver_pw.cpp ../hsolver_lcaopw.cpp ../diago_bpcg.cpp ../diago_dav_subspace.cpp ../diag_const_nums.cpp ../diago_iter_assist.cpp ../para_linear_transform.cpp
8181 ../../module_elecstate/elecstate_tools.cpp ../../module_elecstate/occupy.cpp
8282 )
8383
8484 AddTest(
85- TARGET HSolver_sdft
85+ TARGET MODULE_HSOLVER_sdft
8686 LIBS parameter ${math_libs} psi device base container
8787 SOURCES test_hsolver_sdft.cpp ../hsolver_pw_sdft.cpp ../hsolver_pw.cpp ../diago_bpcg.cpp ../diago_dav_subspace.cpp ../diag_const_nums.cpp ../diago_iter_assist.cpp ../para_linear_transform.cpp
8888 ../../module_elecstate/elecstate_tools.cpp ../../module_elecstate/occupy.cpp
@@ -91,29 +91,29 @@ if (ENABLE_MPI)
9191 if (ENABLE_LCAO)
9292 if (USE_ELPA)
9393 AddTest(
94- TARGET HSolver_LCAO
94+ TARGET MODULE_HSOLVER_LCAO
9595 LIBS parameter ${math_libs} ELPA::ELPA base genelpa psi device
9696 SOURCES diago_lcao_test.cpp ../diago_elpa.cpp ../diago_scalapack.cpp
9797 )
9898 else ()
9999 AddTest(
100- TARGET HSolver_LCAO
100+ TARGET MODULE_HSOLVER_LCAO
101101 LIBS parameter ${math_libs} base psi device
102102 SOURCES diago_lcao_test.cpp ../diago_scalapack.cpp
103103 )
104104 endif ()
105105
106106 if (ENABLE_PEXSI)
107107 AddTest(
108- TARGET HSolver_LCAO_PEXSI
108+ TARGET MODULE_HSOLVER_LCAO_PEXSI
109109 LIBS parameter ${math_libs} ${PEXSI_LIBRARY} ${SuperLU_DIST_LIBRARY} ${ParMETIS_LIBRARY} ${METIS_LIBRARY} MPI::MPI_CXX base psi device pexsi
110110 SOURCES diago_pexsi_test.cpp ../diago_pexsi.cpp ../../module_basis/module_ao/parallel_orbitals.cpp
111111 )
112112 endif ()
113113 endif ()
114114 if (USE_CUDA)
115115 AddTest(
116- TARGET HSolver_LCAO_cusolver
116+ TARGET MODULE_HSOLVER_LCAO_cusolver
117117 LIBS parameter ${math_libs} base psi device
118118 SOURCES diago_lcao_cusolver_test.cpp ../diago_cusolver.cpp ../diago_scalapack.cpp
119119 ../kernels/dngvd_op.cpp
@@ -123,7 +123,7 @@ if (ENABLE_MPI)
123123else ()
124124 if (ENABLE_LCAO)
125125 AddTest(
126- TARGET HSolver_Lapack
126+ TARGET MODULE_HSOLVER_Lapack
127127 LIBS parameter ${math_libs} base psi device
128128 SOURCES diago_lapack_test.cpp ../diago_lapack.cpp
129129 )
@@ -156,43 +156,43 @@ install(FILES parallel_k2d_test.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
156156
157157
158158AddTest(
159- TARGET hsolver_diago_hs_parallel
159+ TARGET MODULE_HSOLVER_diago_hs_parallel
160160 LIBS parameter ${math_libs} ELPA::ELPA base device MPI::MPI_CXX genelpa psi
161161 SOURCES test_diago_hs_para.cpp ../diag_hs_para.cpp ../diago_pxxxgvx.cpp ../diago_elpa.cpp ../diago_scalapack.cpp
162162)
163163
164164AddTest(
165- TARGET hsolver_linear_trans
165+ TARGET MODULE_HSOLVER_linear_trans
166166 LIBS parameter ${math_libs} base device MPI::MPI_CXX
167167 SOURCES test_para_linear_trans.cpp ../para_linear_transform.cpp
168168)
169169
170- add_test (NAME hsolver_para_linear_trans
171- COMMAND mpirun -np 4 ./hsolver_linear_trans
170+ add_test (NAME MODULE_HSOLVER_para_linear_trans
171+ COMMAND mpirun -np 4 ./MODULE_HSOLVER_linear_trans
172172 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
173173)
174174
175175find_program (BASH bash)
176176if (ENABLE_MPI)
177- add_test (NAME HSolver_cg_parallel
177+ add_test (NAME MODULE_HSOLVER_cg_parallel
178178 COMMAND ${BASH} diago_cg_parallel_test.sh
179179 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
180180 )
181- add_test (NAME hsolver_parak2d_test_parallel
181+ add_test (NAME MODULE_HSOLVER_parak2d_test_parallel
182182 COMMAND ${BASH} parallel_k2d_test.sh
183183 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
184184 )
185- add_test (NAME HSolver_dav_parallel
185+ add_test (NAME MODULE_HSOLVER_dav_parallel
186186 COMMAND ${BASH} diago_david_parallel_test.sh
187187 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
188188 )
189189 if (ENABLE_LCAO)
190- add_test (NAME HSolver_LCAO_parallel
190+ add_test (NAME MODULE_HSOLVER_LCAO_parallel
191191 COMMAND ${BASH} diago_lcao_parallel_test.sh
192192 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
193193 )
194194 if (ENABLE_PEXSI)
195- add_test (NAME HSolver_LCAO_PEXSI_parallel
195+ add_test (NAME MODULE_HSOLVER_LCAO_PEXSI_parallel
196196 COMMAND ${BASH} diago_pexsi_parallel_test.sh
197197 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
198198 )
0 commit comments