-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sleep before ReadBuffer to resolve Nvidia's busywait issue
I did not observe any negative influence on performance with this patch. The CPU core usage is reduced to about 8% from 100%. I am getting consistent 38Sols/s on MSI Gaming X 1070 on one instance while testing. Sols/s on AMD cards (RX480) are not affected. The clFlush it required as AMD will only start working when there is blocking operation waiting which is delayed in this case. This is only suggestion and solution that works for me, it isn't perfect but it works for me. With this silentarmy is the best miner for Nvidia that I know. Don't feel obligated to accept this PR, you can use parts of it or it in whole to engineer a solution that you think is the best. I have tried to sched_yield trick, it seems to stopped working unfortunately.
- Loading branch information
Showing
1 changed file
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters