Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Hash Rate Error in ethash_opencl.go #77

Closed
dlehenky opened this issue Oct 27, 2015 · 1 comment
Closed

Hash Rate Error in ethash_opencl.go #77

dlehenky opened this issue Oct 27, 2015 · 1 comment

Comments

@dlehenky
Copy link

Based on the ethminer-cpp code, Line 506 is not quite right. Rather than (loops * 1000 * 256), it should be (loops * globalWorkSize). Note that globalWorkSize is the product of the --cl-global-work MULTIPLIER and --cl-local-work command line options to ethminer-cpp. The respective defaults are 4096 and 64, so the default value of m_globalWorkSize (in "ethminer") is 262144. The current GO code is close :) for the default values, but does not take into account that they are changeable at runtime (although I didn't look to see if that's the case in the GO implementation). For the cpp reference code see:
libethash-cl/ethash-cl-miner.cpp line 547 hook.searched(), which is defined in:
libethcore/EthashGPUMiner.cpp line 82 virtual bool searched()

HTH

-David

@fjl
Copy link
Contributor

fjl commented Jan 26, 2017

OpenCL support has been removed from the Go binding.

@fjl fjl closed this as completed Jan 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants