1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-01 18:55:36 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
Con Kolivas
b196d4fa0c Support more shares to be returned for scrypt mining. 2013-05-11 16:19:02 +10:00
Con Kolivas
86d5377e72 Use atomic ops to never miss a nonce on opencl kernels, including nonce==0, also allowing us to make the output buffer smaller. 2012-08-23 10:48:15 +10:00
Con Kolivas
1b5c676de7 Use 256 output slots for kernels to allow 1 for each worksize. 2012-07-21 11:00:36 +10:00
Con Kolivas
02e126f42d The worksize was unintentionally changed back to 4k by mistake, this caused a slowdown. 2011-08-23 10:28:30 +10:00
Con Kolivas
bd79a61c43 Move poclbm to new branch optimisation as well. 2011-08-19 17:20:49 +10:00
Con Kolivas
cf54f9b850 Move to 256 sized buffers and don't risk overwrite by using only 127 mask. 2011-08-17 16:07:15 +10:00
Con Kolivas
0f782ba6bd Update poclbm kernel to FF sized mask and only check that range. 2011-08-17 15:47:18 +10:00
Con Kolivas
eea05c05b8 Update kernel with a shorter output path, and use 4k output buffer to match OS page sizes. 2011-07-15 13:04:25 +10:00
Con Kolivas
cb13e2cfe5 Make it possible to build without opencl for cpu mining only. 2011-07-05 19:49:29 +10:00
Con Kolivas
2b6e841673 Use a buffer of up to 512 * 4 integers when retrieving work from the GPU.
This allows each local thread id to have one slot to put any positive results into, thus making overlapping results far less likely.
Thus races will be much rarer, allowing more threads.
It should also pick up blocks close to each other more reliably and hopefully decrease the number of rejects and opencl errors.
Do the search over the buffer entirely in a separate thread to allow the GPU to stay as busy as possible.
Detach threads from themselves to prevent unlucky even where dereferencing occurs by freeing the data that stores the thread info.
2011-07-04 19:47:46 +10:00
ckolivas
e1dd27c5c2 Ensure that we don't overflow due to 32 bit limitations. 2011-07-04 19:47:45 +10:00
Con Kolivas
a45c54aaf8 Make postcalc_hash asynchronous as well. 2011-07-04 19:47:45 +10:00
Con Kolivas
f117675ac2 Optimise work loop to make cl calls asynchronous where possible. 2011-07-04 19:47:19 +10:00
ckolivas
6b77d8500d Fixes. 2011-07-04 19:47:19 +10:00
Con Kolivas
dde7039726 Merge gpumining from oclmine. Unstable. 2011-07-04 19:46:39 +10:00