Documentation
¶
Overview ¶
Package rdma provides the implementation of an RDMA engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DrainReq ¶ added in v1.8.0
DrainReq asks the rdma to stop processing requests from L1 while allowing pending requests to L2 to complete
type DrainReqBuilder ¶ added in v1.8.0
type DrainReqBuilder struct {
// contains filtered or unexported fields
}
DrainReqBuilder can build RDMA drain requests
func (DrainReqBuilder) Build ¶ added in v1.8.0
func (b DrainReqBuilder) Build() *DrainReq
Build creats a new DrainReq
func (DrainReqBuilder) WithDst ¶ added in v1.8.0
func (b DrainReqBuilder) WithDst(dst akita.Port) DrainReqBuilder
WithDst sets the destination of the request to build.
func (DrainReqBuilder) WithSendTime ¶ added in v1.8.0
func (b DrainReqBuilder) WithSendTime( t akita.VTimeInSec, ) DrainReqBuilder
WithSendTime sets the send time of the request to build.:w
func (DrainReqBuilder) WithSrc ¶ added in v1.8.0
func (b DrainReqBuilder) WithSrc(src akita.Port) DrainReqBuilder
WithSrc sets the source of the request to build.
type DrainRspBuilder ¶ added in v1.8.0
type DrainRspBuilder struct {
// contains filtered or unexported fields
}
DrainRspBuilder can build RDMA drain responses
func (DrainRspBuilder) Build ¶ added in v1.8.0
func (b DrainRspBuilder) Build() *DrainRsp
Build creats a new RDMADrainRsp
func (DrainRspBuilder) WithDst ¶ added in v1.8.0
func (b DrainRspBuilder) WithDst(dst akita.Port) DrainRspBuilder
WithDst sets the destination of the request to build.
func (DrainRspBuilder) WithSendTime ¶ added in v1.8.0
func (b DrainRspBuilder) WithSendTime( t akita.VTimeInSec, ) DrainRspBuilder
WithSendTime sets the send time of the request to build
func (DrainRspBuilder) WithSrc ¶ added in v1.8.0
func (b DrainRspBuilder) WithSrc(src akita.Port) DrainRspBuilder
WithSrc sets the source of the request to build.
type Engine ¶
type Engine struct { *akita.TickingComponent ToOutside akita.Port ToL1 akita.Port ToL2 akita.Port CtrlPort akita.Port RemoteRDMAAddressTable cache.LowModuleFinder // contains filtered or unexported fields }
An Engine is a component that helps one GPU to access the memory on another GPU
func NewEngine ¶
func NewEngine( name string, engine akita.Engine, localModules cache.LowModuleFinder, remoteModules cache.LowModuleFinder, ) *Engine
NewEngine creates new engine
type RestartReq ¶ added in v1.8.0
RestartReq is a message to allow rdma to continue processing reqs from L1
func (*RestartReq) Meta ¶ added in v1.8.0
func (r *RestartReq) Meta() *akita.MsgMeta
Meta returns the meta data associated with the message.
type RestartReqBuilder ¶ added in v1.8.0
type RestartReqBuilder struct {
// contains filtered or unexported fields
}
RestartReqBuilder can build RDMA restart req
func (RestartReqBuilder) Build ¶ added in v1.8.0
func (b RestartReqBuilder) Build() *RestartReq
Build creats a new RDMADrainRsp
func (RestartReqBuilder) WithDst ¶ added in v1.8.0
func (b RestartReqBuilder) WithDst(dst akita.Port) RestartReqBuilder
WithDst sets the destination of the request to build.
func (RestartReqBuilder) WithSendTime ¶ added in v1.8.0
func (b RestartReqBuilder) WithSendTime( t akita.VTimeInSec, ) RestartReqBuilder
WithSendTime sets the send time of the request to build
func (RestartReqBuilder) WithSrc ¶ added in v1.8.0
func (b RestartReqBuilder) WithSrc(src akita.Port) RestartReqBuilder
WithSrc sets the source of the request to build.
type RestartRsp ¶ added in v1.8.0
RestartRsp is a drain complete response to a RDMA Drain Req
func (*RestartRsp) Meta ¶ added in v1.8.0
func (r *RestartRsp) Meta() *akita.MsgMeta
Meta returns the meta data associated with the message.
type RestartRspBuilder ¶ added in v1.8.0
type RestartRspBuilder struct {
// contains filtered or unexported fields
}
RestartRspBuilder can build RDMA drain responses
func (RestartRspBuilder) Build ¶ added in v1.8.0
func (b RestartRspBuilder) Build() *RestartRsp
Build creats a new RDMADrainRsp
func (RestartRspBuilder) WithDst ¶ added in v1.8.0
func (b RestartRspBuilder) WithDst(dst akita.Port) RestartRspBuilder
WithDst sets the destination of the request to build.
func (RestartRspBuilder) WithSendTime ¶ added in v1.8.0
func (b RestartRspBuilder) WithSendTime( t akita.VTimeInSec, ) RestartRspBuilder
WithSendTime sets the send time of the request to build
func (RestartRspBuilder) WithSrc ¶ added in v1.8.0
func (b RestartRspBuilder) WithSrc(src akita.Port) RestartRspBuilder
WithSrc sets the source of the request to build.