Bitcoin Forum
May 02, 2024, 08:55:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 502 503 504 505 506 507 508 509 510 511 512 513 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 »
11021  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 11:13:38 AM
No, the source for the new phatk kernel came from phateus himself and is as up to date as it gets.
11022  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 11:11:01 AM
Oh yes there is no way to clean up after a dead GPU restarted thread. It's a dramatic manoeuvre where I disable the thread and create an entirely new context. See the problem is that when code hits the GPU and NEVER RETURNS there is no reliable way of resuscitating the code that called it. So I disable the thread (in case it ever comes back) and create an entirely new thread. If I free any of the ram from the original thread, it will often crash if the thread returns and the memory has been de-referenced from under it. This is all because it's done in c low level.

Executive summary: If you get lots of GPU sick scenarios that restart the GPU, decrease the intensity level with -I till it stops happening.
11023  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 10:18:08 AM
Now that one is a driver crash. Nothing to do with cgminer directly. It even caused a linux kernel warning about a prolonged soft lockup. Perhaps try a new kernel ati driver and ati sdk.
11024  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 09:49:08 AM
I've noticed something strange about the Windows version of cgminer.  With only GPU mining enabled, there are 6 instances of the program running; 5 of which are using 1,216K of memory and 0% CPU.  Is there a purpose for these threads or is your miner having accidental child processes?
They are most definitely there for a purpose. 2 per GPU, Workio thread, staging thread, longpoll thread, watchdog thread, gpu restart thread, cpu restart thread, and then there's a thread spawned (and then killed) for every getwork request and every submit work.
11025  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 09:18:07 AM
The new kernel works things -even harder- so if you were getting sick GPUs before, you still will now. The difference is it should recover by itself. If you get sick GPUs all the time, I suggest dropping the intensity down till you find where they stop being sick.
11026  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 07:18:02 AM
Too good to pass up a new release even with only 2 real changes.

Version 1.5.6 (you all know where by now - links in first post).

Executive summary: New faster phatk kernel (2.2) courtesy of phateus porting it (thanks!) and with my own custom modifications on top. Fixed multiple pool longpoll management.
11027  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 06:46:36 AM
New phatk and poclbm kernels in git tree for those who've been waiting for them.

Hopefully new release just around the corner with that Smiley
11028  Bitcoin / Mining software (miners) / Re: Modified Kernel for Phoenix 1.5 on: August 17, 2011, 06:44:39 AM
If you want to restore your tree without losing your changes, create a new branch and reset the master to the last one before your commits.

git checkout master
git branch newphatk
git reset --hard 58eb4d58599521933a3fef599e1dcba4f996dadc
git pull

that will pull my changes into the master branch and your personal changes will be in newphatk. Unfortunately your github account has a messed up master now so

git push -f

will force the changes to propagate. Do not use this command normally as it makes it impossible for people pulling from your branch to keep in sync.
11029  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 05:52:29 AM
Apologize if it was already addressed or noted somewhere but I cannot seem to find it.  Is it possible to set Intensity per GPU?  If not, would that be something difficult to add?  I like being able to manage each GPU individually and in my case, one of my GPUs isn't always a dedicated miner while the other is.
Unfortunately there is not a way to do that at the moment. In the readme you'll see it recommends running 2 instances of cgminer selecting which GPUs to use. Use one instance in dynamic mode and the other with a set intensity.
11030  Bitcoin / Mining software (miners) / Re: Modified Kernel for Phoenix 1.5 on: August 17, 2011, 05:14:20 AM
Seems to me like you've got it all under control, so I'll leave you to finish up. Thanks for your involvement. However I don't want multiple phatk kernels so just replace the current one in-situ and don't bother enumming a different kernel. As for the output code, I prefer to use 4k so feel free to do it your way, but be aware I plan to change it back.

Ok, the source is up... I am trying to figure out how to compile this for windows without the cygwin layer (I really haven't done any of this before... I am soooo lost)...

https://github.com/Phateus/cgminer

ckolivas... if you want to merge this into your code at some point, let me know what I have to do... I literally installed git yesterday, and there is only so much you can learn on the internet in a day ;-)

As for the buffer, my kernel only uses WORKSIZE+1 parts of your buffer, but I left the buffer size intact.
Very good work. Nice of you to figure out how to do git and all as well. Don't worry about the merge, I've taken care of everything and cherry picked your changes as I needed to. I've modified a few things too to be consistent with cgminer's code and there is definitely a significant speed advantage thanks to your changes. Note that if you're ever working on git doing your own changes, do them to a branch that's not called master as you may end up making it impossible to pull back my changes since I won't necessarily take all your code. Thanks again, and I'm sure the cgminer users will be most grateful. Smiley
11031  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 17, 2011, 12:01:04 AM
Oh, it is not really working for me. I am still having difficulties with cgminer on Mac mini. It shows 4124 Megahash/s which is not realistic on my Mac mini. (DiableMiner shows me 48350 khash/sec)
During 17 minutest there were still 0 accepted shares.

Code:
localhost:cgminer thomas$ ./cgminer -o http://api2.bitcoin.cz:8332 -u name.name-p password -I 8
[2011-08-17 01:47:41]
Summary of runtime statistics:
                    
[2011-08-17 01:47:41] Started at [2011-08-17 01:30:37]                    
[2011-08-17 01:47:41] Runtime: 0 hrs : 17 mins : 3 secs                    
[2011-08-17 01:47:41] Average hashrate: 4124.6 Megahash/s                    
[2011-08-17 01:47:41] Queued work requests: 11733                    
[2011-08-17 01:47:41] Share submissions: 0                    
[2011-08-17 01:47:41] Accepted shares: 0                    
[2011-08-17 01:47:41] Rejected shares: 0                    
[2011-08-17 01:47:41] Hardware errors: 0                    
[2011-08-17 01:47:41] Efficiency (accepted / queued): 0%                    
[2011-08-17 01:47:41] Utility (accepted shares / min): 0.00/min
                    
[2011-08-17 01:47:41] Discarded work due to new blocks: 0                    
[2011-08-17 01:47:41] Stale submissions discarded due to new blocks: 0                    
[2011-08-17 01:47:41] Unable to get work from server occasions: 0                    
[2011-08-17 01:47:41] Work items generated locally: 0                    
[2011-08-17 01:47:41] Submitting work remotely delay occasions: 0                    
[2011-08-17 01:47:41] New blocks detected on network: 19
                    
[2011-08-17 01:47:41] Summary of per device statistics:
                    
[2011-08-17 01:47:41]  GPU 0: [4394.3 / 4124.6 Mh/s] [Q:11732  A:0  R:0  HW:0  E:0%  U:0.00/m]    
19 new blocks in 17 minutes? That doesn't even sound like bitcoin...
11032  Bitcoin / Mining software (miners) / Re: Modified Kernel for Phoenix 1.5 on: August 16, 2011, 10:18:23 PM
Seems to me like you've got it all under control, so I'll leave you to finish up. Thanks for your involvement. However I don't want multiple phatk kernels so just replace the current one in-situ and don't bother enumming a different kernel. As for the output code, I prefer to use 4k so feel free to do it your way, but be aware I plan to change it back.
11033  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 09:48:34 PM
Do 'SICK' GPU's ever get restarted? Sometimes I get 'Thread 3 idle for more than 60 seconds, GPU 1 declared SICK!' and mining stops on that GPU. If I restart it manually, work resumes just fine, so I guess it cgminer should try to restart the GPU automagically? I waited 3 minutes and the GPU was not restarted, maybe there is a bigger timeout?

Edit: When it gets marked as DEAD, it does get restarted immediately.
Yes indeed, that's what I've spent weeks working on to get right. To restart it if it can only. The 5 minutes was a nominal choice based on the theory that if it gets sick, giving it a few minutes to cool down will make it more likely to respond. Note that if it gets sick a LOT, you may benefit from decreasing the intensity and sacrificing a few MH just to get a more stable throughput (eg -I 7 instead of Cool.
11034  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 09:45:51 PM
Hi,
I noticed that i now get a lot of longpoll errors from slush's pool (for some reason) but BTCGuild seems to be working fine.
However i noticed that it wasnt obvious which pool it was that was giving me the error in a multipool setup so i would appreciate if you incorporated this small change in the next release.

diff old_main.c main.c
3795c3795
<                                       "longpoll failed, sleeping for 30s");
---
>                                       "longpoll failed for %s, sleeping for 30s",lp_url);

It just turns this:
   longpoll failed, sleeping for 30s
into this:
   Longpoll failed for http://api2.bitcoin.cz:8332/LP, sleeping for 30s


Best
/GoK

