提交 a9e8b30c authored 作者: Frederic's avatar Frederic

comment print in macro that compute allocated memory on the gpu.

上级 87c38921
...@@ -107,8 +107,8 @@ int device_free(void *ptr) ...@@ -107,8 +107,8 @@ int device_free(void *ptr)
break; break;
} }
if(i==TABLE_SIZE) //if(i==TABLE_SIZE)
printf("Unallocated unknow size!\n"); // printf("Unallocated unknow size!\n");
//fprintf(stderr, "freed %li bytes of device memory (%s). %d already allocated, ptr=%p\n", (long)total_freed, cudaGetErrorString(err),_allocated_size,ptr); //fprintf(stderr, "freed %li bytes of device memory (%s). %d already allocated, ptr=%p\n", (long)total_freed, cudaGetErrorString(err),_allocated_size,ptr);
#endif #endif
return 0; return 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论