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

Enhancements to OpenCL work handling #2247

Merged

Conversation

guilhermelawless
Copy link
Contributor

@guilhermelawless guilhermelawless commented Aug 24, 2019

  • OpenCL work is now properly queued within work pool.
  • OpenCL work can now be cancelled properly, which is necessary for Watch blocks separately in work watcher #2228
  • Node does not wait for completion anymore when shutting down.
  • Work threads now help in work generation; one extra thread is added on startup to handle OpenCL. If using OpenCL, the best seems to be using at most hardware_concurrency - 1 work_threads.

Unrelated: clarifying in a comment that bandwidth_limit is in bytes/sec

OpenCL work is now properly queued along with CPU work.
Any work can now be cancelled properly and the node won't wait for completion when shutting down.
Work threads now help in work generation; one extra thread is added on startup to handle OpenCL (this thread is usually at 100% usage too). If using OpenCL the best is to have at most hardware_concurrency - 1 threads.
@guilhermelawless guilhermelawless added quality improvements This item indicates the need for or supplies changes that improve maintainability blocker Some future items cannot be completed until this is merged. labels Aug 24, 2019
@guilhermelawless guilhermelawless added this to the V20.0 milestone Aug 24, 2019
@guilhermelawless guilhermelawless self-assigned this Aug 24, 2019
@guilhermelawless guilhermelawless merged commit 94e021c into nanocurrency:master Aug 26, 2019
@guilhermelawless guilhermelawless deleted the opencl-work-queue branch August 26, 2019 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Some future items cannot be completed until this is merged. quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants