CMakeLists.txt 641 字节
Newer Older
P
peizhilin 已提交
1 2 3 4 5 6
# make the external project built first
set(PADDLE_MEMORY_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/memory/build")
add_custom_command(OUTPUT ${PADDLE_MEMORY_BUILD_DIR}/.timestamp
        COMMAND ${CMAKE_COMMAND} -E touch ${PADDLE_MEMORY_BUILD_DIR}/.timestamp
        DEPENDS ${external_project_dependencies})

7
add_subdirectory(detail)
8
add_subdirectory(allocation)
Y
Yu Yang 已提交
9
cc_library(malloc SRCS malloc.cc DEPS place enforce allocator_facade)
D
dangqingqing 已提交
10
cc_library(memcpy SRCS memcpy.cc DEPS place)
11

Y
Yi Wang 已提交
12
cc_library(memory
13
        DEPS
Y
Yi Wang 已提交
14 15
        malloc
        memcpy)
C
chengduoZH 已提交
16
#if (WITH_GPU)
17
#   nv_test(pinned_memory_test SRCS pinned_memory_test.cu  DEPS place memory)
C
chengduoZH 已提交
18
#endif()