NEWS 68 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445
  1. Version 2.3.0 - February 23, 2012
  2. - Consider extra longpoll work items as staged_extra so as to make sure we queue
  3. more work if queueing regular work items as longpolls.
  4. - Use diablo kernel on all future SDKs for Tahiti and set preferred vector width
  5. to 1 on poclbm kernel only.
  6. - Explicitly type the constants in diakgcn kernel as uint, to be in line with
  7. poclbm kernel.
  8. - Reset all hash counters at the same time as resetting start times to get
  9. accurate hashrates on exiting which is mandatory for benchmarking.
  10. - Report thread out before it starts to avoid being flagged as sick when waiting
  11. for the first work item.
  12. - Don't disable and re-enable devices as they may recover and in the meantime
  13. have their status set to OFF.
  14. - API new commands enablepool and disablepool (version already incremented)
  15. - Tolerate new-format temperature readings for bitforce
  16. - Modify cgminer.c pool control to allow API to call it
  17. - Bugfix: Fix BitFORCE driver memory leak in debug logging
  18. - Extra byte was being unused in poclbm leading to failure on some platforms.
  19. - Explicitly type the constants in poclbm kernel as uint.
  20. - Don't save 'include' when saving the configuration
  21. - Allow configuration file to include another recursively
  22. - Use the SDK and hardware information to choose good performing default
  23. kernels.
  24. - Move phatk kernel to offset vector based nonce bases as well.
  25. - Add a --benchmark feature which works on a fake item indefinitely to compare
  26. device performance without any server or networking influence.
  27. - Allow writing of multiple worksizes to the configuration file.
  28. - Allow writing of multiple vector sizes to the configuration file.
  29. - Allow writing of multiple kernels to the configuration file.
  30. - Allow multiple different kernels to be chosen per device.
  31. - Allow the worksize to be set per-device.
  32. - Allow different vectors to be set per device.
  33. - If we're well below the target temperature, increase gpu engine speed back to
  34. maximum in case we have gotten lost between profiles during an idle period.
  35. - We should be setting the value of fan_optimal, not its address.
  36. - As all kernels will be new versions it's an opportunity to change the .bin
  37. format and make it simpler. Specifying bitalign is redundant and long can be l.
  38. - Use any() in kernel output code.
  39. - Put the nonce for each vector offset in advance, avoiding one extra addition
  40. in the kernel.
  41. - Reset times after all mining threads are started to make estimating hashrates
  42. easier at startup.
  43. - Bugfix: allow no-exec (NX) stack
  44. - Fix minor warning.
  45. - fix the bitforce.c code style follow 1TBS
  46. - fix icarus.c compile warning
  47. - small changes to speedup no vec for AMD 898.1 OCL runtime
  48. - Update licensing to GPL V3.
  49. - Reset the longpoll flag after it's been used once to prevent it restarting
  50. work again.
  51. - Begin import of DiabloMiner kernel.
  52. - Modify API debug messages to say API instead of DBG
  53. - When API shuts down cgminer don't kill itself
  54. - Don't make rolled work from the longpoll be seen as other longpoll work items.
  55. - API add 'privileged' command so can verify access level
  56. - Set the lp_sent variable under lock since there will almost always be a race
  57. on setting this variable, potentially leading to multiple LPs being sent out.
  58. - API restrict access to all non display commands by default
  59. - Update API version to 1.2 for new 'Log Interval'
  60. - API add --log Interval to 'config' reply
  61. - --api-allow special case 0/0 means all
  62. Version 2.2.7 - February 20, 2012
  63. - Send out extra longpolls when we have switched pools and the longpoll thread
  64. is still bound to the old one. This is particularly useful with p2pool where
  65. longpolls do not correlate with main bitcoin block change and would have led to
  66. high reject rates on failover.
  67. - Store whether a work item is the result of a longpoll or not in struct work
  68. and use it to help determine block changes directly from the work longpoll bool.
  69. - Keep track of when a longpoll has been sent for a pool and if the current pool
  70. is requesting work but has not sent a longpoll request, convert one of the work
  71. items to a longpoll.
  72. - Store the longpoll url in the pool struct and update it from the pool_active
  73. test in case it changes. This is to allow further changes to longpoll management
  74. on switching pools.
  75. - Re-check for a longpoll supporting pool every 30 seconds if none is found
  76. initially.
  77. - Report threads as busy waiting on getwork on startup to avoid them being
  78. flagged sick on startup during slow networking.
  79. - Allow devices that are disabled due to overheating to be flagged as recovering
  80. instead of disabling them and re-enable them if they're below ideal temperatures
  81. - Tahiti prefers worksize 64 with poclbm.
  82. - No need to expressly retain the opencl program now that the zero binary issue
  83. is fixed. This actually fixes cgminer to work with the latest SDK included with
  84. the ATI catalyst driver 12.2.
  85. - Show error code on any opencl failure status.
  86. - Add detection for version 898.1 SDK as well but only give SDK 2.6 warning once
  87. on startup instead of with each device initialisation.
  88. - Always use a fresh connection for longpoll as prolonged persistent connections
  89. can fail for many reasons.
  90. - Keep track of intended engine clock speed and only adjust up if it's higher
  91. than the last intended speed. This avoids setting the clock speed to one
  92. relative to a lower profile one by mistake.
  93. - Use gpu-memdiff on startup if an engine clockspeed is set and a memdiff value
  94. is set.
  95. - Revert "Adjust engine speed up according to performance level engine setting,
  96. not the current engine speed." - ineffectual.
  97. - Freeze the queues on all threads that are sent the pause message to prevent
  98. them trying to start up again with saved pings in their queues.
  99. - Updates to diakgcn kernel/
  100. - Consolidate all screen updates to the watchdog thread and touch both windows
  101. before refresh.
  102. - Curses will be disabled in clean_up so don't do it early in kill_work, and
  103. disable_adl so that GPU settings may be restored to normal in case shutting down
  104. curses leads to instability on windows.
  105. - Stop the mining threads before trying to kill them.
  106. - Plain refresh() does not give reliably screen updates so get rid of all uses
  107. of it.
  108. - First release with working diakgcn kernel.
  109. Version 2.2.6 - February 16, 2012
  110. - Provide warning on each startup about sdk 2.6
  111. - Fix unused warnings on win32.
  112. - bitforce: Simplify BFopen WIN32 ifdef/else
  113. - Fix initialization warning with jansson 1.3
  114. - bitforce: Cleanup extraneous TODO that isn't needed
  115. - Move tcsetattr (and new tcflush) into *nix BFopen to simplify things a bit
  116. - Add message explaining 2nd thread disabling for dynamic mode and how to tune
  117. it.
  118. - Move logwindow down once number of devices is known.
  119. - Automatically choose phatk kernel for bitalign non-gcn ATI cards, and then
  120. only select poclbm if SDK2.6 is detected.
  121. - Allow the refresh interval to be adjusted in dynamic intensity with a
  122. --gpu-dyninterval parameter.
  123. - Make curses display visible right from the beginning and fix the window sizes
  124. so the initial messages don't get lost once the status window is drawn.
  125. - The amount of work scanned can fluctuate when intensity changes and since we
  126. do this one cycle behind, we increment the work more than enough to prevent
  127. repeati
  128. - bitforce: Set a 30 second timeout for serial port on Windows, since the
  129. default is undefined
  130. - Use PreVal4addT1 instead of PreVal4 in poclbm kernel.
  131. - Import PreVal4 and PreVal0 into poclbm kernel.
  132. - Import more prepared constants into poclbm kernel.
  133. - Keep variables in one array but use Vals[] name for consistency with other
  134. kernel designs.
  135. - Replace constants that are mandatorily added in poclbm kernel with one value.
  136. - Remove addition of final constant before testing for result in poclbm kernel.
  137. - Hand optimise variable addition order.
  138. - Hand optimise first variable declaration order in poclbm kernel.
  139. - Radical reordering machine based first pass to change variables as late as
  140. possible, bringing their usage close together.
  141. - fix strcpy NULL pointer if env HOME unset.
  142. - bitforce: Disable automatic scanning when at least one device is specified
  143. manually
  144. - Unroll all poclbm additions to enable further optimisations.
  145. Version 2.2.5 - February 13, 2012
  146. - Make output buffer write only as per Diapolo's suggestion.
  147. - Constify nonce in poclbm.
  148. - Use local and group id on poclbm kernel as well.
  149. - Microoptimise phatk kernel on return code.
  150. - Adjust engine speed up according to performance level engine setting, not the
  151. current engine speed.
  152. - Try to load a binary if we've defaulted to the poclbm kernel on SDK2.6
  153. - Use the poclbm kernel on SDK2.6 with bitalign devices only if there is no
  154. binary available.
  155. - Further generic microoptimisations to poclbm kernel.
  156. - The longstanding generation of a zero sized binary appears to be due to the
  157. OpenCL library putting the binary in a RANDOM SLOT amongst 4 possible binary
  158. locations. Iterate over each of them after building from source till the real
  159. binary is found and use that.
  160. - Fix harmless warnings with -Wsign-compare to allow cgminer to build with -W.
  161. - Fix missing field initialisers warnings.
  162. - Put win32 equivalents of nanosleep and sleep into compat.h fixing sleep() for
  163. adl.c.
  164. - Restore compatibility with Jansson 1.3 and 2.0 (api.c required 2.1)
  165. - Modularized logging, support for priority based logging
  166. - Move CPU chipset specific optimization into device-cpu
  167. Version 2.2.4 - February 11, 2012
  168. - Fix double definition of A0 B0 to zeroA zeroB.
  169. - Retain cl program after successfully loading a binary image. May decrease
  170. failures to build kernels at startup.
  171. - Variable unused after this so remove setting it.
  172. - BFI INT patching is not necessarily true on binary loading of files and not
  173. true on ATI SDK2.6+. Report bitalign instead.
  174. - Various string fixes for reject reason.
  175. - Generalize --temp-cutoff and implement support for reading temperature from
  176. BitFORCE FPGAs
  177. - Change message from recovered to alive since it is used on startup as well as
  178. when a pool has recovered.
  179. - Start mining as soon as any pool is found active and rely on the watchpool
  180. thread to bring up other pools.
  181. - Delayed responses from testing pools that are down can hold up the watchdog
  182. thread from getting to its device testing code, leading to false detection of
  183. the GPU not checking in, and can substantially delay auto gpu/auto fan
  184. management leading to overheating. Move pool watching to its own thread.
  185. - Bugfix: BitFORCE index needs to be static to count correctly
  186. - Space out retrieval of extra work according to the number of mining threads.
  187. - Make shutdown more robust. Enable the input thread only after the other
  188. threads exist. Don't kill off the workio thread and use it to exit main() only
  189. if there is an unexpected problem. Use kill_work() for all anticipated shutdowns
  190. where possible. Remove unused thread entry.
  191. - Change poclbm version number.
  192. - One array is faster than 2 separate arrays so change to that in poclbm kernel.
  193. - Microoptimisations to poclbm kernel which increase throughput slightly.
  194. - Import diablominer kernel. Currently disabled as not working.
  195. - Import diapolo kernel. Currently disabled as not working.
  196. - Conflicting entries of cl_kernel may have been causing problems, and
  197. automatically chosen kernel type was not being passed on. Rename the enum to
  198. cl_kernels and store the chosen kernel in each clState.
  199. - Set cl_amd_media_ops with the BITALIGN flag and allow non-bitselect devices to
  200. build.
  201. - ALlow much longer filenames for kernels to load properly.
  202. - Allow different kernels to be used by different devices and fix the logic fail
  203. of overcorrecting on last commit with !strstr.
  204. - Fix kernel selection process and build error.
  205. - queue_phatk_kernel now uses CL_SET_VARG() for base-nonce(s), too
  206. - added OpenCL >= 1.1 detection code, in preparation of OpenCL 1.1 global offset
  207. parameter support
  208. - Use K array explicitly to make it clear what is being added.
  209. - Work items have a tendency to expire at exactly the same time and we don't
  210. queue extra items when there are plenty in the queue, regardless of age. Allow
  211. extra work items to be queued if adequate time has passed since we last
  212. requested work even if over the limit.
  213. - Discard work when failover-only is enabled and the work has come from a
  214. different pool.
  215. - Missing include to build on newer mingw32.
  216. - Move from the thread safe localtime_r to regular localtime which is the only
  217. one supported on newer pthread libraries on mingw32 to make it compile with the
  218. newer ming. Thread safety is of no importance where localtime is used in this
  219. code.
  220. - Define in_addr_t in windows if required
  221. - sys/wait.h not required in windows
  222. - Allow API to restrict access by IP address
  223. - Add pool switching to example miner.php
  224. - Display X-Reject-Reason, when provided
  225. - Remove the test for whether the device is on the highest profil level before
  226. raising the GPU speed as it is ineffectual and may prevent raising the GPU
  227. speed.
  228. - Remove unnecessary check for opt_debug one every invocation of applog at
  229. LOG_DEBUG level and place the check in applog().
  230. Version 2.2.3 - February 6, 2012
  231. - Revert "Rewrite the convoluted get_work() function to be much simpler and roll
  232. work as much as possible with each new work item." This seems to cause a race on
  233. work in free_work(). Presumably other threads are still accessing the structure.
  234. Version 2.2.2 - February 6, 2012
  235. - Provide support for the submitold extension on a per-pool basis based on the
  236. value being detected in a longpoll.
  237. - Don't send a ping to a dynamic device if it's not enabled as that will just
  238. enable it for one pass and then disable it again.
  239. - Rewrite the convoluted get_work() function to be much simpler and roll work as
  240. much as possible with each new work item.
  241. - Roll as much work as possible from the work returned from a longpoll.
  242. - Rolling work on each loop through the mining thread serves no purpose.
  243. - Allow to stage more than necessary work items if we're just rolling work.
  244. - Replace divide_work with reuse_work function used twice.
  245. - Give rolled work a new ID to make sure there is no confusion in the hashtable
  246. lookups.
  247. - Remove now-defunct hash_div variables.
  248. - Remove unused get_dondata function.
  249. - Silence ADL warnings.
  250. - Silence unused parameter warnings.
  251. - Stagger the restart of every next thread per device to keep devices busy ahead
  252. of accessory threads per device.
  253. - Deprecate the --donation feature. Needlessly complex, questionable usefulness,
  254. depends on author's server and a central pool of some kind, and was not heavily
  255. adopted.
  256. - It's devices that report back now, not threads, update message.
  257. - Continue auto-management of fan and engine speeds even if a device is disabled
  258. for safety reasons.
  259. - No need to check we're highest performance level when throttling GPU engine
  260. speed.
  261. - Abstract out tests for whether work has come from a block that has been seen
  262. before and whether a string is from a previously seen block.
  263. - Probe but don't set the timeout to 15 seconds as some networks take a long
  264. time to timeout.
  265. - Remove most compiler warnings from api.c
  266. - Add last share's pool info in cgpu_info
  267. - Allow the OpenCL platform ID to be chosen with --gpu-platform.
  268. - Iterate over all platforms displaying their information and number of devices
  269. when --ndevs is called.
  270. - Deprecate main.c
  271. - Some networks can take a long time to resolve so go back to 60 second timeouts
  272. instead of 15.
  273. - Only enable curses on failure if curses is desired.
  274. - Fix warnings in bitforce.c
  275. - Bugfix: Need to open BitForce tty for read-write
  276. - Fix various build issues.
  277. - Modularize code: main.c -> device-cpu + device-gpu
  278. - Fix phatk kernel not working on non-bitalign capable devices (Nvidia, older
  279. ATI).
  280. - Update poclbm kernel for better performance on GCN and new SDKs with bitalign
  281. support when not BFI INT patching. Update phatk kernel to work properly for non
  282. BFI INT patched kernels, providing support for phatk to run on GCN and non-ATI
  283. cards.
  284. - Return last accepted share pool/time for devices
  285. - Display accepted share pool/time for CPUs
  286. - Bug intensity always shows GPU 0
  287. - Update example web miner.php to use new API commands
  288. Version 2.2.1 - January 30, 2012
  289. NOTE - The GPU Device reordering in 2.2.0 by default was considered a bad idea
  290. so the original GPU ordering is used by default again unless reordering is
  291. explicitly requested.
  292. - Fix bitforce failing to build into cgminer.
  293. - Add missing options to write config function.
  294. - Add a --gpu-reorder option to only reorder devices according to PCI Bus ID
  295. when requested.
  296. - Fix for midstate support being broken on pools that supported no-midstate
  297. work by ensuring numbers are 32 bits in sha2.c
  298. - Set virtual GPUs to work when ADL is disabled or all mining will occur on GPU
  299. 0.
  300. - Add information about paused threads in the menu status.
  301. - Disable all but the first thread on GPUs in dynamic mode for better
  302. interactivity.
  303. - Set the latest network access time on share submission for --net-delay even if
  304. we're not delaying that submission for further network access.
  305. - Clear adl on exiting after probing values since it may attempt to overclock.
  306. - As share submission is usually staggered, and delays can be costly, submit
  307. shares without delay even when --net-delay is enabled.
  308. - Display GPU number and device name when ADL is successfully enabled on it.
  309. - Display GPU ordering remapping in verbose mode.
  310. - Don't fail in the case the number of ADL and OpenCL devices do not match, and
  311. do not attempt to reorder devices unless they match. Instead give a warning
  312. about
  313. - Display error codes should ADL not return ADL_OK in the more critical function
  314. calls.
  315. - Fix unused warning.
  316. - Fix compile warnings in api.c
  317. - Add extensive ADL based device info in debug mode.
  318. - Make --ndevs display verbose opencl information as well to make debugging
  319. version information easier.
  320. - Display information about the opencl platform with verbose enabled.
  321. - Explicitly check for nvidia in opencl platform strings as well.
  322. Version 2.2.0 - January 29, 2012
  323. NOTE: GPU Device order will change with this release with ATI GPUs as cgminer
  324. now can enumerate them according to their Bus ID which means the values should
  325. now correlate with their physical position on the motherboard.
  326. - Default to poclbm kernel on Tahiti (7970) since phatk does not work, even
  327. though performance is sub-standard so that at least it will mine successfully by
  328. defau
  329. - Retain cl program after every possible place we might build the program.
  330. - Update ADL SDK URL.
  331. - Fix potential overflow.
  332. - Map GPU devices to virtual devices in their true physical order based on
  333. BusNumber.
  334. - Change the warning that comes with failure to init cl on a device to be more
  335. generic and accurate.
  336. - Advertise longpoll support in X-Mining-Extensions
  337. - Detect dual GPU cards by iterating through all GPUs, finding ones without
  338. fanspeed and matching twins with fanspeed one bus ID apart.
  339. - Do not attempt to build the program that becomes the kernel twice. This could
  340. have been leading to failures on initialising cl.
  341. - Some opencl compilers have issues with no spaces after -D in the compiler
  342. options.
  343. - Allow intensity up to 14.
  344. - Use calloced stack memory for CompilerOptions to ensure sprintf writes to the
  345. beginning of the char.
  346. - Whitelist 79x0 cards to prefer no vectors as they perform better without.
  347. - Adjust fan speed gently while in the optimal range when temperature is
  348. drifting to minimise overshoot in either direction.
  349. - Detect dual GPU cards via the indirect information of - 1st card has a fan
  350. controller. 2nd card does not have a fan controller, cards share the same device
  351. name
  352. - Instead of using the BFI_INT patching hack on any device reporting
  353. cl_amd_media_ops, create a whitelist of devices that need it. This should enable
  354. GCN architec
  355. - Fixed API compiling issue on OS X
  356. - Add more explanation of JSON format and the 'save' command
  357. - Return an error if using ADL API commands when it's not available
  358. - Read off lpThermalControllerInfo from each ADL device.
  359. - Add ADL_Overdrive5_ThermalDevices_Enum interface.
  360. - Add API commands: config, switchpool, gpu settings, save
  361. - Implement socks4 proxy support.
  362. - Fix send() for JSON strings
  363. - Introduce a --net-delay option which guarantees at least 250ms between any
  364. networking requests to not overload slow routers.
  365. - Generalise locking init code.
  366. - Allow invalid values to be in the configuration file, just skipping over them
  367. provided the rest of the file is valid JSON. This will allow older configurat
  368. - Allow CPU mining explicitly enable only if other mining support is built in.
  369. - BitForce FPGA support
  370. - Configure out building and support of all CPU mining code unless
  371. --enable-cpumining is enabled.
  372. - Allow parsed values to be zero which will allow 0 values in the config file to
  373. work.
  374. - Advertise that we can make our own midstate, so the pool can skip generating
  375. it for us
  376. - Refactor the CPU scanhash_* functions to use a common API. Fixes bugs.
  377. - Don't consider a pool lagging if a request has only just been filed. This
  378. should decrease the false positives for "pool not providing work fast enough".
  379. - Invalidating work after longpoll made hash_pop return no work giving a false
  380. positive for dead pool. Rework hash_pop to retry while finds no staged work u
  381. - Remove TCP_NODELAY from curl options as many small packets may be contributing
  382. to network overload, when --net-delay is enabled.
  383. - Refactor miner_thread to be common code for any kind of device
  384. - Simplify submit_nonce loop and avoid potentially missing FOUND - 1 entry.
  385. Reported by Luke-Jr.
  386. - Micro-optimisation in sha256_sse2 code courtesy of Guido Ascioti
  387. guido.ascioti@gmail.com
  388. - Refactor to abstract device-specific code
  389. Version 2.1.2 - January 6, 2012
  390. - If api-description is specified, save it when writing the config file
  391. - Adjust utility width to be constant maximum as well.
  392. - Add percent signs to reject ratio outputs
  393. - Should the donation pool fail, don't make the fallover pool behave as though
  394. the primary pool is lagging.
  395. - Use an alternative pool should the donation getwork fail.
  396. Version 2.1.1 - January 1, 2012
  397. - Include API examples in distribution tarball.
  398. - Don't attempt to pthread_join when cancelling threads as they're already
  399. detached and doing so can lead to a segfault.
  400. - Give more generic message if slow pool at startup is the donation pool.
  401. - Continue to attempt restarting GPU threads if they're flagged dead at 1 min.
  402. intervals.
  403. - Don't attempt to restart sick flagged GPUs while they're still registering
  404. activity.
  405. - Make curl use fresh connections whenever there is any communication issue
  406. in case there are dead persistent connections preventing further comms from
  407. working.
  408. - Display pool in summary if only 1 pool.
  409. - Adjust column width of A/R/HW to be the maximum of any device and align them.
  410. Version 2.1.0 - December 27, 2011
  411. - Major infrastructure upgrade with RPC interface for controlling via sockets
  412. encoded with/without JSON courtesy of Andrew Smith. Added documentation for
  413. use of the API and sample code to use with it.
  414. - Updated linux-usb-cgminer document.
  415. - Rewrite of longpoll mechanism to choose the current pool wherever possible to
  416. use for the longpoll, or any pool that supports longpoll if the current one
  417. does not.
  418. - Display information about longpoll when the chosen server has changed.
  419. - Fix the bug where longpoll generated work may have been sent back to the
  420. wrong pool, causing rejects.
  421. - Fix a few race conditions on closing cgminer which caused some of the crashes
  422. on exit.
  423. - Only adjust gpu engine speed in autotune mode if the gpu is currently at the
  424. performance level of that being adjusted.
  425. - Various fixes for parsing/writing of configuration files.
  426. - Do not add blank lines for threads of unused CPUs.
  427. - Show which pool is unresponsive on startup.
  428. - Only show GPU management menu item if GPUs are in use.
  429. - Align most device columns in the curses display.
  430. Version 2.0.8 - November 11, 2011
  431. - Make longpoll do a mandatory flushing of all work even if the block hasn't
  432. changed, thus supporting longpoll initiated work change of any sort and merged
  433. mining.
  434. - Byteswap computed hash in hashtest so it can be correctly checked. This fixes
  435. the very rare possibility that a block solve on solo mining was missed.
  436. - Add x86_64 w64 mingw32 target
  437. - Allow a fixed speed difference between memory and GPU clock speed with
  438. --gpu-memdiff that will change memory speed when GPU speed is changed in
  439. autotune mode.
  440. - Don't load the default config if a config file is specified on the command
  441. line.
  442. - Don't build VIA on apple since -a auto bombs instead of gracefully ignoring
  443. VIA failing.
  444. - Build fix for dlopen/dlclose errors in glibc.
  445. Version 2.0.7 - October 17, 2011
  446. - Support work without midstate or hash1, which are deprecated in bitcoind 0.5+
  447. - Go to kernel build should we fail to clCreateProgramWithBinary instead of
  448. failing on that device. This should fix the windows problems with devices not
  449. initialising.
  450. - Support new configuration file format courtesy of Chris Savery which can write
  451. the config file from the menu and will load it on startup.
  452. - Write unix configuration to .cgminer/cgminer.conf by default and prompt to
  453. overwrite if given a filename from the menu that exists.
  454. Version 2.0.6 - October 9, 2011
  455. - Must initialise the donorpool mutex or it fails on windows.
  456. - Don't make donation work interfere with block change detection allowing
  457. donation to work regardless of the block chain we're mining on.
  458. - Expire shares as stale with a separate timeout from the scantime, defaulting
  459. to 120 seconds.
  460. - Retry pools after a delay of 15 seconds if none can be contacted on startup
  461. unless a key is pressed.
  462. - Don't try to build adl features without having adl.
  463. - Properly check shares against target difficulty - This will no longer show
  464. shares when solo mining at all unless they're considered to be a block solve.
  465. - Add altivec 4 way (cpu mining) support courtesy of Gilles Risch.
  466. - Try to use SSL if the server supports it.
  467. - Display the total solved blocks on exit (LOL if you're lucky).
  468. - Use ADL activity report to tell us if a sick GPU is still busy suggesting it
  469. is hard hung and do not attempt to restart it.
  470. Version 2.0.5 - September 27, 2011
  471. - Intensity can now be set to dynamic or static values per-device.
  472. - New donation feature --donation sends a proportion of shares to author's
  473. account of choice, but is disabled by default!
  474. - The hash being displayed and block detection has been fixed.
  475. - Devices not being mined on will not attempt to be ADL managed.
  476. - Intensity is now displayed per GPU device.
  477. - Make longpoll attempt to restart as often as opt_retries specifies.
  478. - We weren't rolling work as often as we could.
  479. - Correct some memory management issues.
  480. - Build fixes.
  481. - Don't mess with GPUs if we don't have them.
  482. Version 2.0.4 - September 23, 2011
  483. - Confused Longpoll messages should be finally fixed with cgminer knowing for
  484. sure who found the new block and possibly avoiding a rare crash.
  485. - Display now shows the actual hash and will say BLOCK! if a block is deemed
  486. solved.
  487. - Extra spaces, which would double space lines on small terminals, have been
  488. removed.
  489. - Fan speed change is now damped if it is already heading in the correct
  490. direction to minimise overshoot.
  491. - Building without opencl libraries is fixed.
  492. - GPUs are autoselected if there is only one when in the GPU management menu.
  493. - GPU menu is refreshed instead of returning to status after a GPU change.
  494. Version 2.0.3 - September 17, 2011
  495. - Various modes of failure to set fanspeeds and adl values have been addressed
  496. and auto-fan should work now on most hardware, and possibly other values
  497. which previously would not have worked.
  498. - Fixed a crash that can occur on switching pools due to longpoll thread races.
  499. - Use ATISTREAMSDKROOT if available at build time.
  500. - Fanspeed management is returned to the driver default on exit instead of
  501. whatever it was when cgminer was started.
  502. - Logging of events deemed WARNING or ERR now will display even during
  503. periods where menu input is being awaited on.
  504. Version 2.0.2 - September 11, 2011
  505. - Exit cleanly if we abort before various threads are set up or if they no
  506. longer exist.
  507. - Fix a rare crash in HASH_DEL due to using different mutexes to protect the
  508. data.
  509. - Flag devices that have never started and don't allow enabling of devices
  510. without restarting them.
  511. - Only force the adapter speed to high if we've flagged this device as being
  512. managed.
  513. - Flag any devices with autofan or autogpu as being managed.
  514. - Use a re-entrant value to store what fanspeed we're trying to set in case the
  515. card doesn't support small changes. Force it to a multiple of 10% if it
  516. fails on trying to speed up the fan.
  517. - Do not bother resetting values to old ones if changes to GPU parameters report
  518. failure, instead returning a failure code only if the return value from get()
  519. differs.
  520. - Remove redundant check.
  521. - Only display supported values from fanspeed on change settings.
  522. - Missing bracket from output.
  523. - Display fan percentage on devices that only support reporting percent and not
  524. RPM.
  525. - Properly substitute DLOPEN flags to build with ADL support when -ldl is needed
  526. and not when opencl is not found.
  527. Version 2.0.1 - September 9, 2011
  528. - Fix building on 32bit glibc with dlopen with -lpthread and -ldl
  529. - ByteReverse is not used and the bswap opcode breaks big endian builds. Remove
  530. it.
  531. - Ignore whether the display is active or not since only display enabled devices
  532. work this way, and we skip over repeat entries anwyay.
  533. - Only reset values on exiting if we've ever modified them.
  534. - Flag adl as active if any card is successfully activated.
  535. - Add a thermal cutoff option as well and set it to 95 degrees by default.
  536. - Change the fan speed by only 5% if it's over the target temperature but less
  537. than the hysteresis value to minimise overshoot down in temperature.
  538. - Add a --no-adl option to disable ADL monitoring and GPU settings.
  539. - Only show longpoll received delayed message at verbose level.
  540. - Allow temperatures greater than 100 degrees.
  541. - We should be passing a float for the remainder of the vddc values.
  542. - Implement accepting a range of engine speeds as well to allow a lower limit to
  543. be specified on the command line.
  544. - Allow per-device fan ranges to be set and use them in auto-fan mode.
  545. - Display which GPU has overheated in warning message.
  546. - Allow temperature targets to be set on a per-card basis on the command line.
  547. - Display fan range in autofan status.
  548. - Setting the hysteresis is unlikely to be useful on the fly and doesn't belong
  549. in the per-gpu submenu.
  550. - With many cards, the GPU summaries can be quite long so use a terse output
  551. line when showing them all.
  552. - Use a terser device status line to show fan RPM as well when available.
  553. - Define max gpudevices in one macro.
  554. - Allow adapterid 0 cards to enumerate as a device as they will be non-AMD
  555. cards, and enable ADL on any AMD card.
  556. - Do away with the increasingly confusing and irrelevant total queued and
  557. efficiency measures per device.
  558. - Only display values in the log if they're supported and standardise device log
  559. line printing.
  560. Version 2.0.0 - September 6, 2011
  561. Major feature upgrade - GPU monitoring, (over)clocking and fan control for ATI
  562. GPUs.
  563. New command line switches:
  564. --auto-fan- Automatically adjust all GPU fan speeds to maintain a target
  565. temperature
  566. --auto-gpu- Automatically adjust all GPU engine clock speeds to maintain
  567. a target temperature
  568. --gpu-engine <arg> Set the GPU engine (over)clock in Mhz - one value for all or
  569. separate by commas for per card.
  570. --gpu-fan <arg> Set the GPU fan percentage - one value for all or separate
  571. by commas for per card.
  572. --gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all
  573. or separate by commas for per card.
  574. --gpu-powertune <arg> Set the GPU powertune percentage - one value for all or
  575. separate by commas for per card.
  576. --gpu-vddc <arg> Set the GPU voltage in Volts - one value for all or separate
  577. by commas for per card.
  578. --temp-hysteresis <arg> Set how much the temperature can fluctuate outside
  579. limits when automanaging speeds (default: 3)
  580. --temp-overheat <arg> Set the overheat temperature when automatically managing
  581. fan and GPU speeds (default: 85)
  582. --temp-target <arg> Set the target temperature when automatically managing fan
  583. and GPU speeds (default: 75)
  584. - Implement ATI ADL support for GPU parameter monitoring now and setting later
  585. (temp, fan, clocks etc.).
  586. - Check for the presence of the ADL header files in ADL_SDK.
  587. - Import adl_functions.h from amd overdrive ctrl.
  588. - Implement a setup function that tries to detect GPUs that support the ADL and
  589. link in the parameters into the gpus struct.
  590. - Put a summary of monitoring information from the GPU menu.
  591. - Implement changing memory speed and voltage on the fly.
  592. - Implement fan speed setting.
  593. - Minor corrections to set fan speed by percentage.
  594. - Make sure to read off the value in RPM only.
  595. - Implement auto fanspeed adjustment to maintain a target temperature and
  596. fanspeed below 85%, with an overheat check that will speed the fan up to 100%.
  597. - Add an --auto-fan command line option to allow all GPUs to have autofan
  598. enabled from startup.
  599. - Add a gpu autotune option which adjusts GPU speed to maintain a target
  600. temperature within the bounds of the default GPU speed and any overclocking set.
  601. - Avoid a dereference if the longpoll thread doesn't exist.
  602. - Clean up by setting performance profiles and fan settings to startup levels on
  603. exit.
  604. - Add a small amount of hysteresis before lowering clock speed.
  605. - Allow target, overheat and hysteresis temperatures to be set from command
  606. line.
  607. - Combine all stats collating into one function to avoid repeating function
  608. calls on each variable.
  609. - Add gpu statistics to debugging output via the watchdog thread.
  610. - Implement menus to change temperature limits.
  611. - Implement setting the GPU engine clock speed of all devices or each device as
  612. a comma separated value.
  613. - Implement setting the GPU memory clock speed of all devices or each device as
  614. a comma separated value.
  615. - Implement setting the GPU voltage of all devices or each device as a comma
  616. separated value.
  617. - Implement setting the GPU fan speed of all devices or each device as a comma
  618. separated value.
  619. - Add support for monitoring powertune setting.
  620. - Implement changing of powertune value from the GPU change settings menu.
  621. - Get the value of powertune in get_stats.
  622. - Implement setting the GPU powertune value of all devices or each device as a
  623. comma separated value.
  624. - Remove the safety checks in speed setting since confirmation is done first in
  625. the menu, then show the new current values after a short pause.
  626. - Force the speed to high on startup and restore it to whatever the setting was
  627. on exit.
  628. - Add temperature to standard output where possible and use more compact output.
  629. - Move and print at the same time in curses to avoid random trampling display
  630. errors.
  631. - Update the status window only from the watchdog thread, do not rewrite the top
  632. status messages and only refresh once all the status window is complete,
  633. clearing the window each time to avoid corruption.
  634. - Set a safe starting fan speed if we're automanaging the speeds.
  635. - Provide locking around all adl calls to prevent races.
  636. - Lower profile settings cannot be higher than higher profile ones so link any
  637. drops in settings.
  638. - Add new needed text files to distribution.
  639. - Queue requests ignoring the number of staged clones since they get discarded
  640. very easily leading to false positives for pool not providing work fast enough.
  641. - Include libgen.h in opt.c to fix win32 compilation warnings.
  642. - Fix compilation warning on win32.
  643. - Add the directory name from the arguments cgminer was called from as well to
  644. allow it running from a relative pathname.
  645. - Add a --disable-adl option to configure and only enable it if opencl support
  646. exists.
  647. - Retry before returning a failure to get upstream work as a failure to avoid
  648. false positives for pool dead.
  649. - Retry also if the decoding of work fails.
  650. - Use the presence of X-Roll-Ntime in the header as a bool for exists unless N
  651. is found in the response.
  652. Version 1.6.2 - September 2, 2011
  653. - Add --failover-only option to not leak work to backup pools when the primary
  654. pool is lagging.
  655. - Change recommendation to intensity 9 for dedicated miners.
  656. - Fix the bouncing short term value by allowing it to change dynamically when
  657. the latest value is very different from the rolling value, but damp the change
  658. when it gets close.
  659. - Use the curses_lock to protect the curses_active variable and test it under
  660. lock.
  661. - Go back to requesting work 2/3 of the way through the current scantime with
  662. CPU mining as reports of mining threads running out of work have occurred with
  663. only 5 seconds to retrieve work.
  664. - Add start and stop time scheduling for regular time of day running or once off
  665. start/stop options.
  666. - Print summary on quit modes.
  667. - Put some sanity checks on the times that can be input.
  668. - Give a verbose message when no active pools are found and pause before
  669. exiting.
  670. - Add verbose message when a GPU fails to initialise, and disable the correct
  671. GPU.
  672. - Cryptopp asm32 was not correctly updated to the incremental nonce code so the
  673. hash counter was bogus.
  674. - Get rid of poorly executed curl check.
  675. - If curl does not have sockopts, do not try to compile the
  676. json_rpc_call_sockopt_cb function, making it possible to build against older
  677. curl libraries.
  678. - Most people expect /usr/local when an unspecified prefix is used so change to
  679. that.
  680. - Rename localgen occasions to getwork fail occasions since localgen is
  681. unrelated now.
  682. Version 1.6.1 - August 29, 2011
  683. - Copy cgminer path, not cat it.
  684. - Switching between redrawing windows does not fix the crash with old
  685. libncurses, so redraw both windows, but only when the window size hasn't
  686. changed.
  687. - Reinstate minimum 1 extra in queue to make it extremely unlikely to ever have
  688. 0 staged work items and any idle time.
  689. - Return -1 if no input is detected from the menu to prevent it being
  690. interpreted as a 0.
  691. - Make pthread, libcurl and libcurses library checks mandatory or fail.
  692. - Add a --disable-opencl configure option to make it possible to override
  693. detection of opencl and build without GPU mining support.
  694. - Confusion over the variable name for number of devices was passing a bogus
  695. value which likely was causing the zero sized binary issue.
  696. - cgminer no longer supports default url user and pass so remove them.
  697. - Don't show value of intensity since it's dynamic by default.
  698. - Add options to explicitly enable CPU mining or disable GPU mining.
  699. - Convert the opt queue into a minimum number of work items to have queued
  700. instead of an extra number to decrease risk of getting idle devices without
  701. increasing risk of higher rejects.
  702. - Statify tv_sort.
  703. - Check for SSE2 before trying to build 32 bit SSE2 assembly version. Prevents
  704. build failure when yasm is installed but -msse2 is not specified.
  705. - Add some defines to configure.ac to enable exporting of values and packaging,
  706. and clean up output.
  707. - Give convenient summary at end of ./configure.
  708. - Display version information and add --version command line option, and make
  709. sure we flush stdout.
  710. - Enable curses after the mining threads are set up so that failure messages
  711. won't be lost in the curses interface.
  712. - Disable curses after inputting a pool if we requested no curses interface.
  713. - Add an option to break out after successfully mining a number of accepted
  714. shares.
  715. - Exit with a failed return code if we did not reach opt_shares.
  716. - The cpu mining work data can get modified before we copy it if we submit it
  717. async, and the sync submission is not truly sync anyway, so just submit it sync.
  718. Version 1.6.0 - August 26, 2011
  719. - Make restarting of GPUs optional for systems that hang on any attempt to
  720. restart them. Fix DEAD status by comparing it to last live time rather than
  721. last attempted restart time since that happens every minute.
  722. - Move staged threads to hashes so we can sort them by time.
  723. - Create a hash list of all the blocks created and search them to detect when a
  724. new block has definitely appeared, using that information to detect stale work
  725. and discard it.
  726. - Update configure.ac for newer autoconf tools.
  727. - Use the new hashes directly for counts instead of the fragile counters
  728. currently in use.
  729. - Update to latest sse2 code from cpuminer-ng.
  730. - Allow LP to reset block detect and block detect lp flags to know who really
  731. came first.
  732. - Get start times just before mining begins to not have very slow rise in
  733. average.
  734. - Add message about needing one server.
  735. - We can queue all the necessary work without hitting frequent stales now with
  736. the time and string stale protection active all the time. This prevents a
  737. pool being falsely labelled as not providing work fast enough.
  738. - Include uthash.h in distro.
  739. - Implement SSE2 32 bit assembly algorithm as well.
  740. - Fail gracefully if unable to open the opencl files.
  741. - Make cgminer look in the install directory for the .cl files making make
  742. install work correctly.
  743. - Allow a custom kernel path to be entered on the command line.
  744. - Bump threshhold for lag up to maximum queued but no staged work.
  745. - Remove fragile source patching for bitalign, vectors et. al and simply pass it
  746. with the compiler options.
  747. - Actually check the value returned for the x-roll-ntime extension to make sure
  748. it isn't saying N.
  749. - Prevent segfault on exit for when accessory threads don't exist.
  750. - Disable curl debugging with opt protocol since it spews to stderr.
  751. Version 1.5.8 - August 23, 2011
  752. - Minimise how much more work can be given in cpu mining threads each interval.
  753. - Make the fail-pause progressively longer each time it fails until the network
  754. recovers.
  755. - Only display the lagging message if we've requested the work earlier.
  756. - Clean up the pool switching to not be dependent on whether the work can roll
  757. or not by setting a lagging flag and then the idle flag.
  758. - Only use one thread to determine if a GPU is sick or well, and make sure to
  759. reset the sick restart attempt time.
  760. - The worksize was unintentionally changed back to 4k by mistake, this caused a
  761. slowdown.
  762. Version 1.5.7 - August 22, 2011
  763. - Fix a crash with --algo auto
  764. - Test at appropriate target difficulty now.
  765. - Add per-device statics log output with --per-device-stats
  766. - Fix breakage that occurs when 1 or 4 vectors are chosen on new phatk.
  767. - Make rolltime report debug level only now since we check it every work
  768. item.
  769. - Add the ability to enable/disable per-device stats on the fly and match
  770. logging on/off.
  771. - Explicitly tell the compiler to retain the program to minimise the chance of
  772. the zero sized binary errors.
  773. - Add one more instruction to avoid one branch point in the common path in the
  774. cl return code. Although this adds more ALUs overall and more branch points, the
  775. common path code has the same number of ALUs and one less jmp, jmps being more
  776. expensive.
  777. - Explicitly link in ws2_32 on the windows build and update README file on how
  778. to compile successfully on windows.
  779. - Release cl resources should the gpu mining thread abort.
  780. - Attempt to restart a GPU once every minute while it's sick.
  781. - Don't kill off the reinit thread if it fails to init a GPU but returns safely.
  782. - Only declare a GPU dead if there's been no sign of activity from the reinit
  783. thread for 10 mins.
  784. - Never automatically disable any pools but just specify them as idle if they're
  785. unresponsive at startup.
  786. - Use any longpoll available, and don't disable it if switching to a server that
  787. doesn't have it. This allows you to mine solo, yet use the longpoll from a pool
  788. even if the pool is the backup server.
  789. - Display which longpoll failed and don't free the ram for lp_url since it
  790. belongs to the pool hdr path.
  791. - Make the tcp setsockopts unique to linux in the hope it allows freebsd et. al
  792. to compile.
  793. Version 1.5.6 - August 17, 2011
  794. - New phatk and poclbm kernels. Updated phatk to be in sync with latest 2.2
  795. courtesy of phateus. Custom modified to work best with cgminer.
  796. - Updated output buffer code to use a smaller buffer with the kernels.
  797. - Clean up the longpoll management to ensure the right paths go to the right
  798. pool and display whether we're connected to LP or not in the status line.
  799. Version 1.5.5 - August 16, 2011
  800. - Rework entirely the GPU restart code. Strike a balance between code that
  801. re-initialises the GPU entirely so that soft hangs in the code are properly
  802. managed, but if a GPU is completely hung, the thread restart code fails
  803. gracefully, so that it does not take out any other code or devices. This will
  804. allow cgminer to keep restarting GPUs that can be restarted, but continue
  805. mining even if one or more GPUs hangs which would normally require a reboot.
  806. - Add --submit-stale option which submits all shares, regardless of whether they
  807. would normally be considered stale.
  808. - Keep options in alphabetical order.
  809. - Probe for slightly longer for when network conditions are lagging.
  810. - Only display the CPU algo when we're CPU mining.
  811. - As we have keepalives now, blaming network flakiness on timeouts appears to
  812. have been wrong. Set a timeout for longpoll to 1 hour, and most other
  813. network connectivity to 1 minute.
  814. - Simplify output code and remove HW errors from CPU stats.
  815. - Simplify code and tidy output.
  816. - Only show cpu algo in summary if cpu mining.
  817. - Log summary at the end as per any other output.
  818. - Flush output.
  819. - Add a linux-usb-cgminer guide courtesy of Kano.
  820. Version 1.5.4 - August 14, 2011
  821. - Add new option: --monitor <cmd> Option lets user specify a command <cmd> that
  822. will get forked by cgminer on startup. cgminer's stderr output subsequently gets
  823. piped directly to this command.
  824. - Allocate work from one function to be able to initialise variables added
  825. later.
  826. - Add missing fflush(stdout) for --ndevs and conclusion summary.
  827. - Preinitialise the devices only once on startup.
  828. - Move the non cl_ variables into the cgpu info struct to allow creating a new
  829. cl state on reinit, preserving known GPU variables.
  830. - Create a new context from scratch in initCQ in case something was corrupted to
  831. maximise our chance of succesfully creating a new worker thread. Hopefully this
  832. makes thread restart on GPU failure more reliable, without hanging everything
  833. in the case of a completely wedged GPU.
  834. - Display last initialised time in gpu management info, to know if a GPU has
  835. been re-initialised.
  836. - When pinging a sick cpu, flush finish and then ping it in a separate thread in
  837. the hope it recovers without needing a restart, but without blocking code
  838. elsewhere.
  839. - Only consider a pool lagging if we actually need the work and we have none
  840. staged despite queue requests stacking up. This decreases significantly the
  841. amount of work that leaks to the backup pools.
  842. - The can_roll function fails inappropriately in stale_work.
  843. - Only put the message that a pool is down if not pinging it every minute. This
  844. prevents cgminer from saying pool down at 1 minute intervals unless in debug
  845. mode.
  846. - Free all work in one place allowing us to perform actions on it in the future.
  847. - Remove the extra shift in the output code which was of dubious benefit. In
  848. fact in cgminer's implementation, removing this caused a miniscule speedup.
  849. - Test each work item to see if it can be rolled instead of per-pool and roll
  850. whenever possible, adhering to the 60 second timeout. This makes the period
  851. after a longpoll have smaller dips in throughput, as well as requiring less
  852. getworks overall thus increasing efficiency.
  853. - Stick to rolling only work from the current pool unless we're in load balance
  854. mode or lagging to avoid aggressive rolling imitating load balancing.
  855. - If a work item has had any mining done on it, don't consider it discarded
  856. work.
  857. Version 1.5.3 - July 30, 2011
  858. - Significant work went into attempting to make the thread restart code robust
  859. to identify sick threads, tag them SICK after 1 minute, then DEAD after 5
  860. minutes of inactivity and try to restart them. Instead of re-initialising the
  861. GPU completely, only a new cl context is created to avoid hanging the rest of
  862. the GPUs should the dead GPU be hung irrevocably.
  863. - Use correct application name in syslog.
  864. - Get rid of extra line feeds.
  865. - Use pkg-config to check for libcurl version
  866. - Implement per-thread getwork count with proper accounting to not over-account
  867. queued items when local work replaces it.
  868. - Create a command queue from the program created from source which allows us
  869. to flush the command queue in the hope it will not generate a zero sized binary
  870. any more.
  871. - Be more willing to get work from the backup pools if the work is simply being
  872. queued faster than it is being retrieved.
  873. Version 1.5.2 - July 28, 2011
  874. - Restarting a hung GPU can hang the rest of the GPUs so just declare it dead
  875. and provide the information in the status.
  876. - The work length in the miner thread gets smaller but doesn't get bigger if
  877. it's under 1 second. This could end up leading to CPU under-utilisation and
  878. lower and lower hash rates. Fix it by increasing work length if it drops
  879. under 1 second.
  880. - Make the "quiet" mode still update the status and display errors, and add a
  881. new --real-quiet option which disables all output and can be set once while
  882. running.
  883. - Update utility and efficiency figures when displaying them.
  884. - Some Intel HD graphics support the opencl commands but return errors since
  885. they don't support opencl. Don't fail with them, just provide a warning and
  886. disable GPU mining.
  887. - Add http:// if it's not explicitly set for URL entries.
  888. - Log to the output file at any time with warnings and errors, instead of just
  889. when verbose mode is on.
  890. - Display the correct current hash as per blockexplorer, truncated to 16
  891. characters, with just the time.
  892. Version 1.5.1 - July 27, 2011
  893. - Two redraws in a row cause a crash in old libncurses so just do one redraw
  894. using the main window.
  895. - Don't adjust hash_div only up for GPUs. Disable hash_div adjustment for GPUs.
  896. - Only free the thread structures if the thread still exists.
  897. - Update both windows separately, but not at the same time to prevent the double
  898. refresh crash that old libncurses has. Do the window resize check only when
  899. about to redraw the log window to minimise ncurses cpu usage.
  900. - Abstract out the decay time function and use it to make hash_div a rolling
  901. average so it doesn't change too abruptly and divide work in chunks large enough
  902. to guarantee they won't overlap.
  903. - Sanity check to prove locking.
  904. - Don't take more than one lock at a time.
  905. - Make threads report out when they're queueing a request and report if they've
  906. failed.
  907. - Make cpu mining work submission asynchronous as well.
  908. - Properly detect stale work based on time from staging and discard instead of
  909. handing on, but be more lax about how long work can be divided for up to the
  910. scantime.
  911. - Do away with queueing work separately at the start and let each thread grab
  912. its own work as soon as it's ready.
  913. - Don't put an extra work item in the queue as each new device thread will do so
  914. itself.
  915. - Make sure to decrease queued count if we discard the work.
  916. - Attribute split work as local work generation.
  917. - If work has been cloned it is already at the head of the list and when being
  918. reinserted into the queue it should be placed back at the head of the list.
  919. - Dividing work is like the work is never removed at all so treat it as such.
  920. However the queued bool needs to be reset to ensure we *can* request more work
  921. even if we didn't initially.
  922. - Make the display options clearer.
  923. - Add debugging output to tq_push calls.
  924. - Add debugging output to all tq_pop calls.
  925. Version 1.5.0 - July 26, 2011
  926. - Increase efficiency of slow mining threads such as CPU miners dramatically. Do
  927. this by detecting which threads cannot complete searching a work item within the
  928. scantime and then divide up a work item into multiple smaller work items.
  929. Detect the age of the work items and if they've been cloned before to prevent
  930. doing the same work over. If the work is too old to be divided, then see if it
  931. can be time rolled and do that to generate work. This dramatically decreases the
  932. number of queued work items from a pool leading to higher overall efficiency
  933. (but the same hashrate and share submission rate).
  934. - Don't request work too early for CPUs as CPUs will scan for the full
  935. opt_scantime anyway.
  936. - Simplify gpu management enable/disable/restart code.
  937. - Implement much more accurate rolling statistics per thread and per gpu and
  938. improve accuracy of rolling displayed values.
  939. - Make the rolling log-second average more accurate.
  940. - Add a menu to manage GPUs on the fly allowing you to enable/disable GPUs or
  941. try restarting them.
  942. - Keep track of which GPUs are alive versus enabled.
  943. - Start threads for devices that are even disabled, but don't allow them to
  944. start working.
  945. - The last pool is when we are low in total_pools, not active_pools.
  946. - Make the thread restart do a pthread_join after disabling the device, only
  947. re-enabling it if we succeed in restarting the thread. Do this from a separate
  948. thread so as to not block any other code.This will allow cgminer to continue
  949. even if one GPU hangs.
  950. - Try to do every curses manipulation under the curses lock.
  951. - Only use the sockoptfunction if the version of curl is recent enough.
  952. Version 1.4.1 - July 24, 2011
  953. - Do away with GET for dealing with longpoll forever. POST is the one that works
  954. everywhere, not the other way around.
  955. - Detect when the primary pool is lagging and start queueing requests on backup
  956. pools if possible before needing to roll work.
  957. - Load balancing puts more into the current pool if there are disabled pools.
  958. Fix.
  959. - Disable a GPU device should the thread fail to init.
  960. - Out of order command queue may fail on osx. Try without if it fails.
  961. - Fix possible dereference on blank inputs during input_pool.
  962. - Defines missing would segfault on --help when no sse mining is built in.
  963. - Revert "Free up resources/stale compilers." - didn't help.
  964. - Only try to print the status of active devices or it would crash.
  965. - Some hardware might benefit from the less OPS so there's no harm in leaving
  966. kernel changes that do that apart from readability of the code.
  967. Version 1.4.0 - July 23, 2011
  968. - Feature upgrade: Add keyboard input during runtime to allow modification of
  969. and viewing of numerous settings such as adding/removing pools, changing
  970. multipool management strategy, switching pools, changing intensiy, verbosity,
  971. etc. with a simple keypress menu system.
  972. - Free up resources/stale compilers.
  973. - Kernels are safely flushed in a way that allows out of order execution to
  974. work.
  975. - Sometimes the cl compiler generates zero sized binaries and only a reboot
  976. seems to fix it.
  977. - Don't try to stop/cancel threads that don't exist.
  978. - Only set option to show devices and exit if built with opencl support.
  979. - Enable curses earlier and exit with message in main for messages to not be
  980. lost in curses windows.
  981. - Make it possible to enter server credentials with curses input if none are
  982. specified on the command line.
  983. - Abstract out a curses input function and separate input pool function to allow
  984. for live adding of pools later.
  985. - Remove the nil arguments check to allow starting without parameters.
  986. - Disable/enable echo & cbreak modes.
  987. - Add a thread that takes keyboard input and allow for quit, silent, debug,
  988. verbose, normal, rpc protocol debugging and clear screen options.
  989. - Add pool option to input and display current pool status, pending code to
  990. allow live changes.
  991. - Add a bool for explicit enabling/disabling of pools.
  992. - Make input pool capable of bringing up pools while running.
  993. - Do one last check of the work before submitting it.
  994. - Implement the ability to live add, enable, disable, and switch to pools.
  995. - Only internally test for block changes when the work matches the current pool
  996. to prevent interleaved block change timing on multipools.
  997. - Display current pool management strategy to enable changing it on the fly.
  998. - The longpoll blanking of the current_block data may not be happening before
  999. the work is converted and appears to be a detected block change. Blank the
  1000. current block be
  1001. - Make --no-longpoll work again.
  1002. - Abstract out active pools count.
  1003. - Allow the pool strategy to be modified on the fly.
  1004. - Display pool information on the fly as well.
  1005. - Add a menu and separate out display options.
  1006. - Clean up the messy way the staging thread communicates with the longpoll
  1007. thread to determine who found the block first.
  1008. - Make the input windows update immediately instead of needing a refresh.
  1009. - Allow log interval to be set in the menu.
  1010. - Allow scan settings to be modified at runtime.
  1011. - Abstract out the longpoll start and explicitly restart it on pool change.
  1012. - Make it possible to enable/disable longpoll.
  1013. - Set priority correctly on multipools. Display priority and alive/dead
  1014. information in display_pools.
  1015. - Implement pool removal.
  1016. - Limit rolltime work generation to 10 iterations only.
  1017. - Decrease testing log to info level.
  1018. - Extra refresh not required.
  1019. - With huge variation in GPU performance, allow intensity to go from -10 to +10.
  1020. - Tell getwork how much of a work item we're likely to complete for future
  1021. splitting up of work.
  1022. - Remove the mandatory work requirement at startup by testing for invalid work
  1023. being passed which allows for work to be queued immediately. This also
  1024. removes the requirem
  1025. - Make sure intensity is carried over to thread count and is at least the
  1026. minimum necessary to work.
  1027. - Unlocking error on retry. Locking unnecessary anyway so remove it.
  1028. - Clear log window from consistent place. No need for locking since logging is
  1029. disabled during input.
  1030. - Cannot print the status of threads that don't exist so just queue enough work
  1031. for the number of mining threads to prevent crash with -Q N.
  1032. - Update phatk kernel to one with new parameters for slightly less overhead
  1033. again. Make the queue kernel parameters call a function pointer to select
  1034. phatk or poclbm.
  1035. - Make it possible to select the choice of kernel on the command line.
  1036. - Simplify the output part of the kernel. There's no demonstrable advantage from
  1037. more complexity.
  1038. - Merge pull request #18 from ycros/cgminer
  1039. - No need to make leaveok changes win32 only.
  1040. - Build support in for all SSE if possible and only set the default according to
  1041. machine capabilities.
  1042. - Win32 threading and longpoll keepalive fixes.
  1043. - Win32: Fix for mangled output on the terminal on exit.
  1044. Version 1.3.1 - July 20, 2011
  1045. - Feature upgrade; Multiple strategies for failover. Choose from default which
  1046. now falls back to a priority order from 1st to last, round robin which only
  1047. changes pools when one is idle, rotate which changes pools at user-defined
  1048. intervals, and load-balance which spreads the work evenly amongst all pools.
  1049. - Implement pool rotation strategy.
  1050. - Implement load balancing algorithm by rotating requests to each pool.
  1051. - Timeout on failed discarding of staged requests.
  1052. - Implement proper flagging of idle pools, test them with the watchdog thread,
  1053. and failover correctly.
  1054. - Move pool active test to own function.
  1055. - Allow multiple strategies to be set for multipool management.
  1056. - Track pool number.
  1057. - Don't waste the work items queued on testing the pools at startup.
  1058. - Reinstate the mining thread watchdog restart.
  1059. - Add a getpoll bool into the thread information and don't restart threads stuck
  1060. waiting on work.
  1061. - Rename the idlenet bool for the pool for later use.
  1062. - Allow the user/pass userpass urls to be input in any order.
  1063. - When json rpc errors occur they occur in spits and starts, so trying to limit
  1064. them with the comms error bool doesn't stop a flood of them appearing.
  1065. - Reset the queued count to allow more work to be queued for the new pool on
  1066. pool switch.
  1067. Version 1.3.0 - July 19, 2011
  1068. - Massive infrastructure update to support pool failover.
  1069. - Accept multiple parameters for url, user and pass and set up structures of
  1070. pool data accordingly.
  1071. - Probe each pool for what it supports.
  1072. - Implement per pool feature support according to rolltime support as
  1073. advertised by server.
  1074. - Do switching automatically based on a 300 second timeout of locally generated
  1075. work or 60 seconds of no response from a server that doesn't support rolltime.
  1076. - Implement longpoll server switching.
  1077. - Keep per-pool data and display accordingly.
  1078. - Make sure cgminer knows how long the pool has actually been out for before
  1079. deeming it a prolonged outage.
  1080. - Fix bug with ever increasing staged work in 1.2.8 that eventually caused
  1081. infinite rejects.
  1082. - Make warning about empty http requests not show by default since many
  1083. servers do this regularly.
  1084. Version 1.2.8 - July 18, 2011
  1085. - More OSX build fixes.
  1086. - Add an sse4 algorithm to CPU mining.
  1087. - Fix CPU mining with other algorithms not working.
  1088. - Rename the poclbm file to ensure a new binary is built since.
  1089. - We now are guaranteed to have one fresh work item after a block change and we
  1090. should only discard staged requests.
  1091. - Don't waste the work we retrieve from a longpoll.
  1092. - Provide a control lock around global bools to avoid racing on them.
  1093. - Iterating over 1026 nonces when confirming data from the GPU is old code
  1094. and unnecessary and can lead to repeats/stales.
  1095. - The poclbm kernel needs to be updated to work with the change to 4k sized
  1096. output buffers.
  1097. - longpoll seems to work either way with post or get but some servers prefer
  1098. get so change to httpget.
  1099. Version 1.2.7 - July 16, 2011
  1100. - Show last 8 characters of share submitted in log.
  1101. - Display URL connected to and user logged in as in status.
  1102. - Display current block and when it was started in the status line.
  1103. - Only pthread_join the mining threads if they exist as determined by
  1104. pthread_cancel and don't fail on pthread_cancel.
  1105. - Create a unique work queue for all getworks instead of binding it to thread 0
  1106. to avoid any conflict over thread 0's queue.
  1107. - Clean up the code to make it clear it's watchdog thread being messaged to
  1108. restart the threads.
  1109. - Check the current block description hasn't been blanked pending the real
  1110. new current block data.
  1111. - Re-enable signal handlers once the signal has been received to make it
  1112. possible to kill cgminer if it fails to shut down.
  1113. - Disable restarting of CPU mining threads pending further investigation.
  1114. - Update longpoll messages.
  1115. - Add new block data to status line.
  1116. - Fix opencl tests for osx.
  1117. - Only do local generation of work if the work item is not stale itself.
  1118. - Check for stale work within the mining threads and grab new work if
  1119. positive.
  1120. - Test for idle network conditions and prevent threads from being restarted
  1121. by the watchdog thread under those circumstances.
  1122. - Make sure that local work generation does not continue indefinitely by
  1123. stopping it after 10 minutes.
  1124. - Tweak the kernel to have a shorter path using a 4k buffer and a mask on the
  1125. nonce value instead of a compare and loop for a shorter code path.
  1126. - Allow queue of zero and make that default again now that we can track how
  1127. work is being queued versus staged. This can decrease reject rates.
  1128. - Queue precisely the number of mining threads as longpoll_staged after a
  1129. new block to not generate local work.
  1130. Version 1.2.6 - July 15, 2011
  1131. - Put a current system status line beneath the total work status line
  1132. - Fix a counting error that would prevent cgminer from correctly detecting
  1133. situations where getwork was failing - this would cause stalls sometimes
  1134. unrecoverably.
  1135. - Limit the maximum number of requests that can be put into the queue which
  1136. otherwise could get arbitrarily long during a network outage.
  1137. - Only count getworks that are real queue requests.
  1138. Version 1.2.5 - July 15, 2011
  1139. - Conflicting -n options corrected
  1140. - Setting an intensity with -I disables dynamic intensity setting
  1141. - Removed option to manually disable dynamic intensity
  1142. - Improve display output
  1143. - Implement signal handler and attempt to clean up properly on exit
  1144. - Only restart threads that are not stuck waiting on mandatory getworks
  1145. - Compatibility changes courtesy of Ycros to build on mingw32 and osx
  1146. - Explicitly grab first work item to prevent false positive hardware errors
  1147. due to working on uninitialised work structs
  1148. - Add option for non curses --text-only output
  1149. - Ensure we connect at least once successfully before continuing to retry to
  1150. connect in case url/login parameters were wrong
  1151. - Print an executive summary when cgminer is terminated
  1152. - Make sure to refresh the status window
  1153. Versions -> 1.2.4
  1154. - Con Kolivas - July 2011. New maintainership of code under cgminer name.
  1155. - Massive rewrite to incorporate GPU mining.
  1156. - Incorporate original oclminer c code.
  1157. - Rewrite gpu mining code to efficient work loops.
  1158. - Implement per-card detection and settings.
  1159. - Implement vector code.
  1160. - Implement bfi int patching.
  1161. - Import poclbm and phatk ocl kernels and use according to hardware type.
  1162. - Implement customised optimised versions of opencl kernels.
  1163. - Implement binary kernel generation and loading.
  1164. - Implement preemptive asynchronous threaded work gathering and pushing.
  1165. - Implement variable length extra work queues.
  1166. - Optimise workloads to be efficient miners instead of getting lots of extra
  1167. work.
  1168. - Implement total hash throughput counters, per-card accepted, rejected and
  1169. hw error count.
  1170. - Staging and watchdog threads to prevent fallover.
  1171. - Stale and reject share guarding.
  1172. - Autodetection of new blocks without longpoll.
  1173. - Dynamic setting of intensity to maintain desktop interactivity.
  1174. - Curses interface with generous statistics and information.
  1175. - Local generation of work (xroll ntime) when detecting poor network
  1176. connectivity.
  1177. Version 1.0.2
  1178. - Linux x86_64 optimisations - Con Kolivas
  1179. - Optimise for x86_64 by default by using sse2_64 algo
  1180. - Detects CPUs and sets number of threads accordingly
  1181. - Uses CPU affinity for each thread where appropriate
  1182. - Sets scheduling policy to lowest possible
  1183. - Minor performance tweaks
  1184. Version 1.0.1 - May 14, 2011
  1185. - OSX support
  1186. Version 1.0 - May 9, 2011
  1187. - jansson 2.0 compatibility
  1188. - correct off-by-one in date (month) display output
  1189. - fix platform detection
  1190. - improve yasm configure bits
  1191. - support full URL, in X-Long-Polling header
  1192. Version 0.8.1 - March 22, 2011
  1193. - Make --user, --pass actually work
  1194. - Add User-Agent HTTP header to requests, so that server operators may
  1195. more easily identify the miner client.
  1196. - Fix minor bug in example JSON config file
  1197. Version 0.8 - March 21, 2011
  1198. - Support long polling: http://deepbit.net/longpolling.php
  1199. - Adjust max workload based on scantime (default 5 seconds,
  1200. or 60 seconds for longpoll)
  1201. - Standardize program output, and support syslog on Unix platforms
  1202. - Suport --user/--pass options (and "user" and "pass" in config file),
  1203. as an alternative to the current --userpass
  1204. Version 0.7.2 - March 14, 2011
  1205. - Add port of ufasoft's sse2 assembly implementation (Linux only)
  1206. This is a substantial speed improvement on Intel CPUs.
  1207. - Move all JSON-RPC I/O to separate thread. This reduces the
  1208. number of HTTP connections from one-per-thread to one, reducing resource
  1209. usage on upstream bitcoind / pool server.
  1210. Version 0.7.1 - March 2, 2011
  1211. - Add support for JSON-format configuration file. See example
  1212. file example-cfg.json. Any long argument on the command line
  1213. may be stored in the config file.
  1214. - Timestamp each solution found
  1215. - Improve sha256_4way performance. NOTE: This optimization makes
  1216. the 'hash' debug-print output for sha256_way incorrect.
  1217. - Use __builtin_expect() intrinsic as compiler micro-optimization
  1218. - Build on Intel compiler
  1219. - HTTP library now follows HTTP redirects
  1220. Version 0.7 - February 12, 2011
  1221. - Re-use CURL object, thereby reuseing DNS cache and HTTP connections
  1222. - Use bswap_32, if compiler intrinsic is not available
  1223. - Disable full target validation (as opposed to simply H==0) for now
  1224. Version 0.6.1 - February 4, 2011
  1225. - Fully validate "hash < target", rather than simply stopping our scan
  1226. if the high 32 bits are 00000000.
  1227. - Add --retry-pause, to set length of pause time between failure retries
  1228. - Display proof-of-work hash and target, if -D (debug mode) enabled
  1229. - Fix max-nonce auto-adjustment to actually work. This means if your
  1230. scan takes longer than 5 seconds (--scantime), the miner will slowly
  1231. reduce the number of hashes you work on, before fetching a new work unit.
  1232. Version 0.6 - January 29, 2011
  1233. - Fetch new work unit, if scanhash takes longer than 5 seconds (--scantime)
  1234. - BeeCee1's sha256 4way optimizations
  1235. - lfm's byte swap optimization (improves via, cryptopp)
  1236. - Fix non-working short options -q, -r
  1237. Version 0.5 - December 28, 2010
  1238. - Exit program, when all threads have exited
  1239. - Improve JSON-RPC failure diagnostics and resilience
  1240. - Add --quiet option, to disable hashmeter output.
  1241. Version 0.3.3 - December 27, 2010
  1242. - Critical fix for sha256_cryptopp 'cryptopp_asm' algo
  1243. Version 0.3.2 - December 23, 2010
  1244. - Critical fix for sha256_via
  1245. Version 0.3.1 - December 19, 2010
  1246. - Critical fix for sha256_via
  1247. - Retry JSON-RPC failures (see --retry, under "minerd --help" output)
  1248. Version 0.3 - December 18, 2010
  1249. - Add crypto++ 32bit assembly implementation
  1250. - show version upon 'minerd --help'
  1251. - work around gcc 4.5.x bug that killed 4way performance
  1252. Version 0.2.2 - December 6, 2010
  1253. - VIA padlock implementation works now
  1254. - Minor build and runtime fixes
  1255. Version 0.2.1 - November 29, 2010
  1256. - avoid buffer overflow when submitting solutions
  1257. - add Crypto++ sha256 implementation (C only, ASM elided for now)
  1258. - minor internal optimizations and cleanups
  1259. Version 0.2 - November 27, 2010
  1260. - Add script for building a Windows installer
  1261. - improve hash performance (hashmeter) statistics
  1262. - add tcatm 4way sha256 implementation
  1263. - Add experimental VIA Padlock sha256 implementation
  1264. Version 0.1.2 - November 26, 2010
  1265. - many small cleanups and micro-optimizations
  1266. - build win32 exe using mingw
  1267. - RPC URL, username/password become command line arguments
  1268. - remove unused OpenSSL dependency
  1269. Version 0.1.1 - November 24, 2010
  1270. - Do not build sha256_generic module separately from cpuminer.
  1271. Version 0.1 - November 24, 2010
  1272. - Initial release.