mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-26 08:01:00 +00:00
cleaned up the mess
This commit is contained in:
@@ -18,9 +18,9 @@ struct mscclppBootstrapHandle {
|
||||
};
|
||||
static_assert(sizeof(struct mscclppBootstrapHandle) <= sizeof(mscclppUniqueId), "Bootstrap handle is too large to fit inside MSCCLPP unique ID");
|
||||
|
||||
mscclppResult_t bootstrapNetInit();
|
||||
mscclppResult_t bootstrapNetInit(char* ip_port_pair = NULL);
|
||||
mscclppResult_t bootstrapCreateRoot(struct mscclppBootstrapHandle* handle, bool idFromEnv);
|
||||
mscclppResult_t bootstrapGetUniqueId(struct mscclppBootstrapHandle* handle, bool isRoot = true);
|
||||
mscclppResult_t bootstrapGetUniqueId(struct mscclppBootstrapHandle* handle, bool isRoot = true, char* ip_port_pair = NULL);
|
||||
mscclppResult_t bootstrapInit(struct mscclppBootstrapHandle* handle, struct mscclppComm* comm);
|
||||
mscclppResult_t bootstrapAllGather(void* commState, void* allData, int size);
|
||||
mscclppResult_t bootstrapSend(void* commState, int peer, int tag, void* data, int size);
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#define MSCCLPP_VERSION (MSCCLPP_MAJOR * 100 + MSCCLPP_MINOR)
|
||||
|
||||
typedef struct mscclppComm* mscclppComm_t;
|
||||
|
||||
|
||||
#define MSCCLPP_UNIQUE_ID_BYTES 128
|
||||
typedef struct { char internal[MSCCLPP_UNIQUE_ID_BYTES]; } mscclppUniqueId;
|
||||
@@ -67,7 +69,11 @@ typedef enum { mscclppInt8 = 0, mscclppChar = 0,
|
||||
} mscclppDataType_t;
|
||||
|
||||
|
||||
mscclppResult_t mscclppCommInitRank(mscclppComm_t* comm, int nranks, int rank, char* ip_port_pair);
|
||||
|
||||
mscclppResult_t mscclppBootStrapAllGather(mscclppComm_t comm, void* data, int size);
|
||||
|
||||
//mscclppResult_t mscclppCommInitRank(mscclppComm_t* comm, int nranks, mscclppUniqueId commId, int rank);
|
||||
//mscclppResult_t mscclppCommDestroy(mscclppComm_t comm);
|
||||
mscclppResult_t mscclppCommDestroy(mscclppComm_t comm);
|
||||
|
||||
#endif // MSCCLPP_H_
|
||||
|
||||
Reference in New Issue
Block a user