Skip to content

Commit bc9971d

Browse files
committed
fix deps
1 parent 7d5118a commit bc9971d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

paddle/fluid/operators/math/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if (NOT WIN32) # windows do not support avx functions yet.
4646
math_library(gru_compute DEPS activation_functions math_function)
4747
math_library(lstm_compute DEPS activation_functions)
4848
# TODO(TJ): ugly workaround, clean me
49-
cc_library(cpu_lstm_compute SRCS cpu_lstm_compute.cc DEPS activation_functions cblas)
49+
cc_library(cpu_lstm_compute SRCS cpu_lstm_compute.cc DEPS activation_functions cblas cpu_info)
5050
endif (NOT WIN32)
5151

5252
cc_library(blas SRCS blas.cc DEPS cblas framework_proto device_context)

paddle/fluid/operators/math/cpu_vec.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License. */
1717
#include <functional>
1818
#include <string>
1919
#include "paddle/fluid/platform/cpu_info.h"
20+
#include "paddle/fluid/platform/enforce.h"
2021
#ifdef __AVX__
2122
#include <immintrin.h>
2223
#endif
@@ -476,7 +477,7 @@ class VecActivations {
476477
} else if (type == "identity" || type == "") {
477478
return vec_identity<T, isa>;
478479
}
479-
LOG(FATAL) << "Not support type: " << type;
480+
PADDLE_THROW("Not support type: %s", type);
480481
}
481482
};
482483

0 commit comments

Comments
 (0)