From 7782a4ab53cc2079a23dc0a60eb175baabb07542 Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Thu, 5 Jul 2018 19:11:40 +0800 Subject: [PATCH] fix blas build issue --- paddle/fluid/operators/math/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/math/CMakeLists.txt b/paddle/fluid/operators/math/CMakeLists.txt index 5ae4a00d3f3..6f672a069bc 100644 --- a/paddle/fluid/operators/math/CMakeLists.txt +++ b/paddle/fluid/operators/math/CMakeLists.txt @@ -41,7 +41,11 @@ math_library(depthwise_conv) math_library(gru_compute DEPS activation_functions math_function) math_library(im2col) math_library(lstm_compute DEPS activation_functions) -cc_library(blas SRCS blas.cc DEPS cblas libxsmm framework_proto device_context) +set(BLAS_DEPS cblas framework_proto device_context) +if (WITH_LIBXSMM) + list(APPEND BLAS_DEPS libxsmm) +endif() +cc_library(blas SRCS blas.cc DEPS ${BLAS_DEPS}) math_library(math_function DEPS blas) math_library(maxouting) math_library(pooling) -- GitLab