Bitcoin Forum
May 02, 2024, 02:13:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 »
11121  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 24, 2011, 01:00:36 AM
[2011-07-24 02:22:31] Failed to init GPU thread 0                                                                                                           

Aha. It never even started and you hit another bug trying to reference a thread that wasn't there. Luckily I have an idea as to why it didn't start. Perhaps osx doesn't like out of order execution enabled. Now updated in git, hopefully fixing both.
11122  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 10:52:03 PM
Latest git, on my 32bit Kubuntu 11.04 segfaults when executing "cgminer --help". GDB's backtrace returns:
Code:
#0  0x0024701a in strncpy () from /lib/i386-linux-gnu/libc.so.6
#1  0x08049e8d in show_algo (buf=0xbffff938 "\324\371\377\277t\332\022", algo=0x80714f8) at /usr/include/bits/string3.h:121
#2  0x0806c996 in opt_usage ()
#3  0x0806b509 in opt_usage_and_exit ()
#4  0x0806c5c5 in parse_one ()
#5  0x0806c1dc in opt_parse ()
#6  0x08050206 in main (argc=2, argv=0xbffffcb4) at main.c:3260
Thanks very much for the backtrace! Fixed in git.
11123  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 10:45:23 PM
I get a segfault, too (on OS X 10.6.8 ).
Here's the output + command line:
Code:
cgminer-1.4.0> gdb --args ./cgminer --url http://pit.deepbit.net:8332 -u XXX -p XXX --url http://swepool.net-u XXX -p XXX -T
[2011-07-23 17:35:59] Long-polling activated for http://pit.deepbit.net:8332/listenChannel                    
[2011-07-23 17:35:59] Creating Command Queue. (clCreateCommandQueue)                    
[2011-07-23 17:35:59] Failed to init GPU thread 0                    
[2011-07-23 17:35:59] Creating Command Queue. (clCreateCommandQueue)                    
[2011-07-23 17:35:59] Failed to init GPU thread 0                    
 GPU 0: [0.0 Mh/s] [Q:0  A:0  R:0  HW:0  E:0%  U:0.00/m]

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000038
text_print_status [inlined] () at main.c:738
738             printf(" %sPU %d: [%.1f Mh/s] [Q:%d  A:%d  R:%d  HW:%d  E:%.0f%%  U:%.2f/m]\n",
And the trace:
Code:
(gdb) backtrace
#0  text_print_status [inlined] () at main.c:738
#1  print_status [inlined] () at /Users/XXX/cgminer-1.4.0/main.c:804
#2  0x00000001000041ef in main (argc=1, argv=<value temporarily unavailable, due to optimizations>) at main.c:3516
Thanks! The backtrace helps to know why it segfaults (fixed in git now), but not why it's failing to create a command queue. I've tried backing out the compiler unloading patch as well in case that's the reason (changes are in git).
11124  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 02:28:58 PM
1.4.0 seg faults on OS X (Lion)

1.3.1 worked fine (with -v 1)

With 1.4.0, part of the screen draws before the segfault, so here is a screen grab in case the location that "Segmentation Fault 11" draws might be an indication of where the crash is happening (there are also some errors in the message log):

https://i.imgur.com/8EW8T.png

Note, if you are not aware, the phatk kernel in the latest poclbm and phoenix don't work with Apples Open CL implementation (and never have).  But your kernel did work until 1.4.0.  Not sure if your kernel changes in 1.4.0 triggered this problem or if it was changes in the C code that triggered the problem.  Let me know what you'd like me to do to help debug this, because cgminer is (was) one of the only miners working in OS X Lion.


I was aware phatk was incompatible with quite a few things, which is why I kept the poclbm kernel in there. Some of the detection changes might select phatk now if they hadn't previously, so perhaps that's the issue. Try explicitly setting the kernel (new feature in 1.4.0) to poclbm with -k poclbm
11125  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 02:03:30 PM
Re. config format: JSON + arrays is absolutely awesome + you don't have to parse it, because you are using a library, why even think of changing?
Uh yeah, about that. I haven't got the foggiest how to talk [to] that library yet... There was so much I wanted to code for cgminer first that I knew I could do before looking at it (as you can probably see from the hundreds of hours of code I've put in already).
11126  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 01:18:35 PM
I don't use an IDE. Just a text editor (kate) on linux.
11127  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 01:12:12 PM
I was considering that long term. It's just that with the code and features changing so rapidly, deciding on a format for the config file that's easy to use and parse is the real issue. Currently it accepts some basic json formatted config file and working on parsing code is not remotely my strong point  Undecided
11128  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 12:10:04 PM
Just to confirm..

