An network basic communication warpper. Will warp low level communication methods, e.g. mpi, socket and so on. This class will wrap all linkers to other machines if needs.
More...
#include <linkers.h>
|
| | Linkers (Config config) |
| | Constructor.
|
| |
|
| ~Linkers () |
| | Destructor.
|
| |
| void | Recv (int rank, char *data, int len) const |
| | Recv data, blocking.
|
| |
|
void | Recv (int rank, char *data, int64_t len) const |
| |
| void | Send (int rank, char *data, int len) const |
| | Send data, blocking.
|
| |
|
void | Send (int rank, char *data, int64_t len) const |
| |
| void | SendRecv (int send_rank, char *send_data, int send_len, int recv_rank, char *recv_data, int recv_len) |
| | Send and Recv at same time, blocking.
|
| |
|
void | SendRecv (int send_rank, char *send_data, int64_t send_len, int recv_rank, char *recv_data, int64_t recv_len) |
| |
|
int | rank () |
| | Get rank of local machine.
|
| |
|
int | num_machines () |
| | Get total number of machines.
|
| |
|
const BruckMap & | bruck_map () |
| | Get Bruck map of this network.
|
| |
|
const RecursiveHalvingMap & | recursive_halving_map () |
| | Get Recursive Halving map of this network.
|
| |
An network basic communication warpper. Will warp low level communication methods, e.g. mpi, socket and so on. This class will wrap all linkers to other machines if needs.
◆ Linkers()
| LightGBM::Linkers::Linkers |
( |
Config |
config | ) |
|
|
explicit |
Constructor.
- Parameters
-
| config | Config of network settings |
◆ Recv()
| void LightGBM::Linkers::Recv |
( |
int |
rank, |
|
|
char * |
data, |
|
|
int |
len |
|
) |
| const |
|
inline |
Recv data, blocking.
- Parameters
-
| rank | Which rank will send data to local machine |
| data | Pointer of receive data \prama len Recv size, will block until recive len size of data |
◆ Send()
| void LightGBM::Linkers::Send |
( |
int |
rank, |
|
|
char * |
data, |
|
|
int |
len |
|
) |
| const |
|
inline |
Send data, blocking.
- Parameters
-
| rank | Which rank local machine will send to |
| data | Pointer of send data \prama len Send size |
◆ SendRecv()
| void LightGBM::Linkers::SendRecv |
( |
int |
send_rank, |
|
|
char * |
send_data, |
|
|
int |
send_len, |
|
|
int |
recv_rank, |
|
|
char * |
recv_data, |
|
|
int |
recv_len |
|
) |
| |
|
inline |
Send and Recv at same time, blocking.
- Parameters
-
| send_rank | |
| send_data | \prama send_len |
| recv_rank | |
| recv_data | \prama recv_len |
The documentation for this class was generated from the following file:
- External/LightGBM_2.2.3/LightGBM-2.2.3/src/network/linkers.h