Skip to content

Commit bab5727

Browse files
committed
Return all changes
1 parent f558e07 commit bab5727

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

source/module_base/opt_CG.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55

66
#include <iostream>
77

8-
#ifdef __CUDA
9-
#undef __CUDA
108
#include "global_function.h"
11-
#define __CUDA
12-
#endif
139
#include "module_base/parallel_reduce.h"
1410

1511
namespace ModuleBase

source/module_base/test/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ AddTest(
132132

133133
AddTest(
134134
TARGET base_math_chebyshev
135-
LIBS parameter ${math_libs} device container
136-
SOURCES math_chebyshev_test.cpp ../blas_connector.cpp ../math_chebyshev.cpp ../tool_quit.cpp ../global_variable.cpp ../timer.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../parallel_reduce.cpp
135+
LIBS parameter ${math_libs} base device container
136+
SOURCES math_chebyshev_test.cpp ../math_chebyshev.cpp ../tool_quit.cpp ../global_variable.cpp ../timer.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../parallel_reduce.cpp
137137
)
138138

139139
AddTest(
@@ -144,14 +144,14 @@ AddTest(
144144

145145
AddTest(
146146
TARGET base_opt_CG
147-
LIBS parameter ${math_libs}
148-
SOURCES opt_CG_test.cpp opt_test_tools.cpp ../blas_connector.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
147+
LIBS parameter ${math_libs} base device
148+
SOURCES opt_CG_test.cpp opt_test_tools.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
149149
)
150150

151151
AddTest(
152152
TARGET base_opt_TN
153-
LIBS parameter ${math_libs}
154-
SOURCES opt_TN_test.cpp opt_test_tools.cpp ../blas_connector.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
153+
LIBS parameter ${math_libs} base device
154+
SOURCES opt_TN_test.cpp opt_test_tools.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
155155
)
156156

157157
AddTest(

0 commit comments

Comments
 (0)