You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As Cuda 8 enables unified memory for Pascal GPU, combining CPU and GPU on the same address level, and enhancing the memory size available for GPU (with limited latency), using CPU RAM.
Is there a possibility to have larger than GPU ram NN+data (lower than CPU ram) for training in tensor flow ? (it would help reducing distributed computing/network latency) ?
ie, using the idea of Oversubscribe GPU memory for large dataset/models.
UVM is implemented through page-fault between CPU and GPU. It makes GPU program easier to be adopted, but not necessarily as fast as possible. Without more investigation, we are not sure this is suitable for high-performance machine learning. Note that the typical bandwidth across PCIE is often about two orders of magnitude slower than accessing the GPU dram itself.
If the model is indeed too large and cannot fit into GPU memory, it may make sense to load parts of the model in parallel, instead of relying the page faults in the kernels to page in the data.
Cuda 8 with Pascal has Nvlink which is 80Gb/sec, so Latency is very low between RAM.
It allows to create larger than GPU memory through single memory allocation,
At very low latency. Performance would be enhanced.
My understanding was that 80GB/s was between devices. The CPU/GPU communication through PCIE used by UVM is only a small fraction of that. And they are both much smaller than the 720GB/s when GPU accessing its own memory.
This is an active research area, and we might still find a good use of UVM down the road. But the current belief is that it is better to page in/out memory with CPU in parallel, while the compute engine on GPU accesses its own memory in full speed. A good example is the "swap_memory" option in "tf.while_loop", which swaps the temporary memory created in the loop to the host, when the device memory is under pressure.
UVM support throughout would be of enormous benefit. I would be very keen to see this implemented. Having ideal training throughput is often less important than coping with large input and large model sizes which simply fail to fit on a card.
Looks like another “we don’t need distributed transactions in Google so we choose to let users implement crappy/wrong versions of their own” for BigTable/MegaStore.
Activity
zheng-xq commentedon Aug 7, 2016
UVM is implemented through page-fault between CPU and GPU. It makes GPU program easier to be adopted, but not necessarily as fast as possible. Without more investigation, we are not sure this is suitable for high-performance machine learning. Note that the typical bandwidth across PCIE is often about two orders of magnitude slower than accessing the GPU dram itself.
If the model is indeed too large and cannot fit into GPU memory, it may make sense to load parts of the model in parallel, instead of relying the page faults in the kernels to page in the data.
arita37 commentedon Aug 9, 2016
Cuda 8 with Pascal has Nvlink which is 80Gb/sec, so Latency is very low between RAM.
It allows to create larger than GPU memory through single memory allocation,
At very low latency. Performance would be enhanced.
See the slides.
zheng-xq commentedon Aug 9, 2016
My understanding was that 80GB/s was between devices. The CPU/GPU communication through PCIE used by UVM is only a small fraction of that. And they are both much smaller than the 720GB/s when GPU accessing its own memory.
This is an active research area, and we might still find a good use of UVM down the road. But the current belief is that it is better to page in/out memory with CPU in parallel, while the compute engine on GPU accesses its own memory in full speed. A good example is the "swap_memory" option in "tf.while_loop", which swaps the temporary memory created in the loop to the host, when the device memory is under pressure.
yaroslavvb commentedon Oct 3, 2017
initial support added in cd4f5840
evolu8 commentedon Oct 19, 2017
UVM support throughout would be of enormous benefit. I would be very keen to see this implemented. Having ideal training throughput is often less important than coping with large input and large model sizes which simply fail to fit on a card.
byronyi commentedon Oct 19, 2017
Looks like another “we don’t need distributed transactions in Google so we choose to let users implement crappy/wrong versions of their own” for BigTable/MegaStore.
Now we have Spanner :)
ranshadmi commentedon Oct 21, 2017
+1 for "UVM support throughout"!
Orna123 commentedon Oct 22, 2017
+1 for "UVM support throughout"!
evolu8 commentedon Nov 10, 2017
Any movement on this?
Cheers
tarlovsky commentedon May 30, 2018
Hey guys, any progress? Highly interested!
smit-hinsu commentedon Jun 16, 2018
UVM support was added recently in b1139814.
den-run-ai commentedon Sep 19, 2019
Unified memory in Power9/V100 avoids page faults and page migrations with NVLINK 2.0 connection:
http://on-demand.gputechconf.com/gtc/2018/presentation/s8430-everything-you-need-to-know-about-unified-memory.pdf
donglinjy commentedon Nov 25, 2019
@smit-hinsu do you know how uvm can be used in Tensorflow 2.0?
smit-hinsu commentedon Nov 25, 2019
@donglinjy I don't think uvm configuration is exposed in TF 2.0. Please file a separate feature request for that.
cc @aaroey @jaingaurav