a C wrapper for CmiGetHopsBetweenRanks
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 20 Apr 2012 07:17:18 +0000 (02:17 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 20 Apr 2012 07:17:18 +0000 (02:17 -0500)
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);
 
 extern int CharmLibInterOperate;
 CpvExtern(int,charmLibExitFlag);
 
+/*
+ *         Topology C wrapper
+ */
+extern int CmiGetHopsBetweenRanks(int pe1, int pe2);
+
 #if defined(__cplusplus)
 }                                         /* end of extern "C"  */
 #endif
 #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);
+}
+
+