Bitcoin Forum
May 03, 2024, 01:58:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 [564] 565 566 567 568 569 »
11261  Bitcoin / Mining software (miners) / Re: cgminer - CPU and GPU mining software on: July 05, 2011, 06:16:10 AM
New windows binary:
http://ck.kolivas.org/apps/cgminer-ycros-2011-07-05.zip
11262  Bitcoin / Mining software (miners) / Re: cgminer - CPU and GPU mining software on: July 05, 2011, 04:26:53 AM
Is it possible to make it compile without AMD APP SDK? To run it as a pure CPU miner on a machine without any GPU.
I'm working on that still.
11263  Bitcoin / Mining software (miners) / Re: cgminer - CPU and GPU mining software on: July 05, 2011, 12:54:04 AM
Updated tree:

I believe we've tracked down the cause of the libcurl bug as being signal handling in the dns lookup code. So I've disabled signal handling and this has allowed me to add multiple curl handles thus making each get work and submit work completely asynchronous rather than each getwork waiting on the previous one and so on. It is theoretically possible it could spend forever waiting for a dns resolve but I doubt this can happen in reality as the lookup code would have to timeout at some stage. I've also addressed a bug where it was possible after a longpoll that a gpu could be left idle without any work. New windows builds coming soon.
11264  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 04, 2011, 11:20:05 AM
Forgive my ignorance, but as this miner supports both GPU and CPU, does it "intelligently" pick which processor to use or do you have to tell it to either use the GPU or the CPU (or both)?
If it does not detect any gpus it will cpu mine. If it detects any gpus it will only gpu mine unless you explicitly tell it to cpu mine as well. I'm working on modifying the code to build in the absence of opencl code and be a pure cpu miner still if need be.
11265  Bitcoin / Mining software (miners) / cgminer on: July 04, 2011, 11:08:34 AM
I've decided to rename this application cgminer which means "cpu and gpu miner" or "ck and garzik miner" or "c gpu miner" or... just plain cgminer.

So I've moved the git tree to
https://github.com/ckolivas/cgminer

and have started renaming files and have cleaned up the git log, rebasing it, for it to build with the name cgminer version 1.0.9

So I'm trying to clean all this code up for a meaningful release now.
11266  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 04, 2011, 06:20:02 AM
Gnu source is in config.h now
So it should be pulled in by everything
Make sure you have done ./autogen.sh and then ./configure
11267  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 04, 2011, 05:41:44 AM
Compilation fails on Fedora 14 32bit, can't find CPU_* macros for some reason:
Quote
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson    -O2 -Wall -msse2 -I/opt/ati-stream-sdk-v2.1-lnx32/include -g -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
In file included from cpu-miner.c:30:0:
miner.h:29:0: warning: "alloca" redefined
/usr/include/alloca.h:36:0: note: this is the location of the previous definition
cpu-miner.c: In function 'drop_policy':
cpu-miner.c:44:21: warning: unused variable 'param'
cpu-miner.c: In function 'affine_to_cpu':
cpu-miner.c:58:2: warning: implicit declaration of function 'CPU_ZERO'
cpu-miner.c:59:2: warning: implicit declaration of function 'CPU_SET'
cpu-miner.c:60:2: warning: implicit declaration of function 'sched_setaffinity'

That should be in /usr/include/sched.h which is in a virtually standard package for compiling anything: libc6-dev
11268  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 04, 2011, 05:37:53 AM
Updated tree:

I put a careful counter on the number of queued items to ensure we don't fall between the cracks during an updated block and clearing of work that we end up without any work and one ore more threads idle. Also, since minerd now pre-queues work before the previous work is finished, there is no need to have extra queued work by default, so I've changed the default queue value to 0 and made it mean extra queued work instead.
11269  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 04, 2011, 03:51:47 AM
Thanks. I'm pretty sure I know what that is. The different cards need different kernels and they're both loading the same binary. I'll get to fixing that.

Updated tree: The binary kernel stored now includes the GPU name in the filename. This will allow separate binary kernels to be saved for each unique GPU type on the same machine which should fix this problem.
11270  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 04, 2011, 01:06:56 AM

Can you change the name to something other than the now-misleading "cpuminer"?

I'll get around to it sooner or later. Trying to consolidate everything now to make sure it's all actually working :s
11271  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 04, 2011, 12:53:51 AM
What does the output look like with -D until it has started getting HW errors?

