Skip to content

Commit f558e07

Browse files
committed
OPTFIX2
1 parent 2a0cfd6 commit f558e07

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

source/module_base/opt_CG.h

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

66
#include <iostream>
77

8+
#ifdef __CUDA
9+
#undef __CUDA
810
#include "global_function.h"
11+
#define __CUDA
12+
#endif
913
#include "module_base/parallel_reduce.h"
1014

1115
namespace ModuleBase

source/module_base/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ AddTest(
144144

145145
AddTest(
146146
TARGET base_opt_CG
147-
LIBS parameter ${math_libs} device
147+
LIBS parameter ${math_libs}
148148
SOURCES opt_CG_test.cpp opt_test_tools.cpp ../blas_connector.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} device
153+
LIBS parameter ${math_libs}
154154
SOURCES opt_TN_test.cpp opt_test_tools.cpp ../blas_connector.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
155155
)
156156

0 commit comments

Comments
 (0)