Documentation ¶
Index ¶
Constants ¶
View Source
const ( LLMOSPrefix = "llmos.ai" LabelGPUNodeRoleKey = LLMOSPrefix + "/gpu-node" GPUStackPrefix = "gpustack.llmos.ai" LabelNodeNameKey = GPUStackPrefix + "/node-name" NodeHandshakeAnnotation = "volcano.sh/node-vgpu-handshake" AssignedNodeAnnotations = "volcano.sh/vgpu-node" )
Variables ¶
This section is empty.
Functions ¶
func ParseDeviceInfo ¶
func ParseDeviceInfo(devInfo *autils.DeviceInfo) gpustackv1.GPUDeviceInfo
Types ¶
type NodeDeviceInfo ¶
type NodeDeviceThreadSafeCache ¶
type NodeDeviceThreadSafeCache struct {
// contains filtered or unexported fields
}
NodeDeviceThreadSafeCache is a structure to hold the cache
func NewThreadSafeCache ¶
func NewThreadSafeCache() *NodeDeviceThreadSafeCache
NewThreadSafeCache initializes a new cache of NodeDeviceInfo
func (*NodeDeviceThreadSafeCache) Delete ¶
func (c *NodeDeviceThreadSafeCache) Delete(key string)
Delete removes a key from the cache in a thread-safe way
func (*NodeDeviceThreadSafeCache) Get ¶
func (c *NodeDeviceThreadSafeCache) Get(key string) (NodeDeviceInfo, bool)
Get retrieves a value from the cache in a thread-safe way
func (*NodeDeviceThreadSafeCache) Set ¶
func (c *NodeDeviceThreadSafeCache) Set(key string, value NodeDeviceInfo)
Set adds or updates a value in the cache in a thread-safe way
Click to show internal directories.
Click to hide internal directories.