 
    // Init Device
    DeviceStats &ref(DeviceStats::getRef());
+   printFreeMem();
 
 
    PrecisionTimer iterationTimer;

#include "simulation_state.h"
#include "typedefs.h"

int main(int argc, char *argv[])
{
   // Create output directory if necessary

   printf("nit=%d\n",nit);
   for (;simState.iterationNum<nit; simState.iterationNum++) 
   {
      printFreeMem();

      if(percentComplete < 100 &&
         static_cast<int>(simState.iterationNum / percentSize) > percentComplete)
