未验证 提交 212c3227 编写于 作者: X xiebaiyuan 提交者: GitHub

[LITE][OPENCL] remove unused event & opt clang android log warning test=develop (#3437)

1. fix clang android log warning.
2. remove an unused event.
上级 9bd9311b
...@@ -65,9 +65,7 @@ TEST(io_copy, compute) { ...@@ -65,9 +65,7 @@ TEST(io_copy, compute) {
h2d_kernel->Launch(); h2d_kernel->Launch();
auto* event_key = d_y.data<float, cl::Buffer>(); auto* event_key = d_y.data<float, cl::Buffer>();
std::shared_ptr<cl::Event> event(new cl::Event);
d2h_kernel->Launch(); d2h_kernel->Launch();
auto* h_y_data = h_y.data<float>(); auto* h_y_data = h_y.data<float>();
for (int i = 0; i < 3 * 9 * 28 * 28; i++) { for (int i = 0; i < 3 * 9 * 28 * 28; i++) {
......
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
// Android log macors // Android log macors
#define ANDROID_LOG_TAG "Paddle-Lite" #define ANDROID_LOG_TAG "Paddle-Lite"
#define ANDROID_LOG_I(msg) \ #define ANDROID_LOG_I(msg) \
__android_log_print(ANDROID_LOG_INFO, ANDROID_LOG_TAG, msg) __android_log_print(ANDROID_LOG_INFO, ANDROID_LOG_TAG, "%s", msg)
#define ANDROID_LOG_W(msg) \ #define ANDROID_LOG_W(msg) \
__android_log_print(ANDROID_LOG_WARN, ANDROID_LOG_TAG, msg) __android_log_print(ANDROID_LOG_WARN, ANDROID_LOG_TAG, "%s", msg)
#define ANDROID_LOG_F(msg) \ #define ANDROID_LOG_F(msg) \
__android_log_print(ANDROID_LOG_FATAL, ANDROID_LOG_TAG, msg) __android_log_print(ANDROID_LOG_FATAL, ANDROID_LOG_TAG, "%s", msg)
#endif #endif
// NOLINTFILE() // NOLINTFILE()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册