ENH: Remove comments

cblas_new
liaogang 8 years ago
parent 383b96f32c
commit ff98e3c1ec

@ -20,13 +20,11 @@ namespace paddle {
namespace memory { namespace memory {
namespace detail { namespace detail {
// SystemAllocator is the parent class of CPUAllocator and /**
// GPUAllocator. A BuddyAllocator object uses a SystemAllocator* * \brief SystemAllocator is the parent class of CPUAllocator and GPUAllocator.
// pointing to the underlying system allocator. An alternative to * A BuddyAllocator object uses a SystemAllocator* pointing to the
// this class hierarchy is to pass a system allocator class to * underlying system allocator.
// BuddyAllocator as a template parameter. This approach makes */
// BuddyAllocator a class template, and it's very complicated
// algorithm would make the buddy_allocator.h messy.
class SystemAllocator { class SystemAllocator {
public: public:
virtual ~SystemAllocator() {} virtual ~SystemAllocator() {}

@ -65,7 +65,6 @@ size_t GpuMinChunkSize() {
} }
size_t GpuMaxChunkSize() { size_t GpuMaxChunkSize() {
// Allow to allocate the maximum chunk size is roughly 3% of CPU memory.
size_t total = 0; size_t total = 0;
size_t available = 0; size_t available = 0;

Loading…
Cancel
Save