aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/gdr
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com>2018-08-19 20:48:25 +0000
committerGravatar Yong Tang <yong.tang.github@outlook.com>2018-08-19 20:48:25 +0000
commit8c3457521f719736a7ac109bf7debbedd7fe4584 (patch)
treeb0d843f9ce15570d8d91660ea8d33ec47d8eaed7 /tensorflow/contrib/gdr
parent36554abcb58bb673153e585a5995ccf9674f31c9 (diff)
Fix compilation failure with RDMA+GDR
This fix tries to address the issue raised in 21696 where tensorflow failed to compile when both RDMA and GDR are on. The issue is that the memory allocator of GDR used the same name as RDMA. This fix fixes 21696. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'tensorflow/contrib/gdr')
-rw-r--r--tensorflow/contrib/gdr/gdr_memory_manager.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/contrib/gdr/gdr_memory_manager.cc b/tensorflow/contrib/gdr/gdr_memory_manager.cc
index 7e6a0f14f6..c6bb02389d 100644
--- a/tensorflow/contrib/gdr/gdr_memory_manager.cc
+++ b/tensorflow/contrib/gdr/gdr_memory_manager.cc
@@ -186,22 +186,22 @@ class GdrMemoryManager : public RemoteMemoryManager {
// TODO(byronyi): remove this class and its registration when the default
// cpu_allocator() returns visitable allocator, or cpu_allocator() is no
// longer in use.
-class BFCRdmaAllocator : public BFCAllocator {
+class BFCGdrAllocator : public BFCAllocator {
public:
- BFCRdmaAllocator()
+ BFCGdrAllocator()
: BFCAllocator(new BasicCPUAllocator(port::kNUMANoAffinity), 1LL << 36,
true, "cpu_rdma_bfc") {}
};
-class BFCRdmaAllocatorFactory : public AllocatorFactory {
+class BFCGdrAllocatorFactory : public AllocatorFactory {
public:
- Allocator* CreateAllocator() override { return new BFCRdmaAllocator; }
+ Allocator* CreateAllocator() override { return new BFCGdrAllocator; }
virtual SubAllocator* CreateSubAllocator(int numa_node) {
return new BasicCPUAllocator(numa_node);
}
};
-REGISTER_MEM_ALLOCATOR("BFCRdmaAllocator", 101, BFCRdmaAllocatorFactory);
+REGISTER_MEM_ALLOCATOR("BFCGdrAllocator", 101, BFCGdrAllocatorFactory);
GdrMemoryManager::GdrMemoryManager(const string& host, const string& port)
: host_(host),