Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set device_id at the beginning of Solver.Init() #521

Merged
merged 1 commit into from
Jun 20, 2014

Conversation

sguada
Copy link
Contributor

@sguada sguada commented Jun 19, 2014

Following up to #507. This change avoids using memory in default GPU by setting the device_id at the initialization of Solver

@sguada
Copy link
Contributor Author

sguada commented Jun 19, 2014

@longjon Could you take a look and let me know if you see any problems with this change?

@sguada
Copy link
Contributor Author

sguada commented Jun 19, 2014

This patch also solve the annoying problem of having duplicated entries in nvidia-smi info when running in another GPU

@sergeyk
Copy link
Contributor

sergeyk commented Jun 20, 2014

Looks good

sergeyk added a commit that referenced this pull request Jun 20, 2014
Set device_id at the beginning of Solver.Init()
@sergeyk sergeyk merged commit 430c9ba into BVLC:dev Jun 20, 2014
@sguada sguada deleted the set_device_id_at_init branch June 20, 2014 00:28
@longjon
Copy link
Contributor

longjon commented Jun 20, 2014

I'm late to the party, but I agree this looks correct, and it appears to be the last instance of this problem remaining.

mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
Set device_id at the beginning of Solver.Init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants