# Anyone working with a data pipeline of CPU -\> GPU? I am developing a library of methods for faster transfer to GPU. In some cases, 370x faster than used Pytorch's Pinned CPU Tensors

**URL:** <https://discuss.pytorch.org/t/anyone-working-with-a-data-pipeline-of-cpu-gpu-i-am-developing-a-library-of-methods-for-faster-transfer-to-gpu-in-some-cases-370x-faster-than-used-pytorchs-pinned-cpu-tensors/55834>\
**Category:** hackathon\
**Created:** [September 12, 2019, 10:53pm UTC](https://discuss.pytorch.org/t/anyone-working-with-a-data-pipeline-of-cpu-gpu-i-am-developing-a-library-of-methods-for-faster-transfer-to-gpu-in-some-cases-370x-faster-than-used-pytorchs-pinned-cpu-tensors/55834 "2019-09-12T22:53:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![juanmed](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/j/5f8ce5/32.png) [@juanmed](https://discuss.pytorch.org/u/juanmed)\
**Post date:** [September 20, 2019, 3:35pm UTC](https://discuss.pytorch.org/t/anyone-working-with-a-data-pipeline-of-cpu-gpu-i-am-developing-a-library-of-methods-for-faster-transfer-to-gpu-in-some-cases-370x-faster-than-used-pytorchs-pinned-cpu-tensors/55834/2 "2019-09-20T15:35:38Z")

</div>

@Santosh-Gupta Hi, thanks for your work and proposal. Actually I am very interested on tools to speed up CPU-GPU-CPU data transfers. I have written the details of my application in [this post](https://discuss.pytorch.org/t/cpu-x10-faster-than-gpu-recommendations-for-gpu-implementation-speed-up/54980). There you will find details on what I tried and access to the code.

Basically, im trying to do real-time control @100hz on constrained devices (Jetson Nano) using pytorch for computation of the control laws on GPU. I am sure there are several bottlenecks but one of them is the CPU-GPU and GPU-CPU data transfers.

I am starting to rewrite the code to use torch JIT, but I am not quite sure about the speed up improvements. I will appreciate your support on trying out SpeedTorch (of which I read about on [your post](https://discuss.pytorch.org/t/introducing-speedtorch-4x-speed-cpu-gpu-transfer-110x-gpu-cpu-transfer/56147)) and hopefully get some nice performance increase.

---

_[View the full topic](https://discuss.pytorch.org/t/anyone-working-with-a-data-pipeline-of-cpu-gpu-i-am-developing-a-library-of-methods-for-faster-transfer-to-gpu-in-some-cases-370x-faster-than-used-pytorchs-pinned-cpu-tensors/55834)._
