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

Improve cpu usage with CUDA. #116

Merged
merged 1 commit into from
Sep 28, 2016
Merged

Conversation

jcvernaleo
Copy link
Member

Switch to fork of mumax/3/cuda/cu that adds calls to the CUDA runtime
api. ccminer uses the runtime api and so by using that we can use the
same methods to get similar cpu performance.

This also removes the use of CUDA contexts complete.

There are still a few calls (for getting device count, version, etc)
that use the older driver api but you are allowed to mix and match and
those can be converted at a later date if desired.

Closes #86

Copy link

@jolan jolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds/runs on Linux/Windows and I can confirm the CPU usage is dramatically reduced with this.

Does introduce a build warning on Windows about __cdecl being re-defined but I don't see a clear path to fixing it after taking a brief look at it.

Switch to fork of mumax/3/cuda/cu that adds calls to the CUDA runtime
api.  ccminer uses the runtime api and so by using that we can use the
same methods to get similar cpu performance.

This also removes the use of CUDA contexts complete.

There are still a few calls (for getting device count, version, etc)
that use the older driver api but you are allowed to mix and match and
those can be converted at a later date if desired.

Closes decred#86
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