Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 844. (Read 5805998 times)

full member
Activity: 158
Merit: 100
aquí dice algo personal.
Hi again.

I was try to use it on my netbook and found it depends on OpenCL. Is possible to override that need? I really want to use it because there is no good miners on CPU instead of ufasoft miner and by now is impossible to use it on Tycho's pool. I ask because I don't know who is invovled on the windows port.
member
Activity: 98
Merit: 10
Nice,Think I found my new default miner Wink

First try letting it use all default settings it would only get 209 mhash/s

Then using -n -w 128 -I 9 options got it up to 263 mhash/s
Then replacing poclbm and phatk110711 with the modded phatk brang the speed back up to where phoenix was with spikes going 2mhash/s faster.
sr. member
Activity: 418
Merit: 250
I love the robustness of it, and the many options to configure.  However, coming from Phoenix/phatk, I have a few questions:

1.) I see there are two kernel cl files, how do we go about selecting which gets used?  How do we add different ones to use?

2.) On my dedicated 5850 mining box, phoenix 1.50/phatk gets 400 MH/s,  I'm trying to match that with cgminer.  So far, by using the -n option and the -I 8 option, I've gotten it up to 395 MH/s, how do I make up the extra 5 MH/s difference?

Thanks for your hard work, this miner is really a big step forward compared to phoenix  Grin
sr. member
Activity: 1204
Merit: 288
This program just does not work for me under Windows, Windows error each and every time
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
There's something wrong with the increment of work in the cpu miner thread. Working on it...
full member
Activity: 373
Merit: 100
I don't know about GPU mining, but for CPU mining, the hardcoded 60s restart interval is definitely too strict. Maybe using scantime as the base for the restart interval might be a better idea? (Something like max{60s, scantime + 10s} seems like a decent idea to me, at least for CPUs.)

Also, I just noticed when enabling debug output, the values displayed for hashing speed seem somewhat unrealistic:
Code:
--------------------------------------------------------------------------------
 CPU 0: [0.6 Mh/s] [Q:1  A:0  R:0  HW:0  E:0%  U:0.00/m]
 CPU 1: [0.5 Mh/s] [Q:1  A:0  R:0  HW:0  E:0%  U:0.00/m]
--------------------------------------------------------------------------------

[2011-07-14 03:03:03] Long-polling activated for http://swepool.net:8337/LP
[2011-07-14 03:03:09] [(5s):0.0  (avg):0.0 Mh/s] [Q:2  A:0  R:0  HW:0  E:0%  U:0.00/m]
[2011-07-14 03:03:15] [(5s):0.0  (avg):0.0 Mh/s] [Q:2  A:0  R:0  HW:0  E:0%  U:0.00/m]
[2011-07-14 03:03:21] [(5s):0.0  (avg):0.0 Mh/s] [Q:2  A:0  R:0  HW:0  E:0%  U:0.00/m]
[2011-07-14 03:03:27] [(5s):0.0  (avg):0.0 Mh/s] [Q:2  A:0  R:0  HW:0  E:0%  U:0.00/m]
[2011-07-14 03:03:33] [(5s):0.0  (avg):0.0 Mh/s] [Q:2  A:0  R:0  HW:0  E:0%  U:0.00/m]
[2011-07-14 03:03:35] [thread 1: 16777216 hashes, 530737 khash/sec]
[2011-07-14 03:03:36] [thread 1: 524288 hashes, 609959 khash/sec]
[2011-07-14 03:03:37] [thread 1: 524288 hashes, 599290 khash/sec]
[2011-07-14 03:03:37] [thread 0: 16777216 hashes, 499222 khash/sec]
[2011-07-14 03:03:38] [thread 1: 524288 hashes, 538693 khash/sec]
[2011-07-14 03:03:38] [thread 0: 493448 hashes, 404442 khash/sec]
[2011-07-14 03:03:39] [thread 1: 524288 hashes, 475726 khash/sec]
[2011-07-14 03:03:39] [(5s):3.4  (avg):1.0 Mh/s] [Q:2  A:0  R:0  HW:0  E:0%  U:0.00/m]
[2011-07-14 03:03:39] [thread 0: 493448 hashes, 570370 khash/sec]
[2011-07-14 03:03:40] [thread 1: 524288 hashes, 594254 khash/sec]
[2011-07-14 03:03:40] [thread 0: 493448 hashes, 713252 khash/sec]
[2011-07-14 03:03:41] [thread 0: 493448 hashes, 693377 khash/sec]
[2011-07-14 03:03:41] [thread 1: 524288 hashes, 481640 khash/sec]
[2011-07-14 03:03:41] [thread 0: 493448 hashes, 591000 khash/sec]
(also, note the time values - they seem a *little* suspicious...)
hero member
Activity: 737
Merit: 500
I was giving this a test run today and coincidentally had a complete internet connectivity failure for 3-4 hours due to problems with my ISP.   Because the ISP problem was long, I would expect that there were not only network connectivity problems but that also at some point DNS requests started failing as well because the cache expired and it couldn't do new lookups.  Obviously, during the Internet downtime, the miner wasn't working, but after the ISP problems resolved themselves, cgminer did not recover.  I had to kill it and start it again for it to start working.  I didn't think to copy the then-current screen output, but I do remember that the screen was filled with messages about the miner being idle for more than 60 seconds (that was recently added to address OpenCL or the GPU breaking).   

