1. 15 Sep, 2022 1 commit
    • Xin Yao's avatar
      [Feature] Import PyTorch's CUDA stream management (#4503) · 9a00cf19
      Xin Yao authored
      * add set_stream
      
      * add .record_stream for NDArray and HeteroGraph
      
      * refactor dgl stream Python APIs
      
      * test record_stream
      
      * add unit test for record stream
      
      * use pytorch's stream
      
      * fix lint
      
      * fix cpu build
      
      * address comments
      
      * address comments
      
      * add record stream tests for dgl.graph
      
      * record frames and update dataloder
      
      * add docstring
      
      * update frame
      
      * add backend check for record_stream
      
      * remove CUDAThreadEntry::stream
      
      * record stream for newly created formats
      
      * fix bug
      
      * fix cpp test
      
      * fix None c_void_p to c_handle
      9a00cf19
  2. 06 Sep, 2022 1 commit
    • Chang Liu's avatar
      [Feature] Unify the cuda stream used in core library (#4480) · 1c9d2a03
      Chang Liu authored
      
      
      * Use an internal cuda stream for CopyDataFromTo
      
      * small fix white space
      
      * Fix to compile
      
      * Make stream optional in copydata for compile
      
      * fix lint issue
      
      * Update cub functions to use internal stream
      
      * Lint check
      
      * Update CopyTo/CopyFrom/CopyFromTo to use internal stream
      
      * Address comments
      
      * Fix backward CUDA stream
      
      * Avoid overloading CopyFromTo()
      
      * Minor comment update
      
      * Overload copydatafromto in cuda device api
      Co-authored-by: default avatarxiny <xiny@nvidia.com>
      1c9d2a03
  3. 01 Aug, 2022 1 commit
  4. 26 Jul, 2022 1 commit
  5. 23 Jun, 2022 1 commit
    • Triston's avatar
      [Fix] Fix compiler warnings - part 1 (#4051) · 1ad65879
      Triston authored
      
      
      * Fix a cub compile error for CUDA 11.5
      
      * Fix comparison of integer expressions of different signedness in coo_sort.cu file
      
      * Fix comparison of integer expressions of different signedness in cuda_compact_graph.cu file
      
      * Remove never referenced variable in spmm.cu
      
      * Fix comparison of integer expressions of different signedness in rowwise_pick.h file
      
      * Fix comparison of integer expressions of different signedness in choice.cc file
      
      * Remove never referenced variable col_data in spat_op_impl_coo.cc
      
      * Remove never referenced variable allowed in global_uniform.cc
      
      * Fix comparison of integer expressions of different signedness in graph.cc
      
      * Fix comparison of integer expressions of different signedness in graph_apis.cc
      
      * Fix the un-used ctx variable in ndarray_partition.cc file for cpu only build
      
      * Fix comparison of integer expressions of different signedness in libra_partition.cc
      
      * Fix comparison of integer expressions of different signedness in graph_op.cc
      Co-authored-by: default avatarTriston Cao <tristonc@nvidia.com>
      Co-authored-by: default avatarQuan (Andy) Gan <coin2028@hotmail.com>
      1ad65879
  6. 11 Jun, 2022 1 commit
  7. 06 Jun, 2022 1 commit
  8. 16 May, 2022 1 commit
  9. 11 May, 2022 1 commit
  10. 27 Apr, 2022 1 commit
    • Rhett Ying's avatar
      [Feature] enable socket net_type for rpc (#3951) · 37be02a4
      Rhett Ying authored
      * [Feature] enable socket net_type for rpc
      
      * fix lint
      
      * fix lint
      
      * fix build issue on windows
      
      * fix test failure on windows
      
      * fix test failure
      
      * fix cpp unit test failure
      
      * net_type blocking max_try_times
      
      * fix other comments
      
      * fix lint
      
      * fix comment
      
      * fix lint
      
      * fix cpp
      37be02a4
  11. 12 Apr, 2022 1 commit
  12. 11 Apr, 2022 1 commit
  13. 09 Apr, 2022 1 commit
  14. 31 Mar, 2022 1 commit
  15. 27 Mar, 2022 1 commit
    • Cheng Wan's avatar
      [Feature] METIS Partition with Communication Volume Minimization (#3821) · fbbca994
      Cheng Wan authored
      * upd
      
      * upd
      
      * upd
      
      * upd
      
      * upd
      
      * fix OpenMP compatibility issues
      
      * typo
      
      * partition
      
      * misc
      
      * fix typo
      
      * num_parts=1
      
      * import torch
      
      * long
      
      * print info
      
      * print info
      
      * print info
      
      * upd
      
      * remove debug code
      
      * revert partition.py
      
      * fix cut count
      
      * fix cut count
      
      * Revert "fix cut count"
      
      This reverts commit 10926b4fd48f45c8f1ddb58be7db6c22e653effd.
      
      * Revert "fix cut count"
      
      This reverts commit 76465283bef093a2b4209ad70dd15d2437b2ec8a.
      
      * type of deprecate
      
      * typo in deprecate info
      
      * fix typo
      
      * use cv for partitioning
      
      * CE
      
      * no message
      
      * revert
      
      * typo
      
      * add objtype
      
      * no message
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * ?
      
      * semicolon
      
      * drop tensors
      
      * no message
      
      * backward
      
      * backward
      
      * max op
      
      * store X.shape
      
      * th
      
      * test
      
      * Revert "test"
      
      This reverts commit 92b3b2f64a3a1128590098fa03ce429c5466e6ce.
      
      * test
      
      * tolist
      
      * debug
      
      * to cuda
      
      * tuple
      
      * fix bug
      
      * remove X
      
      * no message
      
      * fix bug
      
      * workload balance
      
      * Revert "workload balance"
      
      This reverts commit d7f8e4a16ba2a7eabb4a9bb945523bfe6623e723.
      
      * reverse
      
      * Revert "reverse"
      
      This reverts commit 8a71cf25685aa7d889b9b8881b46f7a16b7d6e6d.
      
      * Revert "Revert "reverse""
      
      This reverts commit 196b143932d5cf9813576ece7c990b63d322d063.
      
      * Revert "Revert "Revert "reverse"""
      
      This reverts commit cf9e89a07013582056e7cde235e51331aca7fa9c.
      
      * no message
      
      * Merge commit '5498cf05'
      
      # Conflicts:
      #	python/dgl/distributed/partition.py
      
      * Revert "Merge commit '5498cf05
      
      '"
      
      This reverts commit f79be2ad777897c7025b28308454cad81ad6bb27.
      
      * fix bug
      
      * third party
      
      * no message
      
      * try to avoid memory leak
      
      * try to avoid memory leak
      
      * avoid memory leak with no hope
      
      * Revert "avoid memory leak with no hope"
      
      This reverts commit c77befe9479f46758e744642f66dd209b50eef7d.
      
      * no message
      
      * Revert "no message"
      
      This reverts commit 478cb28fe25fb1002b2f1dc202bb9bdaad8b2a56.
      
      * del
      
      * Revert "del"
      
      This reverts commit 1b468e45ce646b400ff3ffa61a0b2da058b3bdfd.
      
      * no message
      
      * no message
      
      * Revert "no message"
      
      This reverts commit 92e4f5561ed42da0606618b2fff9f1ad5ed439d9.
      
      * third party
      
      * document
      
      * Update metis_partition.cc
      
      * Update metis_partition_hetero.cc
      
      * Update metis_partition_hetero.cc
      
      * Update partition.py
      
      * Update partition.py
      
      * Update partition.py
      Co-authored-by: default avataryzh119 <expye@outlook.com>
      Co-authored-by: default avatarchwan-rice <54331508+chwan-rice@users.noreply.github.com>
      Co-authored-by: default avatarJinjing Zhou <VoVAllen@users.noreply.github.com>
      Co-authored-by: default avatarDa Zheng <zhengda1936@gmail.com>
      fbbca994
  16. 24 Mar, 2022 1 commit
  17. 01 Mar, 2022 1 commit
  18. 28 Feb, 2022 1 commit
  19. 27 Feb, 2022 1 commit
  20. 21 Feb, 2022 1 commit
    • Quan (Andy) Gan's avatar
      [Bugfix] Bug fixes in new dataloader (#3727) · 3f138eba
      Quan (Andy) Gan authored
      
      
      * fixes
      
      * fix
      
      * more fixes
      
      * update
      
      * oops
      
      * lint?
      
      * temporarily revert - will fix in another PR
      
      * more fixes
      
      * skipping mxnet test
      
      * address comments
      
      * fix DDP
      
      * fix edge dataloader exclusion problems
      
      * stupid bug
      
      * fix
      
      * use_uvm option
      
      * fix
      
      * fixes
      
      * fixes
      
      * fixes
      
      * fixes
      
      * add evaluation for cluster gcn and ddp
      
      * stupid bug again
      
      * fixes
      
      * move sanity checks to only support DGLGraphs
      
      * pytorch lightning compatibility fixes
      
      * remove
      
      * poke
      
      * more fixes
      
      * fix
      
      * fix
      
      * disable test
      
      * docstrings
      
      * why is it getting a memory leak?
      
      * fix
      
      * update
      
      * updates and temporarily disable forkingpickler
      
      * update
      
      * fix?
      
      * fix?
      
      * oops
      
      * oops
      
      * fix
      
      * lint
      
      * huh
      
      * uh
      
      * update
      
      * fix
      
      * made it memory efficient
      
      * refine exclude interface
      
      * fix tutorial
      
      * fix tutorial
      
      * fix graph duplication in CPU dataloader workers
      
      * lint
      
      * lint
      
      * Revert "lint"
      
      This reverts commit 805484dd553695111b5fb37f2125214a6b7276e9.
      
      * Revert "lint"
      
      This reverts commit 0bce411b2b415c2ab770343949404498436dc8b2.
      
      * Revert "fix graph duplication in CPU dataloader workers"
      
      This reverts commit 9e3a8cf34c175d3093c773f6bb023b155f2bd27f.
      Co-authored-by: default avatarxiny <xiny@nvidia.com>
      Co-authored-by: default avatarJinjing Zhou <VoVAllen@users.noreply.github.com>
      3f138eba
  21. 21 Jan, 2022 1 commit
    • Xin Yao's avatar
      [Feature] Pin dgl.graph to the page-locked memory (#3616) · 40b44a43
      Xin Yao authored
      
      
      * implement pin_memory/unpin_memory/is_pinned for dgl.graph
      
      * update python docstring
      
      * update c++ docstring
      
      * add test
      
      * fix the broken UnifiedTensor
      
      * eliminate extra context parameter for pin/unpin
      
      * fix linting
      
      * fix typo
      
      * disable new format materialization for pinned graphs
      
      * update python doc for pin_memory_
      
      * fix unit test
      
      * update doc
      
      * change unitgraph and heterograph's PinMemory to in-place
      
      * update comments for NDArray's PinMemory_ and PinData
      
      * update doc
      Co-authored-by: default avatarJinjing Zhou <VoVAllen@users.noreply.github.com>
      40b44a43
  22. 07 Jan, 2022 1 commit
    • Quan (Andy) Gan's avatar
      [Feature] Negative sampling (#3599) · 90f10b31
      Quan (Andy) Gan authored
      * first commit
      
      * a bunch of fixes
      
      * add unique
      
      * lint
      
      * lint
      
      * lint
      
      * address comments
      
      * Update negative_sampler.py
      
      * fix
      
      * description
      
      * address comments and fix
      
      * fix
      
      * replace unique with replace
      
      * test pylint
      
      * Update negative_sampler.py
      90f10b31
  23. 15 Dec, 2021 1 commit
    • lixiaobai's avatar
      [PinSAGESampler] support PinSAGE sampler on GPU (#3567) · dd762a1e
      lixiaobai authored
      
      
      * Feat: support API "randomwalk_topk" in library
      
      * Feat: use the new API "randomwalk_topk" for PinSAGESampler
      
      * Minor
      
      * Minor
      
      * Refactor: modified codes as checker required
      
      * Minor
      
      * Minor
      
      * Minor
      
      * Minor
      
      * Fix: checking errors in RandomWalkTopk
      
      * Refactor: modified the docstring for randomwalk_topk
      
      * change randomwalk_topk to internal
      
      * fix
      
      * rename
      
      * Minor for pinsage.py
      
      * Feat: support randomwalk and SelectPinSageNeighbors on GPU
      
      Port RandomWalk algorithm on GPU,
      and port SelectPinSageNeighbors on GPU.
      
      * Feat: support GPU on python APIs
      
      * Feat: remove perf print information in FrequenchHashmap
      
      * Fix: modified the code format
      
      Modified the code format as task_lint.sh suggested
      
      * Feat: let test script support PinSAGESampler on GPU
      
      Let test script support PinSAGESampler on GPU,
      minor of "restart_prob".
      
      * Minor
      
      * Minor
      
      * Minor
      
      * Refactor: use the atomic operations from the array module
      
      * Minor: change the long lines
      
      * Refactor: modified the get_node_types for gpu
      
      * Feat: update the contributor date
      
      * Perf: remove unnecessary stream sync
      
      * Feat: support other random walk
      
      But the non-uniform choice is still not supported.
      
      * Fix: add CUDA switch for random walk
      Co-authored-by: default avatarQuan Gan <coin2028@hotmail.com>
      dd762a1e
  24. 06 Dec, 2021 2 commits
    • Jinjing Zhou's avatar
      [RPC] Use tensorpipe for rpc communication (#3335) · a3ce780d
      Jinjing Zhou authored
      * doesn't know whether works
      
      * add change
      
      * fix
      
      * fix
      
      * fix
      
      * remove
      
      * revert
      
      * lint
      
      * lint
      
      * fix
      
      * revert
      
      * lint
      
      * fix
      
      * only build rpc on linux
      
      * lint
      
      * lint
      
      * fix build on windows
      
      * fix windows
      
      * remove old test
      
      * fix cmake
      
      * Revert "remove old test"
      
      This reverts commit f1ea75c777c34cdc1f08c0589676ba6aee1feb29.
      
      * fix windows
      
      * fix
      
      * fix
      
      * fix indent
      
      * fix indent
      
      * address comment
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * lint
      
      * fix indent
      
      * fix lint
      
      * add introduction
      
      * fix
      
      * lint
      
      * lint
      
      * add more logs
      
      * fix
      
      * update xbyak for C++14 with gcc5
      
      * Remove channels
      
      * fix
      
      * add test script
      
      * fix
      
      * remove unused file
      
      * fix lint
      
      * add timeout
      a3ce780d
    • Quan (Andy) Gan's avatar
      [Distributed] Edge-type-specific fanouts for heterogeneous graphs (#3558) · eb08ef38
      Quan (Andy) Gan authored
      * first commit
      
      * second commit
      
      * spaghetti unit tests
      
      * rewrite test
      eb08ef38
  25. 29 Nov, 2021 1 commit
    • lixiaobai's avatar
      [PinSAGE samper] Adjust the APIs for PinSAGESamper (#3529) · 44f0b5fe
      lixiaobai authored
      
      
      * Feat: support API "randomwalk_topk" in library
      
      * Feat: use the new API "randomwalk_topk" for PinSAGESampler
      
      * Minor
      
      * Minor
      
      * Refactor: modified codes as checker required
      
      * Minor
      
      * Minor
      
      * Minor
      
      * Minor
      
      * Fix: checking errors in RandomWalkTopk
      
      * Refactor: modified the docstring for randomwalk_topk
      
      * change randomwalk_topk to internal
      
      * fix
      
      * rename
      
      * Minor for pinsage.py
      Co-authored-by: default avatarQuan Gan <coin2028@hotmail.com>
      44f0b5fe
  26. 15 Nov, 2021 1 commit
  27. 10 Nov, 2021 1 commit
  28. 04 Nov, 2021 2 commits
  29. 21 Oct, 2021 1 commit
    • Xin Yao's avatar
      [Sampling] Implement dgl.compact_graphs() for the GPU (#3423) · a8c81018
      Xin Yao authored
      * gpu compact graph template
      
      * cuda compact graph draft
      
      * fix typo
      
      * compact graphs
      
      * pass unit test but fail in training
      
      * example using EdgeDataLoader on the GPU
      
      * refactor cuda_compact_graph and cuda_to_block
      
      * update training scripts
      
      * fix linting
      
      * fix linting
      
      * fix exclude_edges for the GPU
      
      * add --data-cpu & fix copyright
      a8c81018
  30. 12 Oct, 2021 1 commit
  31. 29 Sep, 2021 1 commit
  32. 28 Sep, 2021 1 commit
  33. 22 Sep, 2021 1 commit
  34. 21 Sep, 2021 1 commit
    • mszarma's avatar
      [Feature] Exclude edges in sample_neighbors (#2971) · bc14829f
      mszarma authored
      
      
      * [Feature] Exclude edges in sample_neighbors
      
      Extending sample_neighbors and sample_frontier
      API to support exclude_edges parameter.
      
      exclude_edges support tensor and dict data
      Feature enable excluding certain edges
      during neighborhood sampling
      Exclude_edges contains EID's of edges
      which will be excluded
      during neighbor picking for seed nodes.
      
      Added test case for heterograph and homograph
      RFC issue id: 2944
      
      * compatibility
      
      * fix
      
      * fix
      Co-authored-by: default avatarQuan Gan <coin2028@hotmail.com>
      bc14829f
  35. 16 Sep, 2021 1 commit
  36. 02 Sep, 2021 1 commit
  37. 01 Sep, 2021 2 commits