提交 14fe9219 编写于 作者: L liuwei1031

reset unexpected changes, test=develop

上级 b1f97a6f
...@@ -117,11 +117,6 @@ void* GPUAllocator::Alloc(size_t* index, size_t size) { ...@@ -117,11 +117,6 @@ void* GPUAllocator::Alloc(size_t* index, size_t size) {
if (result == cudaSuccess) { if (result == cudaSuccess) {
*index = 0; *index = 0;
gpu_alloc_size_ += size; gpu_alloc_size_ += size;
if (gpu_alloc_size_ > s_memoryMap[gpu_id_]) {
s_memoryMap[gpu_id_] = gpu_alloc_size_;
VLOG(3) << "device: " << gpu_id_
<< " maximum memory size : " <<(gpu_alloc_size_ >> 20) << " MiB";
}
return p; return p;
} else { } else {
LOG(WARNING) LOG(WARNING)
......
...@@ -15,7 +15,6 @@ limitations under the License. */ ...@@ -15,7 +15,6 @@ limitations under the License. */
#pragma once #pragma once
#include <stddef.h> // for size_t #include <stddef.h> // for size_t
#include <unordered_map>
namespace paddle { namespace paddle {
namespace memory { namespace memory {
...@@ -45,8 +44,6 @@ class CPUAllocator : public SystemAllocator { ...@@ -45,8 +44,6 @@ class CPUAllocator : public SystemAllocator {
#ifdef PADDLE_WITH_CUDA #ifdef PADDLE_WITH_CUDA
class GPUAllocator : public SystemAllocator { class GPUAllocator : public SystemAllocator {
public: public:
std::unordered_map<int, uint64_t> s_memoryMap;
explicit GPUAllocator(int gpu_id) : gpu_id_(gpu_id) {} explicit GPUAllocator(int gpu_id) : gpu_id_(gpu_id) {}
virtual void* Alloc(size_t* index, size_t size); virtual void* Alloc(size_t* index, size_t size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册