the SSE4 implementation is intel only ?

Would you be able to make an SSE4a (amd) implementation ?
Yes it's intel only. No, I cannot make an amd implementation because I'm not an assembly coder, but I'm very happy to accept code from others (which is where the SSE4 implementation came from). SSE4 was only marginally faster than SSE2 anyway on my Intel based CPU.

NOTE: None of this has anything to do with GPU mining.
11129  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 11:14:12 AM
Well, I made it so it would compile even if your CPU didn't support the instruction, as requested. Now ytf it apparently doesn't support the instruction generated, when you have sse4a listed in your flags, is beyond me. Clearly whatever the instructions are in it, are not supported (and that explains why it refused to compile with it previously). Specifically it searches for SSE4.1 and I don't know how that differs from sse4.2 and sse4a (google might help). It will still detect what is supported and choose sse4 if it is there. If not supported, I suspect it will automatically default to sse2.

how much % faster than sse2 is sse4?

can i help in any other way reporting? ssh access to my PC?

sse4 subsets seems to be bit messy
http://en.wikipedia.org/wiki/SSE4



Your hardware simply does not support the full sse4 set so nothing I can do will make that sse4 code work on your machine.
11130  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 11:05:42 AM
checking for the version of libcurl... 7.15.5
CURLOPT_SOCKOPTFUNCTION (Option added in 7.15.6.)

Darn.
11131  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 10:29:57 AM
About speed in this new release:

Note there are a number of changes that will appear to affect reported speed in this release compared to previous ones.

First of all, there is a new kernel, which means that a new binary will be force built so the startup the first time you start it will be slower.

Second, the counters are no longer reset after all the threads have started - that was artificially raising the reported speed initially to ridiculous fake values.

Thus the reported speed will appear to be lower for a good 5 minutes or so. Give it some time.

However, the actual kernel code should be slightly faster now for 2 reasons.

First there is an updated kernel based on diapolo's modifications from here:
http://forum.bitcoin.org/index.php?topic=25860

Second, the code was audited to ensure I could allow the GPUs to run the code out-of-order.

Both of these should actually speed the kernel up.

Don't expect to see massive changes in speed, but any improvement is always welcome Smiley

Finally, dynamic mode will now throttle things much more dramatically under heavy user load to minimise the impact on the user experience. The intensity range used to go from 0-14, but now goes from -10 to +10. Levels above 10 were counter-productive, and in the opposite direction, some cards performed poorly even at intensity 0 (notably nvidia GPUs and lower spec 4x ATI cards).
11132  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 10:21:05 AM
Well, I made it so it would compile even if your CPU didn't support the instruction, as requested. Now ytf it apparently doesn't support the instruction generated, when you have sse4a listed in your flags, is beyond me. Clearly whatever the instructions are in it, are not supported (and that explains why it refused to compile with it previously). Specifically it searches for SSE4.1 and I don't know how that differs from sse4.2 and sse4a (google might help). It will still detect what is supported and choose sse4 if it is there. If not supported, I suspect it will automatically default to sse2.
11133  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 10:03:23 AM
Great work Con *THUMBS UP* ... I have one strange observation though. When I first start up 1.4 on Windows, it will send 1-3 shares to pool 1 even if pool 0 is up. Any idea?

Dia
Yes it tests any new pool added to the list to see if it's alive. Since it asks for work, it seems a shame to just throw that work out, so it adds it to its queue  Wink
11134  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 07:41:22 AM
New release 1.4.0

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

Win32 build:
http://ck.kolivas.org/apps/cgminer/cgminer-1.4.0-win32.zip

Summary: lots and lots of fixes and lots of new features via the menu Smiley

Version 1.4.0 - July 23, 2011

