forked from dmlc/dgl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* python side send_and_recv shortcut * common util function for c apis * degree bucketing scheduler * scheduler c apis * cmake * python side logics * minor * fix multiple msg/red func cases * remove shell echo command in Jenkinsfile... * fuse apply for send_and_recv * fuse update func for update_all * typo... * handle anonymous * add degree bucketing for entire graph * degree bucketing executor * minor * style * rename graph_mapping to recv_nodes * fix some comments
- Loading branch information
1 parent
b2c1c4f
commit 750e503
Showing
11 changed files
with
421 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// DGL Scheduler interface | ||
#ifndef DGL_SCHEDULER_H_ | ||
#define DGL_SCHEDULER_H_ | ||
|
||
#include "runtime/ndarray.h" | ||
#include <vector> | ||
|
||
namespace dgl { | ||
|
||
typedef tvm::runtime::NDArray IdArray; | ||
|
||
namespace sched { | ||
|
||
/*! | ||
* \brief Generate degree bucketing schedule | ||
* \param vids The destination vertex for messages | ||
* \note If there are multiple messages going into the same destination vertex, then | ||
* there will be multiple copies of the destination vertex in vids | ||
* \return a vector of 5 IdArrays for degree bucketing. The 5 arrays are: | ||
* degrees: of degrees for each bucket | ||
* nids: destination node ids | ||
* nid_section: number of nodes in each bucket (used to split nids) | ||
* mids: message ids | ||
* mid_section: number of messages in each bucket (used to split mids) | ||
*/ | ||
std::vector<IdArray> DegreeBucketing(const IdArray& vids); | ||
|
||
} // namespace sched | ||
|
||
} // namespace dgl | ||
|
||
#endif // DGL_SCHEDULER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.