Output from minerd
I didn't set --queue, --gpu-threads or --intensity, so these were at default values.
These lines look interesting:
Code:
[2011-07-04 01:42:48] GPU 1 found something?
[2011-07-04 01:42:48] No best_g found! Error in OpenCL code?

This only happens with the last few versions of of minerd, an older version (before your "What next..." post) worked fine with both GPUs. Unfortunately I don't know at which exact version it stopped working.

Thanks. I'm pretty sure I know what that is. The different cards need different kernels and they're both loading the same binary. I'll get to fixing that.
11272  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 03, 2011, 11:05:48 PM
I tried this ↑ new version of minerd, but I still get 100% HW-Errors on my second GPU.  Sad
This bug doesn't occur with an old Version of minerd.


What does the output look like with -D until it has started getting HW errors?
11273  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 03, 2011, 03:15:43 PM
Updated tree and windows binary:

After an extensive period of poor connectivity with my pool I decided to make minerd much more robust with respect to networking and caching of work items. I modified to code to find when a worker thread is 2/3 of the way through completing that search and will then queue a new work request in advance at that point. This allows getting work over slow or intermittent connections asynchronously from the worker thread without having to have a large buffer of increasingly stale work. Then I added code to flush out all the old items of work when a longpoll is detected -and- queue a whole new set of work for each and every thread in advance since they'll all need new work. I've also updated the cpumining code to properly work to the end of a work item (and not be counted as inefficient mining), and made some of the log updates more robust. Minerd should cope better with spotty connections under periods of server stress now, and rejects across longpolls should be rarer.

New windows binary:
http://ck.kolivas.org/apps/cpuminer-ycros-2011-07-04.zip

Known bugs:
It does not work with short options (only --long time options), and will crash with invalid options.
Sometimes there's a crash deep within libcurl that looks like this:
*** longjmp causes uninitialized stack frame ***
This happens deep within the libcurl code and appears to be not related to minerd at all. The only thing it seems I can do about it is move to a different library. This is the only recurring problem and because of it I put minerd to auto-restart for myself though it's quite rare (sometimes happens immediately on starting on windows).
11274  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 03, 2011, 10:28:47 AM
Yeah thanks. There is likely a logic error in the queueing of extra requests. I'm currently completely rewriting all that to preemptively request work before it's needed to help cope with dodgy network connectivity and other goodies. Actually it's complete but I'm testing it before pushing it.
11275  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 02, 2011, 02:44:58 PM
Sorry for some reason short options and invalid options are broken at the moment. Please use the long option names.
11276  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 02, 2011, 11:47:39 AM
Updated tree:

I've fixed a logic error in the queuing of extra work that would generate more rejects. No new windows binary as yet, sorry.
11277  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 02, 2011, 05:09:41 AM
Try decreasing --queue to 1 if you start getting more rejects. I'm not sure 2 is better than 1. More testing needed.
11278  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 02, 2011, 04:03:15 AM
Updated tree:

First windows builds courtesy of Ycros (Thanks!)
http://ck.kolivas.org/apps/cpuminer-ycros-2011-07-02-1350.zip

New option
--queue N
how many items of work to queue (default 2)

can speed up higher powered hardware.
11279  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 02, 2011, 02:41:55 AM
Updated tree:

Attribute correct GPU for accepted/rejected shares.
Check again that block hasn't gone stale if trying to resubmit after failed submit.
Make failure to load binary kernel go back to building from source instead of failing to initialise that GPU.
Increase gpu thread count back to 2 by default now that stale block control is more robust. This gives a demonstrable throughput benefit.

Currently working on: Incorporating windows build magic from Ycros (thanks!)

TODO:
Increase buffered work to configurable number instead of just 1 and perhaps default to 2.
Look at those other new kernel changes pointed out by znort987 (thanks!).
11280  Bitcoin / Mining software (miners) / Re: minerd - CPU and GPU mining software on: July 01, 2011, 11:17:13 PM
Thanks for your feedback. I believe I fixed the infinite rejects bug as well.

[2011-07-01 23:14:05] [1293.02 | 1065.65 Mhash/s] [5278 Accepted] [160 Rejected] [0 HW errors]

What next...
Pages: « 1 ... 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 [564] 565 566 567 568 569 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!