MCPcopy Create free account
hub / github.com/cogentcore/core / Config

Method Config

vgpu/memory.go:100–105  ·  view source on GitHub ↗

Config should be called after all Values have been configured and are ready to go with their initial data. Does: AllocHost(), AllocDev(). Note: dynamic binding must be called separately after this.

(dev vk.Device)

Source from the content-addressed store, hash-verified

98// Does: AllocHost(), AllocDev().
99// Note: dynamic binding must be called separately after this.
100func (mm *Memory) Config(dev vk.Device) {
101 mm.Free()
102 mm.Vars.Config()
103 mm.AllocHost()
104 mm.AllocDev()
105}
106
107// AllocHost allocates memory for all buffers
108func (mm *Memory) AllocHost() {

Callers

nothing calls this directly

Calls 4

FreeMethod · 0.95
AllocHostMethod · 0.95
AllocDevMethod · 0.95
ConfigMethod · 0.65

Tested by

no test coverage detected