Documentation ¶
Index ¶
- Variables
- func Close()
- func ConfigureDispatcher(hostFilePath, configFilePath string, world *MPIWorld)
- func ConfigureWorker(world *MPIWorld)
- func GetHash(str string)
- func GetLocalIP() ([]string, error)
- func NewHostGroup(filePath string) (*hostGroup, error)
- func ParseConfig(ConfigFilePath string) (*config, error)
- func ReceiveBytes(size uint64, rank uint64) ([]byte, error)
- func SendBytes(buf []byte, rank uint64) error
- func SerializeWorld(world *MPIWorld) []byte
- func SetIPPool(filePath string, world *MPIWorld) (*hostGroup, error)
- type MPIWorld
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConfigureDispatcher ¶
func ConfigureWorker ¶
func ConfigureWorker(world *MPIWorld)
func GetLocalIP ¶
func NewHostGroup ¶
func ParseConfig ¶
ParseConfig parses the config JSON file
{ user: string keyfile: string verbose: bool }
func ReceiveBytes ¶
If Dispatcher calls this function, rank is required, it will receive from rank-th worker If Worker calls this function, rank is not required, it will receive from Dispatcher
func SerializeWorld ¶
Types ¶
type MPIWorld ¶
func DeserializeWorld ¶
func WorldInit ¶
WorldInit initializes the TCP connections between the main node and the worker nodes. It takes as input the HostFilePath which is a newline delimited sequence of IP addresses with the host IP first. The format for this file is as follows:
localhost:9998 localhost:9999
The second paramter allows for the specification of the config file which allows for the configuration of the worker nodes. An example of this configuration can be seen as follows:
{ user "my_username" keyfile "$HOME/.ssh/private_key_file verbose true }
Click to show internal directories.
Click to hide internal directories.