Log

Author Commit Date CI Message
Con Kolivas 4d730577 2011-06-30T10:36:19 Build binaries with unique filenames from the kernel generated and save them. Try to load this cached binary if it matches on next kernel instantiation. This speeds up start-up dramatically, and has a unique kernel binary for different kernel configurations.
Con Kolivas 973b2199 2011-06-30T08:58:07 Tidy.
ckolivas 6af84770 2011-06-29T11:30:06 Add spaces to make output clearer.
Con Kolivas 2b6e8416 2011-06-29T23:38:16 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.
ckolivas 1dfbe603 2011-06-29T09:24:38 Put sanity limit on work size since some nvidia fail :(
Con Kolivas 2dbb3944 2011-06-27T22:05:03 Base was being set wrongly meaning we were repeating searches and the rate was actually lower than displayed :( Tweak Ma with new changes. Change default vectors to 2 since it's faster than 4 even when 4 is reported as preferred.
Con Kolivas 08f56f5f 2011-06-26T08:55:53 Set default CPU threads to 0 if GPU mining.
Con Kolivas 06f39506 2011-06-26T08:49:50 Fix typo which prevented BFI INT patch working on multi-GPUs.
Con Kolivas c5666051 2011-06-27T16:41:39 Tab dainbramage.
Con Kolivas 30e38e2e 2011-06-26T00:59:07 Typo i - gpu
Con Kolivas fdb46f2d 2011-06-26T00:06:19 32bit fixes.
ckolivas f490143a 2011-06-29T09:22:21 Add local thread count to info, store hw error count, and make share submission debug only.
Con Kolivas 11c88185 2011-06-27T16:08:46 32 bit only builds one elf, not an elf in an elf, so account for it to be able to bfi int patch properly.
Con Kolivas 295ef0f9 2011-06-25T21:47:16 Discard accumulated work when longpoll indicates a new block.
Con Kolivas f44e8fac 2011-06-25T20:56:17 Curl appears to be not thread safe so only have one curl open at a time.
Con Kolivas 623b9b9f 2011-06-27T12:45:03 Patch bitalign separately from bfi_int. Recover from failing to patch for bfi int.
Con Kolivas 343ae851 2011-06-25T20:38:40 Intensity 5 is too high for a normal desktop causing unacceptable lag so change the default to 4.
Con Kolivas 88e2cf7b 2011-06-25T20:22:23 Initialise libcurl properly.
ckolivas e1dd27c5 2011-06-29T11:19:43 Ensure that we don't overflow due to 32 bit limitations.
Con Kolivas e016d0c8 2011-06-28T23:41:57 Increase maximum intensity configurable to 14.
Con Kolivas 948b514c 2011-06-27T12:02:47 The buffer needs to be flushed before enqueueing the kernel again. Further optimise the mining loop by removing the need_work bool.
Con Kolivas 656b485d 2011-06-25T18:58:59 Make the worksize and vector width configurable.
Con Kolivas ead1281b 2011-06-25T18:27:56 Cleanup of return codes.
Con Kolivas a45c54aa 2011-06-27T11:31:05 Make postcalc_hash asynchronous as well.
Con Kolivas 401586f9 2011-06-25T18:06:38 Only try to patch GPU referenced.
Con Kolivas f6486efb 2011-06-25T13:40:42 Make the getting of work asynchronous from the mining threads requests by always having one work item queued. This prevents drops in hash rates when getting work from a pool that is slow to respond. Use a local static struct work in get_work that is used to queue one extra work item.
Con Kolivas dfc52fd5 2011-06-28T21:46:09 Make sure we can have gpu and cpu threads running.
Con Kolivas 378d18f8 2011-06-27T10:15:03 Submit all work asynchronously via a submit_work thread.
Con Kolivas 0cef8f8d 2011-06-25T12:50:15 Default scan timeout of 5 seconds is way too short leading to abandoning blocks too early and being seen as an "inefficient" miner. Increase it to 60.
Con Kolivas ac4ab6af 2011-06-25T12:32:30 Fix mutli-gpu initialisation when BFI_INT patching.
Con Kolivas 612c3a45 2011-06-27T09:32:12 Curl doesn't like multiple instances so go back to one instance.
Con Kolivas d2cb012f 2011-06-25T10:07:29 Detach the thread once created so we don't have to explicitly try and join it.
ckolivas b38a02bd 2011-06-29T11:14:16 Make the log time hash rate a rolling exponential average so it doesn't fluctuate so dramatically.
Con Kolivas 24a28e29 2011-06-28T21:28:50 Make it possible to run as a pure cpu miner by setting gpu threads to 0.
Con Kolivas f0dcd127 2011-06-27T09:17:13 Show which cpu mining thread when giving affinity message.
Con Kolivas 58f6bf42 2011-06-26T16:21:58 Prevent 32bit overflow of local_mhashes as well.
ckolivas e1d01d06 2011-06-28T11:18:26 Minor fixes.
Con Kolivas 00de8225 2011-06-26T15:28:33 Upper limit should be -hashes.
Con Kolivas c29a4322 2011-06-26T13:45:38 Only update the hashmeter once per second from gpu mining threads.
ckolivas 08a78210 2011-06-29T10:12:00 Make the log show what the thread is: cpu or gpu and what number.
Con Kolivas 6c6bb02b 2011-06-28T21:16:37 There is no point having vectors in the it variable.
Con Kolivas 063adc64 2011-06-26T12:59:15 Implement runtime selectable numbers of GPU threads and rename CPU threads option.
Con Kolivas b6ae1db8 2011-06-26T10:53:16 The submit_lock is not required nor helpful.
Con Kolivas 6374e0fa 2011-06-28T21:11:04 Import the phatk kernel. Enable it only for hardware with amd media ops for now since it crashes nvidia et. al. Fallback to the poclbm kernel for the rest. Try harder to avoid stale blocks around longpoll detecting new blocks.
Con Kolivas d1c0cccd 2011-06-26T09:09:07 Show correct GPU from thread number.
Con Kolivas f1114992 2011-06-26T09:07:52 Implement a potentially variable number of threads per gpu, setting it to 2 for now.
Con Kolivas b7a17753 2011-06-25T09:56:37 Make a separate thread for work submission that returns immediately so that miner threads aren't kept waiting when submitting results to slow pools.
ckolivas 64f268c8 2011-06-24T17:00:54 Display correct worksize.
ckolivas e8f4eead 2011-06-24T16:24:53 Use total mhashes as a counter to prevent 32 bit overflows.
Jeff Garzik 32ca93de 2011-06-14T02:40:24 Version 1.0.2.
Con Kolivas 808d5b07 2011-06-24T11:17:58 Make output debug.
Con Kolivas 88761e6c 2011-06-23T21:04:29 Multiple compiler warning fixes.
ckolivas d28f526b 2011-06-23T17:56:11 Need memmem in advance() to work properly for patching.
ckolivas 19eea906 2011-06-23T17:50:37 Implement code detecting max work size and optimal vector width. Use this to patch the kernel to suit the idea values for the card. Then use these values when invoking the kernel.
ckolivas 33352213 2011-06-23T16:39:56 Report preferred vector width.
ckolivas 237a5067 2011-06-23T15:28:12 Skip trying to start thread of GPUs that don't successfully initcl().
ckolivas 14ca8883 2011-06-23T14:59:17 Update help.
ckolivas c08be809 2011-06-23T14:56:27 Fix the setting of number of processors. Add scan intensity variable.
Con Kolivas 407df0f4 2011-06-23T12:35:22 Use correct boolean testing and long enough string for cl_amd_media ops testing and kernel changing.
ckolivas c2e41655 2011-06-23T12:04:53 Detect platforms that support cl_amd_media_ops and decide whether to BFI_INT patch or not. Remove unused kernels.
ckolivas 2ab6180d 2011-06-23T10:34:40 Reset count once all threads are started to avoid slow rate being shown initially. Update copyright notice and comments.
Con Kolivas 932ff72f 2011-06-22T23:35:23 The gpuminer thread uses very little cpu and needs to keep the gpu busy with as few delays as possible. Don't nice it.
Con Kolivas f54d2cc0 2011-06-22T23:07:30 Make poclbm use 4 vectors and decrease worksize to keep pipelines fullish. Make it possible to have 0 CPU threads and update docs. Fix counter with no cpu threads.
ckolivas b4d2733c 2011-06-22T16:47:34 Convert to poclbm kernel.
ckolivas 66240481 2011-06-22T15:39:27 Fix deref.
ckolivas fa2f6b19 2011-06-22T13:54:06 Unwind.
ckolivas 79fec01a 2011-06-22T12:27:57 Remove the input buffer and just pass args to the kernel as per plugin design.
Con Kolivas f117675a 2011-06-22T10:15:23 Optimise work loop to make cl calls asynchronous where possible.
Con Kolivas f05270b8 2011-06-22T01:19:19 Optimise loop and make debug debug only.
Con Kolivas fa4c10b1 2011-06-22T00:45:35 Implement ma macro for amd bytealign that gets patched into bfi_int as well.
Con Kolivas 91e5cef3 2011-06-22T00:13:46 Actually get first BFI_INT patch working.
Con Kolivas a40003ab 2011-06-21T09:46:25 More bfi_int patching.
Con Kolivas 9954e03c 2011-06-20T21:43:53 Straighten out.
Con Kolivas c548dea8 2011-06-20T16:53:13 First BFI_INT patch changes.
Con Kolivas 910e6943 2011-06-19T22:21:51 Increase baseline threads to 1<<22. Make total counter regularly update every 5 seconds. Only write the blank buffer when it needs to be blanked.
ckolivas 6b77d850 2011-06-17T14:00:41 Fixes.
ckolivas f7926088 2011-06-24T10:55:05 Limit intensity to 10. Anything larger overflows. Simplify test for new work.
ckolivas feb8cfc8 2011-06-24T09:51:54 applog fixes.
ckolivas b19ee2f5 2011-06-24T09:39:33 Make sure a GPU doesn't work on a block longer than opt_scantime.
ckolivas 26546ad5 2011-06-24T09:17:09 Make the optimisations per-gpu card and update code to work properly with multiple cards.
Con Kolivas 8253f141 2011-06-23T23:38:04 Use some line breaks in the kernel.
Con Kolivas 4257deaf 2011-06-23T23:14:47 Convert abcd... to an array.
Con Kolivas 75cf5ccd 2011-06-23T23:04:34 Replace Ws with an array.
Con Kolivas 852e78e7 2011-06-23T22:09:49 Fix mutex unlocking with only one thread and opt_log_interval.
Con Kolivas 70f73576 2011-06-23T21:58:46 Make the output display the 5 second and total average Mhash/s. Make the log interval configurable.
Con Kolivas debe7776 2011-06-23T21:23:46 Use cpu_from_thr_id when binding threads.
Con Kolivas afc83cb2 2011-06-23T21:10:19 Need gnu_source for memmem to work properly.
Con Kolivas 4cd5f47e 2011-06-23T21:09:22 Revert "Multiple compiler warning fixes." This reverts commit a5cbfbde2610e9f60e14b41a4e0595bcb34c772a. Broke.
ckolivas ce3382ca 2011-06-14T16:26:34 Don't run gpu thread idle prio.
Con Kolivas dde70397 2011-06-14T10:32:54 Merge gpumining from oclmine. Unstable.
ckolivas 51817422 2011-06-14T14:09:10 Cope with older linux kernel headers that don't have the newer scheduling policies defined.
Con Kolivas 0a8ac14c 2011-06-12T14:26:26 Forgot the else.
Con Kolivas 4f8045c2 2011-06-12T11:40:15 Only increase solutions count when confirmed true.
Con Kolivas ce750e42 2011-06-12T01:35:08 Add a solution counter to the output.
Con Kolivas 7062557e 2011-06-12T01:19:04 Implement global hash rate counter through mutex lock protected data. Make the output easier to read. Don't do hashmeter updates if no output is requested. Remove redundant output when using a single thread.
Jeff Garzik 4d6be0c1 2011-06-09T03:47:07 Fix number-of-threads init logic on Windows
Jeff Garzik 8e0e2493 2011-06-08T22:30:10 only read processor count via sysconf on non-Windows platforms
Christian Ludwig f992c92f 2011-06-08T23:12:07 configure.ac: Beautify yasm test output
Christian Ludwig feb02dfb 2011-06-08T23:09:21 Fix libcurl include path Fix the include path for libcurl, if it was installed in a location where gcc does not look by default. The variable is declared in the LIBCURL_CHECK_CONFIG m4 macro.
ckolivas 262b98ca 2011-06-09T11:45:06 Linux + x86_64 optimisations. Add likely() macro. Optimise a few obvious code paths with likely/unlikely. Change algo to sse2_amd64 by default. Move priority change to worker threads only. Detect number of CPUs and set default number of threads == CPUs. Add scheduling policy change to worker threads to SCHED_IDLE first and fallback to SCHED_BATCH on linux. Don't error when failing to set priority. Add CPU affinity and bind worker threads to CPUs when number of threads is a multiple of number of CPUs. Update NEWS with changes.