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

use nvml to fetch fan and temperature information #96

Merged
merged 1 commit into from
Sep 14, 2016
Merged

use nvml to fetch fan and temperature information #96

merged 1 commit into from
Sep 14, 2016

Conversation

jolan
Copy link

@jolan jolan commented Sep 14, 2016

Initial NVML support. It could go into the OpenCL path too but I don't think that makes sense. Plus I'd rather not make building messier than it already is until #83 happens.

Might want to add an nvml.Shutdown() after all the devices are released down the road but it doesn't seem to matter in practice.

Doesn't seem to affect performance either.

Closes #63.

@jcvernaleo
Copy link
Member

Is there a reason you added the nvml-go files rather than importing it (and adding to glide) from whereever the upstream is.

Other than that it seems to work with no issues or performance regressions for me.

@jolan
Copy link
Author

jolan commented Sep 14, 2016

I did it primarily since it makes it easier to adjust the default CGO_CFLAGS/CGO_LDFLAGS to something sensible which will be useful whenever Windows is building properly.

@jcvernaleo
Copy link
Member

Makes sense. Could you add the url for the upstream repo to the commit message in case we want to update it or switch to upstream at some point?

@jolan
Copy link
Author

jolan commented Sep 14, 2016

Done.

@jcvernaleo
Copy link
Member

OK (once travis is done).

@jolan jolan merged commit 7a61062 into decred:master Sep 14, 2016
@jolan jolan deleted the jolan_nvml branch September 14, 2016 17:43
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.

2 participants