mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance:change gpu default mem pool size (#36969)
Signed-off-by: yusheng.ma <yusheng.ma@zilliz.com>
This commit is contained in:
parent
d6adc62765
commit
27a4fe002a
@ -1026,5 +1026,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
|
||||
|
||||
@ -922,18 +922,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…
x
Reference in New Issue
Block a user