Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

sometimes GPU initialization is very slow #108

Open
mli opened this issue Apr 23, 2015 · 2 comments
Open

sometimes GPU initialization is very slow #108

mli opened this issue Apr 23, 2015 · 2 comments

Comments

@mli
Copy link
Member

mli commented Apr 23, 2015

hi guys,

probably it's due to my driver problem. i found sometimes it's extremely slow to get the message such as

"finish initialization with 2 devices"

for example, it takes >10 second to launch on GTX 970 with NVIDIA-SMI 343.19 and cuda 6.5. on another dual GTX 980 machine with NVIDIA-SMI 349.16, launching on the second GPU takes 5 second. but caffe seems has no problem on it.

but it works well on my other machines, such as single/dual/four k40 (gtx 980).

any idea?

best
mu

@antinucleon
Copy link
Contributor

I am not sure what happened behind. I met this situation too. I use Ctrl +
C if it is more than 5 second, after kill it, the next running will be much
faster.

On Thu, Apr 23, 2015 at 3:26 PM Mu Li [email protected] wrote:

hi guys,

probably it's due to my driver problem. i found sometimes it's extremely
slow to get the message such as

"finish initialization with 2 devices"

for example, it takes >10 second to launch on GTX 970 with NVIDIA-SMI
343.19 and cuda 6.5. on another dual GTX 980 machine with NVIDIA-SMI
349.16, launching on the second GPU takes 5 second. but caffe seems has no
problem on it.

but it works well on my other machines, such as single/dual/four k40 (gtx
980).

any idea?

best
mu


Reply to this email directly or view it on GitHub
#108.

@jonbakerfish
Copy link

jonbakerfish commented Apr 20, 2016

Have you encountered the slow starting of nvidia-smi problem? The reason for slow initialization might due to the driver persistence issue. NVIDIA's driver unloads a lot of stuff and releases state when the there is no client (X11 or an application). You can use # nvidia-smi -pm 1 to enable the persistent mode or use the persistence-daemon (preferred).

There might be some other reasons for slow starting:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants