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. 09 Feb, 2022 1 commit
    • Xin Yao's avatar
      [Feature] CUDA UVA sampling for MultiLayerNeighborSampler (#3674) · 738e8318
      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
      
      * XPU_SWITCH for kDLCPUPinned
      
      * a rough version ready for testing
      
      * eliminate extra context parameter for pin/unpin
      
      * update train_sampling
      
      * fix linting
      
      * fix typo
      
      * multi-gpu uva sampling case
      
      * disable new format materialization for pinned graphs
      
      * update python doc for pin_memory_
      
      * fix unit test
      
      * UVA sampling for link prediction
      
      * dispatch most csr ops
      
      * update graphsage example to combine uva sampling and UnifiedTensor
      
      * update graphsage example to combine uva sampling and UnifiedTensor
      
      * update graphsage example to combine uva sampling and UnifiedTensor
      
      * update doc
      
      * update examples
      
      * change unitgraph and heterograph's PinMemory to in-place
      
      * update examples for multi-gpu uva sampling
      
      * update doc
      
      * fix linting
      
      * fix cpu build
      
      * fix is_pinned for DistGraph
      
      * fix is_pinned for DistGraph
      
      * update graphsage unsupervised example
      
      * update doc for gpu sampling
      
      * update some check for sampling device switching
      
      * fix linting
      
      * adapt for new dataloader
      
      * fix linting
      
      * fix
      
      * fix some name issue
      
      * adjust device check
      
      * add unit test for uva sampling & fix some zero_copy bug
      
      * fix linting
      
      * update num_threads in graphsage examples
      Co-authored-by: default avatarQuan (Andy) Gan <coin2028@hotmail.com>
      Co-authored-by: default avatarJinjing Zhou <VoVAllen@users.noreply.github.com>
      738e8318
  3. 30 Jan, 2022 1 commit
    • Quan (Andy) Gan's avatar
      [Sampling] New sampling pipeline plus asynchronous prefetching (#3665) · 701b4fcc
      Quan (Andy) Gan authored
      * initial update
      
      * more
      
      * more
      
      * multi-gpu example
      
      * cluster gcn, finalize homogeneous
      
      * more explanation
      
      * fix
      
      * bunch of fixes
      
      * fix
      
      * RGAT example and more fixes
      
      * shadow-gnn sampler and some changes in unit test
      
      * fix
      
      * wth
      
      * more fixes
      
      * remove shadow+node/edge dataloader tests for possible ux changes
      
      * lints
      
      * add legacy dataloading import just in case
      
      * fix
      
      * update pylint for f-strings
      
      * fix
      
      * lint
      
      * lint
      
      * lint again
      
      * cherry-picking commit fa9f494
      
      * oops
      
      * fix
      
      * add sample_neighbors in dist_graph
      
      * fix
      
      * lint
      
      * fix
      
      * fix
      
      * fix
      
      * fix tutorial
      
      * fix
      
      * fix
      
      * fix
      
      * fix warning
      
      * remove debug
      
      * add get_foo_storage apis
      
      * lint
      701b4fcc
  4. 17 Nov, 2021 1 commit
    • Rhett Ying's avatar
      [Feature] enable async transfer in NodeDataLoader for homograph (#3407) · e053df79
      Rhett Ying authored
      * [Feature] enable async transfer in NodeDataLoader for homograph
      
      * fix lint issues
      
      * fix device choose when creating stream
      
      * fix test on cpu only machine
      
      * fix pin_memory config
      
      * support homo only
      
      * avoid creating stream in each step and sync via event
      
      * fix lint
      
      * enable graph copy on non-default stream
      
      * fix lint
      
      * refine arg description
      
      * fix conflicts
      e053df79
  5. 16 Nov, 2021 1 commit
  6. 06 Aug, 2021 1 commit
  7. 28 Jul, 2021 1 commit
  8. 13 Jul, 2021 2 commits
  9. 25 Jun, 2021 1 commit
  10. 13 Jun, 2021 1 commit
  11. 09 Jun, 2021 1 commit
  12. 08 Jun, 2021 1 commit
  13. 17 May, 2021 1 commit
  14. 11 May, 2021 1 commit
  15. 07 May, 2021 1 commit
  16. 15 Apr, 2021 1 commit
    • nv-dlasalle's avatar
      [Performance][GPU] Enable GPU uniform edge sampling (#2716) · e70138bb
      nv-dlasalle authored
      
      
      * Start on uniform GPU sampling
      
      * Save more work
      
      * Get cu file compiling
      
      * Update sampling
      
      * More changes
      
      * Get GPU sampling for uniform probabilities solved
      
      * Fix batch tensor migration
      
      * Fix
      
      * update kernels
      
      * expand blocking
      
      * Undo testing change
      
      * Cut down on sampling overhead
      
      * Fix replacement
      
      * Update unit tests
      
      * Add option to gpu sample in graphsage
      
      * Copy only csc to gpu
      
      * Add ogbn support
      
      * Fix linting
      
      * Remove nvtx from sample
      
      * Improve documentation and error checking
      
      * Expand documentation
      
      * Update assert checking
      
      * delete extra space
      
      * Use standard dataloader when dataset is a dictionary
      
      * ogb -> ogbn
      
      * Fix edge selection determinism
      
      * Fix typos
      
      * Remove nvtx
      
      * Add comment for self.fanout_arrays and assert
      
      * Fix linting
      
      * Migrate to scalarbatcher
      
      * Fix indentation
      
      * Fix batcher
      
      * Fix indexing
      
      * Only use databatcher for GPU
      
      * Convert to DGL NDArray to PyTorch Tensor
      
      * Add optimization for PyTorch's F.tensor() for list of GPU tensors
      Co-authored-by: default avatarDa Zheng <zhengda1936@gmail.com>
      e70138bb
  17. 07 Apr, 2021 1 commit
  18. 25 Feb, 2021 1 commit
  19. 19 Feb, 2021 1 commit
  20. 07 Feb, 2021 1 commit
  21. 14 Jan, 2021 1 commit
  22. 11 Jan, 2021 1 commit
  23. 08 Jan, 2021 1 commit
  24. 07 Jan, 2021 1 commit
  25. 30 Nov, 2020 1 commit
  26. 20 Sep, 2020 1 commit
  27. 16 Sep, 2020 1 commit
  28. 03 Sep, 2020 1 commit
  29. 19 Aug, 2020 1 commit
  30. 17 Aug, 2020 1 commit
  31. 14 Aug, 2020 1 commit
  32. 13 Aug, 2020 1 commit
  33. 11 Aug, 2020 1 commit
    • Quan (Andy) Gan's avatar
      [Feature] Edge DataLoader for edge classification & link prediction (#1828) · f5eb80d2
      Quan (Andy) Gan authored
      * clean commit
      
      * oops forgot the most important files
      
      * use einsum
      
      * copy feature from frontier to block
      
      * Revert "copy feature from frontier to block"
      
      This reverts commit 5224ec963eb6a3ef1b6ab74d8ecbd44e4e42f285.
      
      * temp fix
      
      * unit test
      
      * fix
      
      * revert jtnn
      
      * lint
      
      * fix win64
      
      * docstring fixes and doc indexing
      
      * revert einsum in sparse bidecoder
      
      * fix some examples
      
      * lint
      
      * fix due to some tediousness in remove_edges
      
      * addresses comments
      
      * fix
      
      * more jtnn fixes
      
      * fix
      f5eb80d2