Author

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

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.
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.
sr. member
Activity: 262
Merit: 250
Dubs Get
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?
newbie
Activity: 35
Merit: 0
I'm having trouble using this as a CPU miner.

I'm using the following command line:
     cgminer.exe --url *** --userpass ***:***  -t 7 -g 0

And see the following on my screen.  This is a Windows 7 x64bit Dual Quad Core Xenon machine.  334 Mh/s doesn't seem real.

cgminer version 1.2.4
--------------------------------------------------------------------------------
Totals: [(5s):1.5  (avg):313.2 Mh/s] [Q:14  A:0  R:0  HW:0  E:0%  U:0.00/m]
--------------------------------------------------------------------------------

CPU 0: [334.1 Mh/s] [Q:8  A:0  R:0  HW:0  E:0%  U:0.00/m]
--------------------------------------------------------------------------------

[2011-07-13 11:19:49] Attempting to restart thread 0, idle for more than 60 seconds
[2011-07-13 11:19:49] Thread 0 restarted
[2011-07-13 11:19:49] Attempting to restart thread 1, idle for more than 60 seconds
[2011-07-13 11:19:49] Thread 1 restarted
[2011-07-13 11:19:49] Attempting to restart thread 2, idle for more than 60 seconds
[2011-07-13 11:19:49] Thread 2 restarted
[2011-07-13 11:19:49] Attempting to restart thread 3, idle for more than 60 seconds
[2011-07-13 11:19:49] Thread 3 restarted
[2011-07-13 11:19:49] Attempting to restart thread 4, idle for more than 60 seconds
[2011-07-13 11:19:49] Thread 4 restarted
[2011-07-13 11:19:49] Attempting to restart thread 5, idle for more than 60 seconds
[2011-07-13 11:19:49] Thread 5 restarted
[2011-07-13 11:19:49] Attempting to restart thread 6, idle for more than 60 seconds
[2011-07-13 11:19:49] Thread 6 restarted

Also, when I Ctrl-Break out of the program, the cursor is no longer shown in the Cmd.exe window.

Help!

--E
sr. member
Activity: 252
Merit: 250
It looks awesome!

I'll give a try quickly.
full member
Activity: 182
Merit: 100
Suggestions, i thought id post it here so it doesnt get lost/forgotten on IRC.

With quiet mode, if enter is pressed, stats are shown.
Add running or start time somewhere.
Abbreviate the stats with verbose (or was it debug), i dont think this is required and just makes things difficult on a small termnial window.
Final detailed stats on exit.

What happens when i set the intensity and leave dynamic mode on?
Jump to: