multiple cuda tasks

Questions and Answers : Windows : multiple cuda tasks
Message board moderation

To post messages, you must log in.

AuthorMessage
JohnMD

Send message
Joined: 24 Jul 20
Posts: 8
Credit: 14,406,606
RAC: 1
Message 1056 - Posted: 25 Jan 2021, 3:43:39 UTC

Why can't I run multiple cuda tasks ?
A single task uses less than 1GB inbuilt, but a second task fails because of insufficient memory.
Please check - either the error or the message seems incorrect.
ID: 1056 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
alex

Send message
Joined: 4 Dec 20
Posts: 32
Credit: 47,319,359
RAC: 0
Message 1058 - Posted: 25 Jan 2021, 15:39:07 UTC - in response to Message 1056.  

In earlier requests Pianoman postet, that the tasks need up to 2 GB mamory. Not always, but from time to time.
I tried it on my GTX1060 / 3GB as well, 80% of the wu's fail.
My 2 pc' with gpu's 4GB or more work fine with 2 wu's.
ID: 1058 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
JohnMD

Send message
Joined: 24 Jul 20
Posts: 8
Credit: 14,406,606
RAC: 1
Message 1060 - Posted: 26 Jan 2021, 14:12:05 UTC - in response to Message 1058.  

@alex
Thanx for the info.
I tried looking for some relevant post, but didn't find that of Pianoman.
My cards have only 2GB, so maybe I'm lucky that none of my 'singletons' have crashed !
ID: 1060 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
alex

Send message
Joined: 4 Dec 20
Posts: 32
Credit: 47,319,359
RAC: 0
Message 1062 - Posted: 26 Jan 2021, 22:11:17 UTC - in response to Message 1060.  

You can find it in in the issue discussions, wu's fail with err. message out of memory

The reply was:
The error indicates the system ran out of GPU RAM.

Each WU takes on the order of 1.6GB-1.9GB of GPU memory when computing. And we developed the cuda app on a system with a 1650 with only 4GB of ram, so your 1060 6GB should have plenty of headroom with memory.
Are you were running anything else graphics intensive at the time? maybe a game? Or are you trying to run multiple WUs at the same time on a GPU? if so you could easily run out of GPU memory in total.

Hope that helps, and thanks for crunching!
ID: 1062 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
pianoman [MLC@Home Admin]
Project administrator
Project developer
Project tester
Project scientist

Send message
Joined: 30 Jun 20
Posts: 462
Credit: 21,406,548
RAC: 0
Message 1067 - Posted: 27 Jan 2021, 4:32:15 UTC

Sadly, 2GB is really pushing it. PyTorch is very aggressive with memory usage, and will preallocate and pin memory wherever it can. It;s also hard to get a real profile of the amount used since some tools include both GPU memory and system memory.

We could and should be better about pinning this down and minimizing this. Its just not high on my priority list unfortunately.
ID: 1067 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Questions and Answers : Windows : multiple cuda tasks

©2022 MLC@Home Team
A project of the Cognition, Robotics, and Learning (CORAL) Lab at the University of Maryland, Baltimore County (UMBC)