a new function to tell if isomalloc is working or not.
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 22 Jan 2009 20:31:38 +0000 (20:31 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 22 Jan 2009 20:31:38 +0000 (20:31 +0000)
src/conv-core/isomalloc.c

index 723858d754e0e037e479ab45b5f18965b2fd531e..47864abf4dcb5926b1bef23190fe39b95f994fa2 100644 (file)
@@ -1,3 +1,10 @@
+/*****************************************************************************
+ * $Source$
+ * $Author$ 
+ * $Date$
+ * $Revision$
+ *****************************************************************************/
+
 /**************************************************************************
 Isomalloc:
   A way to allocate memory at the same address on every processor.
@@ -2121,6 +2128,11 @@ void *CmiIsomalloc(int size)
        return block2pointer(blk);
 }
 
+int CmiIsomallocEnabled()
+{
+  return (isomallocStart!=NULL);
+}
+
 void CmiIsomallocPup(pup_er p,void **blockPtrPtr)
 {
        CmiIsomallocBlock *blk;