提交 b2488256 编写于 作者: X xj.lin

MS-476 1. enable default value


Former-commit-id: 1692514a0749b7fdaaf66679c07903398efd3b7e
上级 ee303a52
......@@ -42,6 +42,9 @@ StartSchedulerService() {
auto pinned_memory = resconf.GetInt64Value(server::CONFIG_RESOURCE_PIN_MEMORY);
auto temp_memory = resconf.GetInt64Value(server::CONFIG_RESOURCE_TEMP_MEMORY);
auto resource_num = resconf.GetInt64Value(server::CONFIG_RESOURCE_NUM);
if (pinned_memory == 0) pinned_memory = 300;
if (temp_memory == 0) temp_memory = 300;
if (resource_num == 0) resource_num = 2;
pinned_memory = 1024 * 1024 * pinned_memory;
temp_memory = 1024 * 1024 * temp_memory;
knowhere::FaissGpuResourceMgr::GetInstance().InitDevice(device_id, pinned_memory, temp_memory, resource_num);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册