Benefits of transferring data to GPU before passing it to NeighborLoader
#7847
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey @liadgerstman! I haven't benchmarked this, but I guess there should be some speedup. AFAIK, this |
Beta Was this translation helpful? Give feedback.
-
Hey @akihironitta, I profiled reddit.py and it looks like the gpu is idle during NeighborLoader execution - only CPU is involved (nodes' features/labels are sent to the gpu before it starts). That is why I asked the questions: |
Beta Was this translation helpful? Give feedback.
Yes, and Yes from what I see from the profiler. You can also check it on your own by running my code snippet above.
Thanks for sharing your thoughts. Feel free to send a PR if you have any suggestions around the comment :)