- Feature upgrade: Add keyboard input during runtime to allow modification of
and viewing of numerous settings such as adding/removing pools, changing
multipool management strategy, switching pools, changing intensiy, verbosity,
etc. with a simple keypress menu system.
- Free up resources/stale compilers.
- Kernels are safely flushed in a way that allows out of order execution to
work.
- Sometimes the cl compiler generates zero sized binaries and only a reboot
seems to fix it.
- Don't try to stop/cancel threads that don't exist.
- Only set option to show devices and exit if built with opencl support.
- Enable curses earlier and exit with message in main for messages to not be
lost in curses windows.
- Make it possible to enter server credentials with curses input if none are
specified on the command line.
- Abstract out a curses input function and separate input pool function to allow
for live adding of pools later.
- Remove the nil arguments check to allow starting without parameters.
- Disable/enable echo & cbreak modes.
- Add a thread that takes keyboard input and allow for quit, silent, debug,
verbose, normal, rpc protocol debugging and clear screen options.
- Add pool option to input and display current pool status, pending code to
allow live changes.
- Add a bool for explicit enabling/disabling of pools.
- Make input pool capable of bringing up pools while running.
- Do one last check of the work before submitting it.
- Implement the ability to live add, enable, disable, and switch to pools.
- Only internally test for block changes when the work matches the current pool
to prevent interleaved block change timing on multipools.
- Display current pool management strategy to enable changing it on the fly.
- The longpoll blanking of the current_block data may not be happening before
the work is converted and appears to be a detected block change.     Blank the
current block be
- Make --no-longpoll work again.
- Abstract out active pools count.
- Allow the pool strategy to be modified on the fly.
- Display pool information on the fly as well.
- Add a menu and separate out display options.
- Clean up the messy way the staging thread communicates with the longpoll
thread to determine who found the block first.
- Make the input windows update immediately instead of needing a refresh.
- Allow log interval to be set in the menu.
- Allow scan settings to be modified at runtime.
- Abstract out the longpoll start and explicitly restart it on pool change.
- Make it possible to enable/disable longpoll.
- Set priority correctly on multipools.     Display priority and alive/dead
information in display_pools.
- Implement pool removal.
- Limit rolltime work generation to 10 iterations only.
- Decrease testing log to info level.
- Extra refresh not required.
- With huge variation in GPU performance, allow intensity to go from -10 to +10.
- Tell getwork how much of a work item we're likely to complete for future
splitting up of work.
- Remove the mandatory work requirement at startup by testing for invalid work
being passed which allows for work to be queued immediately.     This also
removes the requirem
- Make sure intensity is carried over to thread count and is at least the
minimum necessary to work.
- Unlocking error on retry. Locking unnecessary anyway so remove it.
- Clear log window from consistent place. No need for locking since logging is
disabled during input.
- Cannot print the status of threads that don't exist so just queue enough work
for the number of mining threads to prevent crash with -Q N.
- Update phatk kernel to one with new parameters for slightly less overhead
again.     Make the queue kernel parameters call a function pointer to select
phatk or poclbm.
- Make it possible to select the choice of kernel on the command line.
- Simplify the output part of the kernel. There's no demonstrable advantage from
more complexity.
- Merge pull request #18 from ycros/cgminer
- No need to make leaveok changes win32 only.
- Build support in for all SSE if possible and only set the default according to
machine capabilities.
- Win32 threading and longpoll keepalive fixes.
- Win32: Fix for mangled output on the terminal on exit.
11135  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 03:04:20 AM
Just tested it:

[2011-07-23 12:59:10] 4 cpu miner threads started, using SHA256 'sse4_64' algorithm.                   

seems to work for me??

Make sure you do make clean && ./autogen.sh before ./configure when building from git?

 
11136  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 23, 2011, 12:23:07 AM
Would it be possible to add a multipool strategy that's similar to load balance, but with the first one having priory? So the second one is just active when the first one for some reason doesn't have enough work, for example because of latency.
That's basically failover that you're describing... That's the default policy. Or do you mean micro delays instead of macro ones?
11137  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 22, 2011, 11:39:10 PM
Latest git version segfaults when use -Q parameter at startup. Ubuntu 11.04, catalyst 11.6, 32bit
Thanks. Fixed in git.
11138  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 22, 2011, 10:28:22 PM
Looks like it never got the threads started. Grab a fresh tarball, uninstall sdk2.1 and install sdk2.4 perhaps. The phatk kernel in it may no longer be compatible with 2.1.

Sorry, this was stupid me, didn't export DISPLAY before I ran the miner. However, aren't you able to reproduce the segfault when you resize the terminal??? It happens to me both under screen and just like that on several machines (Ubuntu 10.04.3, RHEL5 etc.)
Nope. Cannot reproduce :\
11139  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 21, 2011, 11:36:48 PM
If you want it to work remotely, use
export DISPLAY=:0
after ssh'ing in.
That'll only work if an X server is active and the session belongs to the right user. In the case of a headless system, or a remote system that just doesn't run an X server (like most servers), a dummy X server might help. (Xvfb comes to mind.)
You can't GPU mine unless you're running an X server. It relies on the driver being in use to communicate with the card. While headless systems can have no monitors attached (like my own), they still need to be running X.
11140  Bitcoin / Mining software (miners) / Re: Official CGMINER thread - CPU/GPU miner in C for linux/windows/osx on: July 21, 2011, 11:07:52 PM
If you want it to work remotely, use
export DISPLAY=:0
after ssh'ing in.
Pages: « 1 ... 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!