In contrast, the one machine that I was still running poclbm on recovered as soon as the Internet connection was back up.
Thanks. I was very aggressive with trying to make the idle threads restart and made it do it indiscriminately. I'll add some more logic to know that it's just the network down in the future and not restart the threads from scratch.

I don't know if the idle threads restart was causing problems or not.  The biggest problem was that after the network came back, it didn't start doing getworks again to restart mining.
full member
Activity: 157
Merit: 100
sudo apt-get install libncurses-dev give the following result:


martin@latrop:~/cgminer/cgminer-1.2.4$ LANG=C sudo apt-get install libncurses-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
libncurses5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 180 not upgraded.
martin@latrop:~/cgminer/cgminer-1.2.4$
,

So, the package is already installed. Other suggestions?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I was giving this a test run today and coincidentally had a complete internet connectivity failure for 3-4 hours due to problems with my ISP.   Because the ISP problem was long, I would expect that there were not only network connectivity problems but that also at some point DNS requests started failing as well because the cache expired and it couldn't do new lookups.  Obviously, during the Internet downtime, the miner wasn't working, but after the ISP problems resolved themselves, cgminer did not recover.  I had to kill it and start it again for it to start working.  I didn't think to copy the then-current screen output, but I do remember that the screen was filled with messages about the miner being idle for more than 60 seconds (that was recently added to address OpenCL or the GPU breaking).   

In contrast, the one machine that I was still running poclbm on recovered as soon as the Internet connection was back up.
Thanks. I was very aggressive with trying to make the idle threads restart and made it do it indiscriminately. I'll add some more logic to know that it's just the network down in the future and not restart the threads from scratch.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
hero member
Activity: 737
Merit: 500
I was giving this a test run today and coincidentally had a complete internet connectivity failure for 3-4 hours due to problems with my ISP.   Because the ISP problem was long, I would expect that there were not only network connectivity problems but that also at some point DNS requests started failing as well because the cache expired and it couldn't do new lookups.  Obviously, during the Internet downtime, the miner wasn't working, but after the ISP problems resolved themselves, cgminer did not recover.  I had to kill it and start it again for it to start working.  I didn't think to copy the then-current screen output, but I do remember that the screen was filled with messages about the miner being idle for more than 60 seconds (that was recently added to address OpenCL or the GPU breaking).   

In contrast, the one machine that I was still running poclbm on recovered as soon as the Internet connection was back up.
full member
Activity: 373
Merit: 100
sr. member
Activity: 252
Merit: 250
I success compile it and run it.

But... I have a lot of rejections: 8 rej. for 1 acc. Mining on us.eclipsemc.com. "poclbm" gives a normal rate of ~2% rejections.
full member
Activity: 126
Merit: 100
Because it was not mentioned that you need to add the -Lpdcurses flag in ./configure to make the program compile.
full member
Activity: 157
Merit: 100
Hiho,

i tried to install the miner under ubuntu natty (amd64) and get the following error message:

OpenCL: NOT FOUND. GPU mining support DISABLED.

