From de6f9c487952c9f9668c2438d3ee901e12c4c8eb Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Sat, 22 Jul 2017 16:15:23 -0700 Subject: [PATCH] Add dependency memory->device_context, because we now use platform::GPUPlaceGuard --- paddle/memory/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paddle/memory/CMakeLists.txt b/paddle/memory/CMakeLists.txt index 3e53d1ce653..8035d93bfec 100644 --- a/paddle/memory/CMakeLists.txt +++ b/paddle/memory/CMakeLists.txt @@ -1,7 +1,7 @@ add_subdirectory(detail) cc_library(memory SRCS memory.cc) -cc_library(memcpy SRCS memcpy.cc) +cc_library(memcpy SRCS memcpy.cc DEPS device_context) cc_library(paddle_memory DEPS @@ -11,7 +11,6 @@ cc_library(paddle_memory meta_cache memory_block buddy_allocator - system_allocator - device_context) + system_allocator) cc_test(memory_test SRCS memory_test.cc DEPS place paddle_memory) -- GitLab