     free_list_host.clear();
   }
 
-  static int num_resurrections=0, num_morecore=0;
+  static size_t num_resurrections=0, num_morecore=0;
 
   typedef cudaError (*mallocfn_t)(void **ptr, size_t bytes);
   static void *morecore(mallocfn_t fn, size_t bytes) {

}

void freeHostMem(void *p) {
  int bytes;
  assert(is_init);
#ifdef NO_OPT
  cudaFreeHost(p);

  }
  
  static void clearHostFreeList() {
    for(map<size_t,set<void*> >::iterator it=free_list_host.begin(); 
	it!=free_list_host.end(); ++it) {
      for(set<void*>::iterator it2=it->second.begin();
	  it2!=it->second.end(); ++it2) {
