提交 34e45a0c authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix the cnmem memory usage printed

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