(OpenCL is installed, otherwise the phoenix miners wouldn't work)

What should i do?
Did you read the README? There are instructions on how to make it work in there.

Yes i read it: There are instructions on how to include the APPSDK but that doesn't solve the Problem.
I started the installation process with:
CFLAGS="-O3 -Wall -march=native -I/home/XXX/AMD-APP-SDK-v2.4-lnx64/" LDFLAGS="-L/home/XXX/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" ./configure
I can't see anything wrong with that, and since I don't have any OpenCL capable hardware I can play with, the only thing I can suggest is trying out a different version of the SDK (from what I've read, v2.1 is supposed to be fastest for mining, but I've no way to try this).
If that doesn't work, you could try PMing you complete configure output to ckolivas in hopes that he'll be able to help you.

Okay i found a solution:

I installed the opencl-headers package from debian on my ubuntu... Now the configure process works. But i am not able to "make" the installation.

Code:
martin@latrop:~/cgminer/cgminer-1.2.4$ sudo make install
[sudo] password for martin:
Making install in lib
make[1]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
make  install-recursive
make[2]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
make[3]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
make[4]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
make[4]: Für das Ziel »install-exec-am« ist nichts zu tun.
make[4]: Für das Ziel »install-data-am« ist nichts zu tun.
make[4]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
make[3]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
make[2]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
make[1]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/lib'
Making install in compat
make[1]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat'
Making install in jansson
make[2]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat/jansson'
make[3]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat/jansson'
make[3]: Für das Ziel »install-exec-am« ist nichts zu tun.
make[3]: Für das Ziel »install-data-am« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat/jansson                              '
make[2]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat/jansson                              '
make[2]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat'
make[3]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat'
make[3]: Für das Ziel »install-exec-am« ist nichts zu tun.
make[3]: Für das Ziel »install-data-am« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat'
make[2]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat'
make[1]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/compat'
Making install in ccan
make[1]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/ccan'
make[2]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/ccan'
make[2]: Für das Ziel »install-exec-am« ist nichts zu tun.
make[2]: Für das Ziel »install-data-am« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/ccan'
make[1]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4/ccan'
make[1]: Betrete Verzeichnis '/home/martin/cgminer/cgminer-1.2.4'
gcc  -O3 -Wall -march=native -I/home/martin/AMD-APP-SDK-v2.4-lnx64/ -pthread -L/                              home/martin/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/ -o cgminer cgminer-main.o cgminer                              -util.o cgminer-ocl.o cgminer-findnonce.o cgminer-sha256_generic.o cgminer-sha25                              6_4way.o cgminer-sha256_via.o cgminer-sha256_cryptopp.o cgminer-sha256_sse2_amd6                              4.o -lcurl -Wl,-Bsymbolic-functions -L/usr/lib/x86_64-linux-gnu compat/jansson/l                              ibjansson.a -lpthread -lOpenCL lib/libgnu.a ccan/libccan.a
cgminer-main.o: In function `submit_upstream_work':
main.c:(.text+0x194e): undefined reference to `wmove'
main.c:(.text+0x1961): undefined reference to `wattr_on'
main.c:(.text+0x1974): undefined reference to `wprintw'
main.c:(.text+0x1987): undefined reference to `wattr_off'
main.c:(.text+0x199a): undefined reference to `wmove'
main.c:(.text+0x19b0): undefined reference to `whline'
main.c:(.text+0x19c3): undefined reference to `wmove'
main.c:(.text+0x19db): undefined reference to `wprintw'
main.c:(.text+0x19e7): undefined reference to `wclrtoeol'
main.c:(.text+0x19fa): undefined reference to `wmove'
main.c:(.text+0x1a10): undefined reference to `whline'
main.c:(.text+0x1a26): undefined reference to `wmove'
main.c:(.text+0x1a3c): undefined reference to `whline'
main.c:(.text+0x1a88): undefined reference to `wmove'
main.c:(.text+0x1ace): undefined reference to `wprintw'
main.c:(.text+0x1ada): undefined reference to `wclrtoeol'
main.c:(.text+0x1ae6): undefined reference to `wrefresh'
main.c:(.text+0x1c2d): undefined reference to `wmove'
cgminer-main.o: In function `hashmeter':
main.c:(.text+0x212a): undefined reference to `wmove'
main.c:(.text+0x213d): undefined reference to `wattr_on'
main.c:(.text+0x2150): undefined reference to `wprintw'
main.c:(.text+0x2163): undefined reference to `wattr_off'
main.c:(.text+0x2176): undefined reference to `wmove'
main.c:(.text+0x218c): undefined reference to `whline'
main.c:(.text+0x219f): undefined reference to `wmove'
main.c:(.text+0x21b7): undefined reference to `wprintw'
main.c:(.text+0x21c3): undefined reference to `wclrtoeol'
main.c:(.text+0x21d6): undefined reference to `wmove'
main.c:(.text+0x21ec): undefined reference to `whline'
main.c:(.text+0x2202): undefined reference to `wmove'
main.c:(.text+0x2218): undefined reference to `whline'
main.c:(.text+0x225f): undefined reference to `wmove'
main.c:(.text+0x229f): undefined reference to `wprintw'
main.c:(.text+0x22ab): undefined reference to `wclrtoeol'
main.c:(.text+0x22b7): undefined reference to `wrefresh'
main.c:(.text+0x23e3): undefined reference to `wmove'
cgminer-main.o: In function `watchdog_thread':
main.c:(.text+0x2617): undefined reference to `wmove'
main.c:(.text+0x265e): undefined reference to `wprintw'
main.c:(.text+0x266a): undefined reference to `wclrtoeol'
main.c:(.text+0x2686): undefined reference to `wmove'
main.c:(.text+0x2699): undefined reference to `wattr_on'
main.c:(.text+0x26ac): undefined reference to `wprintw'
main.c:(.text+0x26bf): undefined reference to `wattr_off'
main.c:(.text+0x26d2): undefined reference to `wmove'
main.c:(.text+0x26e8): undefined reference to `whline'
main.c:(.text+0x26fb): undefined reference to `wmove'
main.c:(.text+0x2713): undefined reference to `wprintw'
main.c:(.text+0x271f): undefined reference to `wclrtoeol'
main.c:(.text+0x2732): undefined reference to `wmove'
main.c:(.text+0x2748): undefined reference to `whline'
main.c:(.text+0x275e): undefined reference to `wmove'
main.c:(.text+0x2774): undefined reference to `whline'
main.c:(.text+0x27b1): undefined reference to `wmove'
main.c:(.text+0x2800): undefined reference to `wredrawln'
main.c:(.text+0x2814): undefined reference to `wredrawln'
main.c:(.text+0x2859): undefined reference to `wresize'
cgminer-main.o: In function `log_curses':
main.c:(.text+0x3dad): undefined reference to `vwprintw'
main.c:(.text+0x3db9): undefined reference to `wrefresh'
cgminer-main.o: In function `main':
main.c:(.text+0x46cf): undefined reference to `delwin'
main.c:(.text+0x46db): undefined reference to `delwin'
main.c:(.text+0x46e0): undefined reference to `endwin'
main.c:(.text+0x46e7): undefined reference to `stdscr'
main.c:(.text+0x46ec): undefined reference to `wrefresh'
main.c:(.text+0x4a8b): undefined reference to `initscr'
main.c:(.text+0x4ab7): undefined reference to `newwin'
main.c:(.text+0x4ad1): undefined reference to `newwin'
main.c:(.text+0x4ae5): undefined reference to `idlok'
main.c:(.text+0x4af6): undefined reference to `scrollok'
main.c:(.text+0x4b07): undefined reference to `leaveok'
main.c:(.text+0x4b18): undefined reference to `leaveok'
main.c:(.text+0x4b74): undefined reference to `wmove'
main.c:(.text+0x4bc0): undefined reference to `wprintw'
main.c:(.text+0x4bcc): undefined reference to `wclrtoeol'
main.c:(.text+0x4bd8): undefined reference to `wrefresh'
main.c:(.text+0x4c13): undefined reference to `wmove'
main.c:(.text+0x4c26): undefined reference to `wattr_on'
main.c:(.text+0x4c39): undefined reference to `wprintw'
main.c:(.text+0x4c4c): undefined reference to `wattr_off'
main.c:(.text+0x4c5f): undefined reference to `wmove'
main.c:(.text+0x4c75): undefined reference to `whline'
main.c:(.text+0x4c88): undefined reference to `wmove'
main.c:(.text+0x4ca0): undefined reference to `wprintw'
main.c:(.text+0x4cac): undefined reference to `wclrtoeol'
main.c:(.text+0x4cbf): undefined reference to `wmove'
main.c:(.text+0x4cd5): undefined reference to `whline'
main.c:(.text+0x4ceb): undefined reference to `wmove'
main.c:(.text+0x4d01): undefined reference to `whline'
main.c:(.text+0x4d4b): undefined reference to `wmove'
collect2: ld returned 1 exit status
make[1]: *** [cgminer] Fehler 1
make[1]: Verlasse Verzeichnis '/home/martin/cgminer/cgminer-1.2.4'
make: *** [install-recursive] Fehler 1
martin@latrop:~/cgminer/cgminer-1.2.4$

newbie
Activity: 17
Merit: 0
win32 version report:

v1.2.4 - cannot init the gfx - compiles the kernel but spits "No best_g found! Error in OpenCL code?" error in debug mode. Running for several minutes generates only HW errors.

regarding all windows versions so far:
only GPU 0 and CPU 0 threads show in both ncurses header and in normal output.

when starting with "-g 2 -t 4" (using all cores) - completely hogs the gpu mining and only cpu is giving results. even with "-t 3" total performance is worse than GPU alone.
also, CPU threads use exactly one cpu core (which is logical and good, but I'm not sure its the intended behavior). with "-t 1" cpu usage is 25%, "-t 2" 50% etc...

hopefully that was clear enough for a bug report :p
full member
Activity: 373
Merit: 100
Hiho,

i tried to install the miner under ubuntu natty (amd64) and get the following error message:

OpenCL: NOT FOUND. GPU mining support DISABLED.

(OpenCL is installed, otherwise the phoenix miners wouldn't work)

What should i do?
Did you read the README? There are instructions on how to make it work in there.

Yes i read it: There are instructions on how to include the APPSDK but that doesn't solve the Problem.
I started the installation process with:
CFLAGS="-O3 -Wall -march=native -I/home/XXX/AMD-APP-SDK-v2.4-lnx64/" LDFLAGS="-L/home/XXX/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" ./configure
I can't see anything wrong with that, and since I don't have any OpenCL capable hardware I can play with, the only thing I can suggest is trying out a different version of the SDK (from what I've read, v2.1 is supposed to be fastest for mining, but I've no way to try this).
If that doesn't work, you could try PMing you complete configure output to ckolivas in hopes that he'll be able to help you.
sr. member
Activity: 378
Merit: 250
@d3m0n1q_733rz is that different to the existing "atom" asm code in cgminer? does it need specific cpu support, and if so I'll need to have it as a separate optional assembly miner.

New windows build.
http://ck.kolivas.org/apps/cgminer-1.2.4-win32.zip

New Source tarball.
http://ck.kolivas.org/apps/cgminer-1.2.4-1.tar.bz2

Both include the new dynamic feature. Disable for dedicated mining!

Discussed the other problem of TurdHurdur's (off the forum) and it turns out it was missing the kernel file because he had done "make install" which doesn't really work properly unless you run from the directory you install to. The files should be all together in the same directory.

Actually, the use of movntdqa does make this require SSE4.1 as far as I can tell.  There's always the off chance that the movntdqa will be translated to movdqa if SSE4.1 isn't available, but I can't seem to test that beyond leaving out -msse4.1 from the CFLAGS which appears to work.
As far as being different to the existing "atom" asm code, I've moved commands around structurally to take better advantage of how the hardware prefetch works and changed the act of moving data from memory into the registers to avoid caching and increase throughput (movntdqa).  So the code itself is still pretty much the same, just added a few small optimizations to take advantage of the hardware's capabilities.  I recommend calling it SSE4_64_atom or simply SSE4_64.

Now, I want to point out that there is another (and possibly better) way of coding the math calculations to take advantage of SSE3's (and SSSE3's) horizontal math and do more addition calculations all at once.  But I suck at coding myself and really only excel in debugging and modifying at the smaller scale.  But you guys are free to figure it out.  And the only reason I haven't played around with YMM (256) registers is because only the absolute newest processors seem to support them.

Try out the modified code and let me know if it works for anyone else besides myself.
full member
Activity: 157
Merit: 100
Hiho,

i tried to install the miner under ubuntu natty (amd64) and get the following error message:

OpenCL: NOT FOUND. GPU mining support DISABLED.

(OpenCL is installed, otherwise the phoenix miners wouldn't work)

What should i do?
Did you read the README? There are instructions on how to make it work in there.

Yes i read it: There are instructions on how to include the APPSDK but that doesn't solve the Problem.
I started the installation process with:
CFLAGS="-O3 -Wall -march=native -I/home/XXX/AMD-APP-SDK-v2.4-lnx64/" LDFLAGS="-L/home/XXX/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" ./configure


hero member
Activity: 588
Merit: 500
Interesting issue.

cgminer is using 100% of a CPU core when mining on an NVIDIA GTX 460. Using driver 275.09.07 and CUDA 3.2.
Jump to: