Merge branch 'charm' of charmgit:charm into charm
authorYanhua Sun <suny@jaguarpf-login7.ccs.ornl.gov>
Fri, 20 Apr 2012 20:16:53 +0000 (16:16 -0400)
committerYanhua Sun <suny@jaguarpf-login7.ccs.ornl.gov>
Fri, 20 Apr 2012 20:16:53 +0000 (16:16 -0400)
src/conv-core/converse.h
src/util/TopoManager.C

index 740a8b0dcfa61a4acc3f981b42543c7cd9402ba7..59d4e8c68810048528431dd248f086a6985ca583 100644 (file)
@@ -1844,6 +1844,11 @@ void CmiTurnOffStats();
 extern int CharmLibInterOperate;
 CpvExtern(int,charmLibExitFlag);
 
+/*
+ *         Topology C wrapper
+ */
+extern int CmiGetHopsBetweenRanks(int pe1, int pe2);
+
 #if defined(__cplusplus)
 }                                         /* end of extern "C"  */
 #endif
index fb89699448be9c6e3652ed0733133c8be8ea08ca..894da4a269bfb434bffedf185e73ec8c45d5c073 100644 (file)
@@ -427,3 +427,11 @@ void TopoManager::printAllocation(FILE *fp)
        }
 }
 
+
+extern "C" int CmiGetHopsBetweenRanks(int pe1, int pe2)
+{
+    TopoManager topomgr;
+    topomgr.getHopsBetweenRanks(pe1, pe2);
+}
+
+