mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
enhance: change gpu default mem pool size (#34159)
Signed-off-by: yusheng.ma <yusheng.ma@zilliz.com>
This commit is contained in:
parent
dea73ef288
commit
a9352a073b
@ -979,5 +979,5 @@ trace:
|
||||
#milvus will automatically initialize half of the available GPU memory,
|
||||
#maxMemSize will the whole available GPU memory.
|
||||
gpu:
|
||||
initMemSize: # Gpu Memory Pool init size
|
||||
maxMemSize: # Gpu Memory Pool Max size
|
||||
initMemSize: 2048 # Gpu Memory Pool init size
|
||||
maxMemSize: 4096 # Gpu Memory Pool Max size
|
||||
|
@ -885,18 +885,20 @@ type gpuConfig struct {
|
||||
|
||||
func (t *gpuConfig) init(base *BaseTable) {
|
||||
t.InitSize = ParamItem{
|
||||
Key: "gpu.initMemSize",
|
||||
Version: "2.3.4",
|
||||
Doc: `Gpu Memory Pool init size`,
|
||||
Export: true,
|
||||
Key: "gpu.initMemSize",
|
||||
Version: "2.3.4",
|
||||
Doc: `Gpu Memory Pool init size`,
|
||||
Export: true,
|
||||
DefaultValue: "2048",
|
||||
}
|
||||
t.InitSize.Init(base.mgr)
|
||||
|
||||
t.MaxSize = ParamItem{
|
||||
Key: "gpu.maxMemSize",
|
||||
Version: "2.3.4",
|
||||
Doc: `Gpu Memory Pool Max size`,
|
||||
Export: true,
|
||||
Key: "gpu.maxMemSize",
|
||||
Version: "2.3.4",
|
||||
Doc: `Gpu Memory Pool Max size`,
|
||||
Export: true,
|
||||
DefaultValue: "4096",
|
||||
}
|
||||
t.MaxSize.Init(base.mgr)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user