CMakeLists.txt 578 字节
Newer Older
1
add_subdirectory(detail)
2
add_subdirectory(allocation)
3 4 5 6 7 8 9 10 11

if (WITH_MKLDNN)
    set(MKLDNN_CTX_DEPS mkldnn)
else ()
    set(MKLDNN_CTX_DEPS)
endif()

cc_library(malloc SRCS malloc.cc DEPS
    place enforce allocator_facade profiler ${MKLDNN_CTX_DEPS})
D
dangqingqing 已提交
12
cc_library(memcpy SRCS memcpy.cc DEPS place)
13

Y
Yi Wang 已提交
14
cc_library(memory
15
        DEPS
Y
Yi Wang 已提交
16 17
        malloc
        memcpy)
18 19 20 21 22 23 24

if (WITH_GPU)
    nv_test(malloc_test
            SRCS malloc_test.cu
            DEPS device_context malloc)
endif()

C
chengduoZH 已提交
25
#if (WITH_GPU)
26
#   nv_test(pinned_memory_test SRCS pinned_memory_test.cu  DEPS place memory)
C
chengduoZH 已提交
27
#endif()