From fc358816cbb32965c825746c634294ffba5187ba Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Fri, 19 May 2017 12:01:13 +0800 Subject: [PATCH] try adjusting building config --- paddle/majel/CMakeLists.txt | 3 ++- paddle/majel/dim.h | 2 +- paddle/majel/test/CMakeLists.txt | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/paddle/majel/CMakeLists.txt b/paddle/majel/CMakeLists.txt index 47f33dd83..cb8bece00 100644 --- a/paddle/majel/CMakeLists.txt +++ b/paddle/majel/CMakeLists.txt @@ -1,4 +1,5 @@ -cc_library(majel SRCS place.cc ddim.cc) +cc_library(place SRCS place.cc) +cc_library(ddim SRCS ddim.cc) if(WITH_TESTING) add_subdirectory(test) diff --git a/paddle/majel/dim.h b/paddle/majel/dim.h index 5eff4c05c..c4b0c6aea 100644 --- a/paddle/majel/dim.h +++ b/paddle/majel/dim.h @@ -5,8 +5,8 @@ #include #include +#include "paddle/majel/detail/cuda_assert.h" #include "paddle/majel/detail/hostdevice.h" -#include "paddle/majel/detail/util.h" namespace majel { diff --git a/paddle/majel/test/CMakeLists.txt b/paddle/majel/test/CMakeLists.txt index 424537995..9d632d568 100644 --- a/paddle/majel/test/CMakeLists.txt +++ b/paddle/majel/test/CMakeLists.txt @@ -1,12 +1,12 @@ cc_test(place_test SRCS place_test.cc - DEPS majel) + DEPS place) cc_test(ddim_test SRCS ddim_test.cc - DEPS majel) + DEPS ddim) if(WITH_GPU) nv_test(cuda_test SRCS cuda_test.cu) - nv_test(dim_test SRCS dim_test.cu DEPS majel) + nv_test(dim_test SRCS dim_test.cu DEPS ddim) endif() -- GitLab