提交 3ed0a8e5 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix the cnmem memory usage printed

上级 8bbc630c
......@@ -572,7 +572,7 @@ def use(device,
if config.lib.cnmem > 1:
cnmem_enabled = "enabled with initial size: %d MB" % config.lib.cnmem
else:
cnmem = min(config.lib.cnmem, 0.98) * 100
cnmem = min(config.lib.cnmem, 0.95) * 100
cnmem_enabled = "enabled with initial size: %.1f%% of memory" % cnmem
else:
cnmem_enabled = "disabled"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论