Good idea. Though I might just put the pool number rather than the whole URL because the URL can be quite long leading to a very long log message. ?
11035  Bitcoin / Mining software (miners) / Re: Modified Kernel for Phoenix 1.5 on: August 16, 2011, 12:07:38 PM
Alright... I'm getting a little delayed on the prerelease for cgminer... mingw is a pain in the ass.. trying a full cygwin install next...

Bear with me, hopefully I'll get it running tomorrow.

-Phateus
You could just tell me what to do to interface it with cgminer (i.e. what new variables you want) and I'd copy most of your kernel across. Only the return code and define macros are actually different in cgminer in the kernel itself.
11036  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 07:17:31 AM
New version. NOTE the windows binary should CPU mine again (-O3 was unstable, but -O2 works) and includes a cpumine only executable as well.

Source:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5.tar.bz2
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5.tar.lrz

Ubuntu:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5-x86_64-built.tar.bz2
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5-x86_64-built.tar.lrz

Windows 32 bit binary:
http://ck.kolivas.org/apps/cgminer/cgminer-1.5.5-win32.zip


Version 1.5.5 - August 16, 2011

- Rework entirely the GPU restart code. Strike a balance between code that
re-initialises the GPU entirely so that soft hangs in the code are properly
managed, but if a GPU is completely hung, the thread restart code fails
gracefully, so that it does not take out any other code or devices. This will
allow cgminer to keep restarting GPUs that can be restarted, but continue
mining even if one or more GPUs hangs which would normally require a reboot.
- Add --submit-stale option which submits all shares, regardless of whether they
would normally be considered stale.
- Keep options in alphabetical order.
- Probe for slightly longer for when network conditions are lagging.
- Only display the CPU algo when we're CPU mining.
- As we have keepalives now, blaming network flakiness on timeouts appears to
have been wrong.     Set a timeout for longpoll to 1 hour, and most other
network connectivity to 1 minute.
- Simplify output code and remove HW errors from CPU stats.
- Simplify code and tidy output.
- Only show cpu algo in summary if cpu mining.
- Log summary at the end as per any other output.
- Flush output.
- Add a linux-usb-cgminer guide courtesy of Kano.

Courtesy of znort:
    Add automated benchmark of the CPU hashers
   
        The --algo switch now accepts the "auto" argument.
   
        When "auto" is passed to --algo, cgminer starts by benchmarking
        all the CPU algorithms it nows about and picks the fastest.
   
        This is useful for benchmarking, but also for folks who run
        cgminer on a large number of heterogeneous computers because
        it saves them from having to configure each instance optimally.
   
        Caveat emptor: depending on the platform, some algorithms will
        fail with "illegal instruction" (e.g. via padlock code on non via
        platforms, or SSE4 code on non SSE4 platforms).
   
        To protect against this, cgminer runs the benchmarks in a child
        process. The crash, if any occurs in the child, and the parent
        marks this algo as "fails" and continues benchmarking the next
        algorithm.
11037  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 16, 2011, 05:46:28 AM
You need pkg-config installed.
11038  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 15, 2011, 11:29:14 PM
Is there anything we can do to help with this sort of problem where it discards shares on a pool that pays for stales?

Quote
[2011-08-16 07:38:37] Pool 0 communication failure, caching submissions
[2011-08-16 07:38:43] Stale share detected, discarding
Well it's the wrong thing for the pool to be accepting stale shares since that work is likely useless, so it's in the pool's best interest to not do so. On the other hand, if you're mining for such a pool, I guess you get to "cheat" with this useless work, so I can see how it would be an advantage to you. I could easily add another switch to the command line such as --submit-stale .

edit: This option has been committed to the tree.
11039  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 15, 2011, 03:02:37 AM
Okay so I had some generous people offer me BTC online to get the windows binary version working, and I DID see someone offer a BTC bounty to get the windows binary working, so I've fluffed around for the last 2 days on a windows virtual machine to build some win32 binaries.

http://ck.kolivas.org/apps/cgminer/cgminer-1.5.4-win32.zip

Hopefully people appreciate the effort.
11040  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: August 15, 2011, 12:25:31 AM
I see. Well I can't even get it compiling on mingw32. Can't figure out how to install the remaining dependencies of libcurl though I've installed it 10 different ways and even ended up building it myself which took hours. Gotta remember I haven't used windows in over a decade in any meaningful way.
Pages: « 1 ... 502 503 504 505 506 507 508 509 510 511 512 513 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!