One package one exposed target
Created by: wangkuiyi
-
There are many targets in paddle/fluid/memory/CMakeLists.txt, but their dependencies are not clearly expressed: https://github.com/PaddlePaddle/Paddle/blob/535646cf256cef422f34ebe19a7a1e311e4225d6/paddle/fluid/memory/CMakeLists.txt#L3-L14
-
The target
memory
should bemalloc
; the targetpaddle_memory
should bememory
and the only target exposed by the C++ packagepaddle/fluid/memory
. -
The dependencies inside the memory package should be
memory -> malloc -> (detail/)buddy_allocator -> (detail/)system_allocator \-> memcpy \-> (detail/)memory_block
where
malloc
is what currently known asmemory
, andmemory
is what currently known aspaddle_memory
.