1. 19 Oct, 2022 2 commits
  2. 17 Oct, 2022 1 commit
    • Rhett Ying's avatar
      [Dist] Reduce peak memory in DistDGL (#4687) · b1309217
      Rhett Ying authored
      * [Dist] Reduce peak memory in DistDGL: avoid validation, release memory once loaded
      
      * remove orig_id from ndata/edata for partition_graph()
      
      * delete orig_id from ndata/edata in dist part pipeline
      
      * reduce dtype size and format before saving graphs
      
      * fix lint
      
      * ETYPE requires to be int32/64 for CSRSortByTag
      
      * fix test failure
      
      * refine
      b1309217
  3. 12 Oct, 2022 1 commit
  4. 11 Oct, 2022 1 commit
  5. 03 Oct, 2022 2 commits
    • kylasa's avatar
      ParMETIS wrapper script to enable ParMETIS to process chunked dataset format (#4605) · eae6ce2a
      kylasa authored
      * Creating ParMETIS wrapper script to run parmetis using one script from user perspective
      
      * Addressed all the CI comments from PR https://github.com/dmlc/dgl/pull/4529
      
      * Addressing CI comments.
      
      * Isort, and black changes.
      
      * Replaced python with python3
      
      * Replaced single quote with double quotes per suggestion.
      
      * Removed print statement
      
      * Addressing CI Commets.
      
      * Addressing CI review comments.
      
      * Addressing CI comments as per chime discussion with Rui
      
      * CI Comments, Black and isort changes
      
      * Align with code refactoring, black, isort and code review comments.
      
      * Addressing CI review comments, and fixing merge issues with the master branch
      
      * Updated with proper unit test skip decorator
      eae6ce2a
    • kylasa's avatar
      Edge Feature support for input graph datasets for dist. graph partitioning pipeline (#4623) · 1f471396
      kylasa authored
      * Added support for edge features.
      
      * Added comments and removing unnecessary print statements.
      
      * updated data_shuffle.py to remove compile error.
      
      * Repaled python3 with python to match CI test framework.
      
      * Removed unrelated files from the pull request.
      
      * Isort changes.
      
      * black changes on this file.
      
      * Addressing CI review comments.
      
      * Addressing CI comments.
      
      * Removed duplicated and resolved merge conflict code.
      
      * Addressing CI Comments from Rui.
      
      * Addressing CI comments, and fixing merge issues.
      
      * Addressing CI comments, code refactoring, isort and black
      1f471396
  6. 28 Sep, 2022 2 commits
  7. 23 Sep, 2022 1 commit
    • kylasa's avatar
      Garbage Collection and memory snapshot code for debugging partitioning... · ace76327
      kylasa authored
      
       Garbage Collection and memory snapshot code for debugging partitioning pipeline (target as master branch) (#4598)
      
      * Squashed commit of the following:
      
      commit e605a550b3783dd5f24eb39b6873a2e0e79be9c7
      Author: kylasa <kylasa@gmail.com>
      Date:   Thu Sep 15 14:45:39 2022 -0700
      
          Delete pyproject.toml
      
      commit f2db9e700d817212b67b5227f6472d218f0c74f2
      Author: kylasa <kylasa@gmail.com>
      Date:   Thu Sep 15 14:44:40 2022 -0700
      
          Changes suggested by isort program to sort imports.
      
      commit 5a6078beac6218a4f1fb378c169f04dda7396425
      Author: kylasa <kylasa@gmail.com>
      Date:   Thu Sep 15 14:39:50 2022 -0700
      
          addressing code review comments from the CI process.
      
      commit c8e92decb7aebeb32c7467108e16f058491443ab
      Author: kylasa <kylasa@gmail.com>
      Date:   Wed Sep 14 18:23:59 2022 -0700
      
          Corrected a typo in the import statement
      
      commit 14ddb0e9b553d5be3ed2c50d82dee671e84ad8c9
      Author: kylasa <kylasa@gmail.com>
      Date:   Tue Sep 13 18:47:34 2022 -0700
      
          Memory snapshot code for debugging memory footprint of the graph partitioning pipeline
      
      Squashed commit done
      
      * Addressing code review comments.
      
      * Update utils.py
      
      * dummy change to trigger CI tests
      Co-authored-by: default avatarRhett Ying <85214957+Rhett-Ying@users.noreply.github.com>
      ace76327
  8. 20 Sep, 2022 1 commit
  9. 15 Sep, 2022 1 commit
  10. 22 Aug, 2022 1 commit
  11. 21 Aug, 2022 1 commit
  12. 19 Aug, 2022 1 commit
  13. 17 Aug, 2022 1 commit
    • kylasa's avatar
      Distributed Lookup service implementation to retrieve node-level mappings (#4387) · f51b31b2
      kylasa authored
      * Distributed Lookup service which is for retrieving global_nids to shuffle-global-nids/partition-id mappings
      
      1. Implemented a class to provide distributed lookup service
      2. This class can be used to retrieve global-nids mappings
      
      * Code changes to address CI comments.
      
      1. Removed some unneeded type_casts to numpy.int64
      2. Added additional comments when iterating over the partition-ids list.
      3.Added docstring to the class and adjusted comments where it is relevant.
      
      * Updated code comments and variable names...
      
      1. Changed the variable names to appropriately represent the values stored in these variables.
      2. Updated the docstring correctly.
      
      * Corrected docstring as per the suggestion... and removed all the capital letters for Global nids and Shuffle Global nids...
      
      * Addressing CI review comments.
      f51b31b2
  14. 12 Aug, 2022 1 commit
  15. 11 Aug, 2022 3 commits
    • Minjie Wang's avatar
      [Dist] New distributed data preparation pipeline (#4386) · 71ce1749
      Minjie Wang authored
      * code changes for bug fixes identified during mag_lsc dataset (#4187)
      
      * code changes for bug fixes identified during mag_lsc dataset
      
      1. Changed from call torch.Tensor() to torch.from_numpy() to address memory corruption issues when creating large tensors. Tricky thing is this works correctly for small tensors.
      2. Changed dgl.graph() function call to include 'num_nodes" argument to specifically mention all the nodes in  a graph partition.
      
      * Update convert_partition.py
      
      Moving the changes to the function "create_metadata_json" function to the "multiple-file-format" support, where this change is more appropriate. Since multiple machine testing was done with these code changes.
      
      * Addressing review comments.
      
      Removed space as suggested at the end of the line
      
      * Revert "Revert "[Distributed Training Pipeline] Initial implementation of Distributed data processing step in the Dis… (#3926)" (#4037)"
      
      This reverts commit 7c598aac
      
      .
      
      * Added code to support multiple-file-support feature and removed singl… (#4188)
      
      * Added code to support multiple-file-support feature and removed single-file-support code
      
      1. Added code to read dataset in multiple-file-format
      2. Removed code for single-file format
      
      * added files missing in the previous commit
      
      This commit includes dataset_utils.py, which reads the dataset in multiple-file-format, gloo_wrapper function calls to support exchanging dictionaries as objects and helper functions in utils.py
      
      * Update convert_partition.py
      
      Updated function call "create_metadata_json" file to include partition_id so that each rank only creates its own metadata object and later on these are accumulated on rank-0 to create graph-level metadata json file.
      
      * addressing code review comments during the CI process
      
      code changes resulting from the code review comments received during the CI process.
      
      * Code reorganization
      
      Addressing CI comments and code reorganization for easier understanding.
      
      * Removed commented out line
      
      removed commented out line.
      
      * Support new format for multi-file support in distributed partitioning. (#4217)
      
      * Code changes for the following
      
      1. Generating node data at each process
      2. Reading csv files using pyarrow
      3. feature complete code.
      
      * Removed some typo's because of which unit tests were failing
      
      1. Change the file name to correct file name when loading edges from file
      2. When storing node-features after shuffling, use the correct key to store the global-nids of node features which are received after transmitted.
      
      * Code changes to address CI comments by reviewers
      
      1. Removed some redundant code and added text in the doc-strings to describe the functionality of some functions.
      2 function signatures and invocations now match w.r.t argument list
      3. Added detailed description of the metadata json structure so that the users understand the the type of information present in this file and how it is used through out the code.
      
      * Addressing code review comments
      
      1. Addressed all the CI comments and some of the changes include simplifying the code related to the concatenation of lists and enhancing the docstrings of functions which are changed in this process.
      
      * Update docstring's of two functions appropriately in response to code review comments
      
      Removed "todo" from the docstring of the gen_nodedata function.
      Added "todo" to the gen_dist_partitions function when node-id to partition-id's are read for the first time.
      
      Removed 'num-node-weights' from the docstring for the get_dataset function and added schema_map docstring to the argument list.
      
      * [Distributed] Change for the new input format for distributed partitioning (#4273)
      
      * Code changes to address the updated file format support for massively large graphs.
      
      1. Updated the docstring for the starting function 'gen_dist_partitions" to describe the newly proposed file format for input dataset.
      2. Code which was dependent on the structure of the old-metadata json object has been updated to read from the newly proposed metadata file.
      3. Fixed some errors when appropriate functions were invoked and the calling function expects return values from the invoked furnction.
      4. This modified code has been tested on "mag" dataset using 4-way partitions and verified the results
      
      * Code changes to address the CI review comments
      
      1. Improved docstrings for some functions.
      2. Added a new function in the utils.py to compute the id ranges and this is used in multiple places.
      
      * Added TODO to indicate the redundant data structure.
      
      Because of the new file format changes, one of the dictionaries (node_feature_tids, node_tids) will be redundant. Added TODO text so that this will be removed in the next iteration of code changes.
      
      * [Distributed] use alltoall fix to bypass gloo - alltoallv bug in distributed partitioning (#4311)
      
      * Alltoall Fix to bypass gloo - alltoallv bug which is preventing further testing
      
      1. Replaced alltoallv gloo wrapper call with alltoall message.
      2. All the messages are padded to be of same length
      3. Receiving side unpads the messages and continues processing.
      
      * Code changes to address CI comments
      
      1. Removed unused functions from gloo_wrapper.py
      2. Changed the function signature of alltoallv_cpu_data as suggested.
      3. Added docstring to include more description of the functionality inside alltoallv_cpu_data. Included more asserts to validate the assumptions.
      
      * Changed the function name appropriately
      
      Changed the function name from "alltoallv_cpu_data" to alltoallv_cpu which I believe is appropriate because underlying functionality is providing alltoallv which is basically alltoall_cpu + padding
      
      * Added code and text to address the review comments.
      
      1. Changed the function name to indicate the local use of this function.
      2. Changed docstring to indicate the assumptions made by alltoallv_cpu function.
      
      * Removed unused function from import statement
      
      Removed unused/removed function from import statement.
      
      * [Distributed] reduce memory consumption in distributed graph partitioning. (#4338)
      
      * Fix for node_subgraph function, which seems to generate segmentation fault for very large partitions
      
      1. Removed three graph dgl objects and we create the final dgl object directly by maintaining the following constraints
      a) nodes are reordered so that local nodes are placed in the beginning of the nodes list compared to non-local nodes.
      b)Edges order are maintained as passed into this function.
      c) src/dst end points are mapped to target values based on the reshuffle'd nodes order.
      
      * Code changes addressing CI comments for this PR
      
      1. Used Da's suggested map to map nodes from old to new order.
      This is much simpler and mem. efficient.
      
      * Addressing CI Comments.
      
      1. Reduced the amount of documentation to reflect the actual implementation.
      2. named the mapping object appropriately.
      
      * [Distributed] Graph chunking UX (#4365)
      
      * first commit
      
      * update
      
      * huh
      
      * fix
      
      * update
      
      * revert core
      
      * fix
      
      * update
      
      * rewrite
      
      * oops
      
      * address comments
      
      * add graph name
      
      * address comments
      
      * remove sample metadata file
      
      * address comments
      
      * fix
      
      * remove
      
      * add docs
      
      * Adding launch script and wrapper script to trigger distributed graph … (#4276)
      
      * Adding launch script and wrapper script to trigger distributed graph partitioning pipeline as defined in the UX document
      
      1. dispatch_data.py is a wrapper script which builds the command and triggers the distributed partitioning pipeline
      2. distgraphlaunch.py is the main python script which triggers the pipeline and to simplify its usage dispatch_data.py is included as a wrapper script around it.
      
      * Added code to auto-detect python version and retrieve some parameters from the input metadata json file
      
      1. Auto detect python version
      2. Read the metadata json file and extract some parameters to pass to the user defined command which is used to trigger the pipeline.
      
      * Updated the json file name to metadata.json file per UX documentation
      
      1. Renamed json file name per UX documentation.
      
      * address comments
      
      * fix
      
      * fix doc
      
      * use unbuffered logging to cure anxiety
      
      * cure more anxiety
      
      * Update tools/dispatch_data.py
      Co-authored-by: default avatarMinjie Wang <minjie.wang@nyu.edu>
      
      * oops
      Co-authored-by: default avatarQuan Gan <coin2028@hotmail.com>
      Co-authored-by: default avatarMinjie Wang <minjie.wang@nyu.edu>
      Co-authored-by: default avatarkylasa <kylasa@gmail.com>
      Co-authored-by: default avatarDa Zheng <zhengda1936@gmail.com>
      Co-authored-by: default avatarQuan (Andy) Gan <coin2028@hotmail.com>
      71ce1749
    • kylasa's avatar
      Adding launch script and wrapper script to trigger distributed graph … (#4276) · 8086d1ed
      kylasa authored
      
      
      * Adding launch script and wrapper script to trigger distributed graph partitioning pipeline as defined in the UX document
      
      1. dispatch_data.py is a wrapper script which builds the command and triggers the distributed partitioning pipeline
      2. distgraphlaunch.py is the main python script which triggers the pipeline and to simplify its usage dispatch_data.py is included as a wrapper script around it.
      
      * Added code to auto-detect python version and retrieve some parameters from the input metadata json file
      
      1. Auto detect python version
      2. Read the metadata json file and extract some parameters to pass to the user defined command which is used to trigger the pipeline.
      
      * Updated the json file name to metadata.json file per UX documentation
      
      1. Renamed json file name per UX documentation.
      
      * address comments
      
      * fix
      
      * fix doc
      
      * use unbuffered logging to cure anxiety
      
      * cure more anxiety
      
      * Update tools/dispatch_data.py
      Co-authored-by: default avatarMinjie Wang <minjie.wang@nyu.edu>
      
      * oops
      Co-authored-by: default avatarQuan Gan <coin2028@hotmail.com>
      Co-authored-by: default avatarMinjie Wang <minjie.wang@nyu.edu>
      8086d1ed
    • Quan (Andy) Gan's avatar
      [Distributed] Graph chunking UX (#4365) · 067cd744
      Quan (Andy) Gan authored
      * first commit
      
      * update
      
      * huh
      
      * fix
      
      * update
      
      * revert core
      
      * fix
      
      * update
      
      * rewrite
      
      * oops
      
      * address comments
      
      * add graph name
      
      * address comments
      
      * remove sample metadata file
      
      * address comments
      
      * fix
      
      * remove
      
      * add docs
      067cd744
  16. 07 Aug, 2022 1 commit
    • kylasa's avatar
      [Distributed] reduce memory consumption in distributed graph partitioning. (#4338) · 60bc0b76
      kylasa authored
      * Fix for node_subgraph function, which seems to generate segmentation fault for very large partitions
      
      1. Removed three graph dgl objects and we create the final dgl object directly by maintaining the following constraints
      a) nodes are reordered so that local nodes are placed in the beginning of the nodes list compared to non-local nodes.
      b)Edges order are maintained as passed into this function.
      c) src/dst end points are mapped to target values based on the reshuffle'd nodes order.
      
      * Code changes addressing CI comments for this PR
      
      1. Used Da's suggested map to map nodes from old to new order.
      This is much simpler and mem. efficient.
      
      * Addressing CI Comments.
      
      1. Reduced the amount of documentation to reflect the actual implementation.
      2. named the mapping object appropriately.
      60bc0b76
  17. 06 Aug, 2022 1 commit
    • kylasa's avatar
      [Distributed] use alltoall fix to bypass gloo - alltoallv bug in distributed partitioning (#4311) · c1e01b1d
      kylasa authored
      * Alltoall Fix to bypass gloo - alltoallv bug which is preventing further testing
      
      1. Replaced alltoallv gloo wrapper call with alltoall message.
      2. All the messages are padded to be of same length
      3. Receiving side unpads the messages and continues processing.
      
      * Code changes to address CI comments
      
      1. Removed unused functions from gloo_wrapper.py
      2. Changed the function signature of alltoallv_cpu_data as suggested.
      3. Added docstring to include more description of the functionality inside alltoallv_cpu_data. Included more asserts to validate the assumptions.
      
      * Changed the function name appropriately
      
      Changed the function name from "alltoallv_cpu_data" to alltoallv_cpu which I believe is appropriate because underlying functionality is providing alltoallv which is basically alltoall_cpu + padding
      
      * Added code and text to address the review comments.
      
      1. Changed the function name to indicate the local use of this function.
      2. Changed docstring to indicate the assumptions made by alltoallv_cpu function.
      
      * Removed unused function from import statement
      
      Removed unused/removed function from import statement.
      c1e01b1d
  18. 23 Jul, 2022 1 commit
    • kylasa's avatar
      [Distributed] Change for the new input format for distributed partitioning (#4273) · 7f8e1cf2
      kylasa authored
      * Code changes to address the updated file format support for massively large graphs.
      
      1. Updated the docstring for the starting function 'gen_dist_partitions" to describe the newly proposed file format for input dataset.
      2. Code which was dependent on the structure of the old-metadata json object has been updated to read from the newly proposed metadata file.
      3. Fixed some errors when appropriate functions were invoked and the calling function expects return values from the invoked furnction.
      4. This modified code has been tested on "mag" dataset using 4-way partitions and verified the results
      
      * Code changes to address the CI review comments
      
      1. Improved docstrings for some functions.
      2. Added a new function in the utils.py to compute the id ranges and this is used in multiple places.
      
      * Added TODO to indicate the redundant data structure.
      
      Because of the new file format changes, one of the dictionaries (node_feature_tids, node_tids) will be redundant. Added TODO text so that this will be removed in the next iteration of code changes.
      7f8e1cf2
  19. 13 Jul, 2022 1 commit
    • kylasa's avatar
      Support new format for multi-file support in distributed partitioning. (#4217) · dad3606a
      kylasa authored
      * Code changes for the following
      
      1. Generating node data at each process
      2. Reading csv files using pyarrow
      3. feature complete code.
      
      * Removed some typo's because of which unit tests were failing
      
      1. Change the file name to correct file name when loading edges from file
      2. When storing node-features after shuffling, use the correct key to store the global-nids of node features which are received after transmitted.
      
      * Code changes to address CI comments by reviewers
      
      1. Removed some redundant code and added text in the doc-strings to describe the functionality of some functions.
      2 function signatures and invocations now match w.r.t argument list
      3. Added detailed description of the metadata json structure so that the users understand the the type of information present in this file and how it is used through out the code.
      
      * Addressing code review comments
      
      1. Addressed all the CI comments and some of the changes include simplifying the code related to the concatenation of lists and enhancing the docstrings of functions which are changed in this process.
      
      * Update docstring's of two functions appropriately in response to code review comments
      
      Removed "todo" from the docstring of the gen_nodedata function.
      Added "todo" to the gen_dist_partitions function when node-id to partition-id's are read for the first time.
      
      Removed 'num-node-weights' from the docstring for the get_dataset function and added schema_map docstring to the argument list.
      dad3606a
  20. 05 Jul, 2022 2 commits
    • kylasa's avatar
      Added code to support multiple-file-support feature and removed singl… (#4188) · 9948ef4d
      kylasa authored
      * Added code to support multiple-file-support feature and removed single-file-support code
      
      1. Added code to read dataset in multiple-file-format
      2. Removed code for single-file format
      
      * added files missing in the previous commit
      
      This commit includes dataset_utils.py, which reads the dataset in multiple-file-format, gloo_wrapper function calls to support exchanging dictionaries as objects and helper functions in utils.py
      
      * Update convert_partition.py
      
      Updated function call "create_metadata_json" file to include partition_id so that each rank only creates its own metadata object and later on these are accumulated on rank-0 to create graph-level metadata json file.
      
      * addressing code review comments during the CI process
      
      code changes resulting from the code review comments received during the CI process.
      
      * Code reorganization
      
      Addressing CI comments and code reorganization for easier understanding.
      
      * Removed commented out line
      
      removed commented out line.
      9948ef4d
    • Da Zheng's avatar
      Revert "Revert "[Distributed Training Pipeline] Initial implementation of... · a324440f
      Da Zheng authored
      Revert "Revert "[Distributed Training Pipeline] Initial implementation of Distributed data processing step in the Dis… (#3926)" (#4037)"
      
      This reverts commit 7c598aac.
      a324440f
  21. 29 Jun, 2022 1 commit
    • kylasa's avatar
      code changes for bug fixes identified during mag_lsc dataset (#4187) · 3ccd973c
      kylasa authored
      * code changes for bug fixes identified during mag_lsc dataset
      
      1. Changed from call torch.Tensor() to torch.from_numpy() to address memory corruption issues when creating large tensors. Tricky thing is this works correctly for small tensors.
      2. Changed dgl.graph() function call to include 'num_nodes" argument to specifically mention all the nodes in  a graph partition.
      
      * Update convert_partition.py
      
      Moving the changes to the function "create_metadata_json" function to the "multiple-file-format" support, where this change is more appropriate. Since multiple machine testing was done with these code changes.
      
      * Addressing review comments.
      
      Removed space as suggested at the end of the line
      3ccd973c
  22. 14 Jun, 2022 1 commit
  23. 09 Jun, 2022 1 commit
  24. 23 May, 2022 1 commit
  25. 19 May, 2022 1 commit
    • kylasa's avatar
      [Distributed Training Pipeline] Initial implementation of Distributed data... · 4b87e47f
      kylasa authored
      
      [Distributed Training Pipeline] Initial implementation of Distributed data processing step in the Dis… (#3926)
      
      * Initial implementation of Distributed data processing step in the Distributed Training pipeline
      
      Implemented the following:
      1) Read the output of parmetis (node-id to partition-id mappings)
      2) Read the original graph files
      3) Shuffle the node/edge metadata and features
      4) output the partition specific files in DGL format using convert_partition.py functionality
      5) Graph meta data is serialized in json format on rank-0 machine.
      
      * Bug Fixes identified during verification of the dataset
      
      1. When sending out global-id lookups for non-local nodes, in the msg_alltoall.py, conditional filter was used to identify the indices in node_data which is incorrect. Replaced the conditional filter with intersect1d to find out the common node ids and appropriate indices which are later used to identify the needed information to communicate.
      
      2. When writing the graph level json file in distributed processing, the edge_offset on non-rank-0 machines was starting from 0 instead of the appropriate offset. Now added code to start the edge(s) from correct starting offset instead of 0 always.
      
      * Restructuring and consolidation of code
      
      1) Fixed issue when running verify_mag_dataset.py, Now we read xxx_removed_edges.txt and add these edges to `edge_data`. This will ensure that the self-loops and duplicate edges are handling appropriately when compared to the original dataset.
      
      2) Consolidated code into a fewer files and changed code to following the python naming convention.
      
      * Code changes addressing code review comments
      
      Following changes are made in this commit.
      1) Naming convention is defined and code is changed accordingly. Definition of various global_ids are defined and how to read them is mentioned.
      2) All the code review comments are addressed
      3)Files are moved to a new directory with dgl/tools directory as per suggestion
      4) README.md file is include and it contains detailed information about the Naming convention adopted by the code, high level overview of the algorithm used in data-shuffling, example command-line to use on a single machine.
      
      * addressing github review comments
      
      Made code changes addressing all the review comments from GitHub.
      
      * Addressing latest code review comments
      
      Addressed all the latest code reviewing comments. One of the major changes is treating the node and edge metadata as dictionary objects and removing all the python lists with numpy arrays.
      
      * Update README.md
      
      Text rendering corrections
      
      * Addressed code review comments
      
      Addressed code review comments for the latest code review
      Co-authored-by: default avatarxiang song(charlie.song) <classicxsong@gmail.com>
      4b87e47f
  26. 09 Feb, 2022 1 commit
  27. 08 Nov, 2021 1 commit
  28. 23 Sep, 2021 1 commit
  29. 14 Sep, 2021 1 commit
  30. 17 Aug, 2021 1 commit
  31. 02 Aug, 2021 2 commits
  32. 30 Jul, 2021 1 commit
  33. 02 Jul, 2021 1 commit