FIX: Pass CI

gangliao-patch-1
liaogang 8 years ago
parent 55648b4f4c
commit 3e9aa7fd8b

@ -78,10 +78,6 @@
#
# cc_test(example_test SRCS example_test.cc DEPS example glog gflags)
if(WITH_GPU)
add_definitions(-DPADDLE_WITH_GPU)
endif()
if(NOT APPLE)
find_package(Threads REQUIRED)
link_libraries(${CMAKE_THREAD_LIBS_INIT})

@ -1,7 +1 @@
add_subdirectory(detail)
if(${WITH_GPU})
nv_library(memory SRCS memory.cc)
else(${WITH_GPU})
cc_library(memory SRCS memory.cc)
endif(${WITH_GPU})

@ -14,7 +14,7 @@
#pragma once
#include "paddle/memory/detail/system_allocator.h"
#include "paddle/memory/detail/buddy_allocator.h"
namespace paddle {
namespace memory {

@ -16,6 +16,9 @@
#include "paddle/memory/detail/system_allocator.h"
#include <vector>
#include <mutex>
namespace paddle {
namespace memory {
namespace detail {

Loading…
Cancel
Save