question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Understanding Multidevice Strategy

See original GitHub issue

I have been trying to figure out how to max out both of my gpu’s that are in my system.

Tue Oct 13 15:15:00 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.80.02    Driver Version: 450.80.02    CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  TITAN RTX           Off  | 00000000:01:00.0 Off |                  N/A |
| 41%   41C    P8    15W / 280W |    292MiB / 24220MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 1080    Off  | 00000000:02:00.0 Off |                  N/A |
| 21%   50C    P8     6W / 180W |      2MiB /  8119MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2061      G   /usr/lib/xorg/Xorg                191MiB |
|    0   N/A  N/A      2745      G   ...mviewer/tv_bin/TeamViewer       13MiB |
|    0   N/A  N/A      2949      G   /usr/bin/gnome-shell               83MiB |
+-----------------------------------------------------------------------------+

GPU 0 has the most memory,

I’m trying to understand the -multidevice_strategy, how many layers are their… its not very clear to me what would be the best for 2 gpus, one with more memory than the other… or at least a starting off point…

I have just tried the value of 20 and this was the result…

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
IridiumMastercommented, Feb 23, 2021

@IridiumMaster The -multidevice_strategy parameter tells the code where to slice / cut the model, and in your case 2 GPUs means you want to have the model cut into 2 pieces (one for each GPU). So, for two GPUs you should only specify one value for -multidevice_strategy.

Thanks kindly, that worked very well for me.

0reactions
RobertGoachercommented, Jun 7, 2021

@ProGamerGov Thank you so much for your reply; I really appreciate it.

I think I understand this now…but please correct me if I’m wrong.

So you need to use the multiple GPU strategy for high-resolution style transfers because individual GPUs don’t normally have enough memory to do the inference? If you have a GPU with lots of memory (for example a NVIDIA A100 GPU with 40GB of memory) you might be able to complete a render at a high resolution on that GPU without needing to use the multiple GPU strategy? But if you do need to use multiple GPUs you can split the processing (and therefore the memory usage) over multiple GPUs but there will be a decrease in speed and an increase in memory usage from using that strategy?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Should You Approach a Multi-Device Strategy? - YouTube
Tips & Tricks: Duetto's Marco Benvenuti discusses the opportunities new devices such as tablets and phone present with regards to pricing.
Read more >
How to build your multi-device strategy in 6 questions
Building a multi-device learning strategy entails understanding your learners and how they like to be engaged.
Read more >
How Consumers Take Multi-Device Path to Purchase - Contevo
The first all important step is to understand the multi-device path your consumers take. As an eCommerce business owner or marketing head, the...
Read more >
Multi-Device Strategy | Mobile SDK Development Guide
horizontal navigation in a tablet version vs single hand vertical scrolling for a phone version). Think of all these consideration and the associated...
Read more >
Multi-device and cross-device: how to analyse and measure ...
The starting point in a multi-device strategy is to ensure that your website is accessible to all devices (mobiles, tablets or desktop computers)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found