Noel Maersk
a0c52bf67c
config: introduce set_nfactor() and use it to call set_algorithm_nfactor().
...
Had two bugs:
1. Will not compile due to unknown algorithm_t size.
2. nfactor is set to 0 (bad calling, fix later).
So squashed two commits:
1. algorithm: move algorithm_t definition to header.
2. config: if --nfactor is specified, properly set algorithm->nfactor.
11 years ago
Noel Maersk
92b7770212
config: add `--algorithm` option and documentation.
...
Doc in `doc/configuration.md` (has to be started sometime, no?).
Configuration function has to be lamely-named set_algo(), because
set_algorithm() is already declared in algorithm.h (prevent namespace
conflict).
algorithm has to be added as global variable due to the way the
callback is done (by CCAN/opt, which in itself is nice).
This can be cleaned up significantly by (at least) introducing a
global configuration struct, but there is no reason to do it now
just for this - better a wholesale manana.
11 years ago
Noel Maersk
50a792f2cd
algorithm: initial set_algorithm() and set_algorithm_nfactor().
11 years ago
Noel Maersk
776eec2e11
algorithm: initial structure definition.
11 years ago
Noel Maersk
11cf733ede
misc: fix spaces after closing parenthesis.
...
sed -i 's/) $/)/' *.cl
11 years ago
Noel Maersk
e18bcc2582
kernel: use N-factor table instead of passing parameter N directly.
11 years ago
Noel Maersk
3afaaf1bfa
ocl: rename nfactor to N where appropriate.
...
N = 2^nfactor, so `nfactor` was a bad name choice here.
11 years ago
Noel Maersk
c4c85ca71c
misc: add FIXME for scrypt_test() and scanhash_scrypt().
11 years ago
Noel Maersk
2135777cac
scrypt: remove commented-out magic numbers.
11 years ago
Noel Maersk
4b3b2ef5a6
ocl: use 'nf' instead of 'n' in compiled kernel binary name.
...
It is used as a factor number here (e.g. 10, not 1024).
11 years ago
Noel Maersk
5b42d38f33
ocl/misc: spacing.
11 years ago
Noel Maersk
7217da3078
ocl: vectors are hard-set to 1, add appropriate "optimisation".
11 years ago
Noel Maersk
ab9fcb1a14
ocl: use same type convention for nfactor (`cl_uint` instead of `int`).
11 years ago
Noel Maersk
3640f1494f
Merge remote-tracking branch 'dadiv/zuikkis-nfactor' into nfactor
11 years ago
Noel Maersk
ee70f9f2af
misc: FAQ formatting.
11 years ago
Noel Maersk
ae23d25086
api: proper type casting for MSVS support.
...
Closes https://github.com/veox/sgminer/issues/113
11 years ago
Zuikkis
2b9a588e25
Update sgminer.c & scrypt.c
...
Default opt_nfactor was 11 instead of 10, my typo.. :) Sorry.
scrypt_1024_1_1_256_sp renamed to scrypt_n_1_1_256_sp
11 years ago
Teemu Suikki
73bb1504e9
Scrypt-nfactor support!
...
Added new configuration parameter "nfactor", which defaults to 10 (normal scrypt).
Use 11 for vertcoin.
Kernels modified accordingly.
11 years ago
Noel Maersk
44aed3570e
Merge branch 'build-msvs2010-upd' into build-msvs2010-merge
...
Test in separate branch before merging into master.
Conflicts (resolved):
api.c
util.c
11 years ago
Noel Maersk
a38f01c9a2
misc: explain gpu-threads comment FIXME.
11 years ago
Noel Maersk
323c84970e
Merge pull request #106 from sshimko/master
...
Fixup --help on intensities.
11 years ago
Spencer Shimko
45a16f1ac2
Fixup --help on intensities.
...
Current help contains conflict statements regarding intensity
priorities.
Per commit d11df698d141988491494aa1f29c7d3595e9712b:
- rawintensity overrides both xintensity and intensity
- xintensity overrides intensity
11 years ago
Noel Maersk
80e6307033
Merge branch 'port-ckolivas-3.12.3'
...
Could be issue 88 (no reconnect to pools on network connectivity going
down for a while and then back up) is a regression introduced in pool
handling after cgminer 3.7.2. Pull in other changes to pool handling
just in case.
Tests show that this may be an issue with glibc's getaddrinfo(), and that
the last changes in cgminer might mitigate the issue somewhat.
11 years ago
Noel Maersk
edc94b07ce
misc: update NEWS with what's been ported from ckolivas/cgminer.
11 years ago
Noel Maersk
fa21900837
Merge pull request #100 from gionn/patch-1
...
Fixed md formatting in MINING.md
11 years ago
Giovanni Toraldo
7ca09655a7
Fixed md formatting in MINING.md
11 years ago
Con Kolivas
a825524325
We shouldn't block on no work situations directly from the getwork scheduler itself.
11 years ago
Con Kolivas
b9b3abe264
Make the pthread cond wait in the getwork scheduler a timed wait in case we miss a wakeup.
11 years ago
Noel Maersk
ac3f6c5705
misc: add note about ports from ckolivas/cgminer.
11 years ago
Con Kolivas
7134cd7050
Add debug output when get_work() is blocked for an extended period and add grace time to the device's last valid work to prevent false positives for device failure.
11 years ago
Con Kolivas
26c4be818a
Show device info in noffset nonce share above target message.
11 years ago
Con Kolivas
aca8a58f2e
Only show one decimal place if pool diff is not an integer.
11 years ago
Con Kolivas
117c032b92
Slowly remove work even if it's not being used to keep the getwork counter incrementing even if work is not used and as a test that pools are still working.
11 years ago
Con Kolivas
5dad99caf6
Give device info with share above target message.
11 years ago
Con Kolivas
f8b9e41f28
Check for when errno is set on windows as well as the windows variant for errors.
11 years ago
Jim Jagielski
88c7720caf
These may not be longs (eg: OSX)... fo a safe cast to ensure.
11 years ago
Kano
a1844cdf44
API-README correct new text format documentation
11 years ago
Kano
ae837a762f
API allow multiple commands/replies in one request
11 years ago
Con Kolivas
b5abf68938
Always show the stratum share lag time in debug mode.
11 years ago
Con Kolivas
9c59fe2c31
Add stratum share response lag time to verbose output if it's greater than 1 second.
11 years ago
Con Kolivas
7731806417
Add stratum share submission lag time to verbose information if it's over 1 second.
11 years ago
Con Kolivas
f7394ff165
Check for more interrupted conditions in util.c and handle them gracefully.
11 years ago
Con Kolivas
90cc93c6cc
Add the ability to display a hexadecimal 32 bit unsigned integer to the API.
11 years ago
Con Kolivas
6b246a59f3
Handle interruptions to various select calls in util.c
11 years ago
Con Kolivas
95ac0c4356
Export the flush_queue function for use by drivers.
11 years ago
Con Kolivas
ab805ec146
Remove wrong goto
11 years ago
Con Kolivas
d5d34f2168
Remove the unqueued work reference when we discard work from get queued as well.
11 years ago
Con Kolivas
ee7fb11cfb
Wake the global work scheduler when we remove a work item from the unqueued work pointer.
11 years ago
Con Kolivas
2cea7ce439
Discard work that is stale in the get_queued() function, returning NULL instead.
11 years ago
ckolivas
8592226ad2
Add a get and queue helper work function.
11 years ago