Author

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

hero member
Activity: 588
Merit: 500
I'm not having much luck compiling this on Fedora 15.  This is where make craps out:

You have a conflict between jansson-1.2 which is included with Fedora and jansson-2.0 which comes with cgminer. Remove the jansson-devel packages and you'll be able to finish the build.

but will get this upon running cgminer:

[2011-07-20 12:41:07] Error: Getting Device IDs (num)


I am running an nVidia card at the moment, but poclbm and phoenix can each access it.

How did you install the NVIDIA drivers and CUDA toolkit?
hero member
Activity: 807
Merit: 500
I'm not having much luck compiling this on Fedora 15.  This is where make craps out:

make[2]: Entering directory `/usr/src/cgminer-1.3.1'
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing  -I./lib -I./lib  -DHAS_YASM -g -O2 -MT cgminer-main.o -MD -MP -MF .deps/cgminer-main.Tpo -c -o cgminer-main.o `test -f 'main.c' || echo './'`main.c
main.c: In function âload_configâ:
main.c:605:2: error: too many arguments to function âjson_load_fileâ
/usr/include/jansson.h:162:9: note: declared here
make[2]: *** [cgminer-main.o] Error 1
make[2]: Leaving directory `/usr/src/cgminer-1.3.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/cgminer-1.3.1'
make: *** [all] Error 2


I looked at the MakeFile and if I edit it as follows:

-#JANSSON_INCLUDES =
-JANSSON_INCLUDES = -I$(top_srcdir)/compat/jansson
+JANSSON_INCLUDES =
+#JANSSON_INCLUDES = -I$(top_srcdir)/compat/jansson


then I can compile successfully, but will get this upon running cgminer:

[2011-07-20 12:41:07] Error: Getting Device IDs (num)


I am running an nVidia card at the moment, but poclbm and phoenix can each access it.  Also, for the record, 'rpm -qf /usr/include/jansson.h' returns these packages:

jansson-devel-1.2-1.fc13.x86_64
jansson-devel-1.2-1.fc13.i686


On a side note, cgminer seems to use a lot of CPU for GPU mining in Windows, and all found hashes get rejected.  Same nVidia card, and I know phoenix gets a lot of rejects too if I use BFI_INT.  I saw that BFI_INT is used in the original post, but I didn't see any way to disable it in the parameters.  Is it possible to disable it, or is this miner meant for ATI only?
member
Activity: 145
Merit: 10
what gpus are you using ?

these are mine:

SLI Nvidia 9800gtx+ / SLI GTS250
Code:
del /F /Q *.bin
cgminer.exe -o http://server:port -u username -p pass -w 64 -t 0 -I 4

XFire 6970 / XFIRE 6950
Code:
del /F /Q *.bin
cgminer.exe -o http://server:port -u username -p pass -I 9 -t 0
member
Activity: 84
Merit: 10
I use a windows batch file to run it.

anyone windows can use it too.
pastes this into bat file you make inside the cgminer directory

Code:
@echo off
:A
Cls
cgminer -o http://pit.deepbit.net:8332 -u [email protected] -p passwurd -g 10 -w 256 -d 0

I haven't been able to figure out kernel, work size GPU and CPU threads yet though.
I need to figure out how many threads my GPU has first though.

oh just figured out GPU threads and worksize. -g 10 -w 256

MAN, that works good!
member
Activity: 82
Merit: 10
tried it on windows for kicks but get "Error: Getting Device IDs (num)"
full member
Activity: 373
Merit: 100
Hi,

for JSON a sensible multi-host config would look like this:

{

connections: [
   {url: "http://foo.example.org:8332", username: "bar", password: "baz"},
   {url: "http://bar.example.org:8332", username: "baz", password: "quux"}
],

}

did you get a multihost config to work?

I try to make a new example-conf.json but

I don't... cgminer says no server specified
This was an idea, not something that is actually implemented. Currently, you need to create individual JSON configs for each pool and pass them with -c parameters.
legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
2) Running the program from /usr/local/bin/ results in non-ncurses output (without flag) and the program segfaults on exit (ctrl-c) without displaying statistics.

If i use the screen and start the program, I can never exit properly and get the stats.
 
BTW, I did not run install on cgminer so it is not in /opt/ or   /usr/local/bin/
jr. member
Activity: 69
Merit: 3
I hate to bump my own post, but has anyone else experienced this? Am I missing something obvious? Thanks.

Yes, I have the same problem, it tries to find the *.cl files in the current directory, should probably try to do basename argv[0] instead.

This leads me back to the issue that cgminer does not use ncurses output and segfaults on exit when run from /usr/local/bin/ which is where it installs itself (make install). Please correct me if I'm wrong, but the executable should look for the *.cl files in either its own directory (not the current user's directory) and/or using the system paths, no?
newbie
Activity: 17
Merit: 0
Reboot?

Yes - that worked. All running fine now.

So the policy of "turn it off and turn it on again" actually works! Wink
newbie
Activity: 59
Merit: 0
I hate to bump my own post, but has anyone else experienced this? Am I missing something obvious? Thanks.

Yes, I have the same problem, it tries to find the *.cl files in the current directory, should probably try to do basename argv[0] instead.
jr. member
Activity: 69
Merit: 3
So it seems I can only run the program properly with my current directory set to /opt/cgminer-1.3.1/ for the time being.

I hate to bump my own post, but has anyone else experienced this? Am I missing something obvious? Thanks.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Running 1.3.0 on Fedora 14 x86.. Had it hang last night, and no either awareness of the hang, and/or no attempt at recovery.. Here's what I saw on the screen:
Ideas?

Thread restart was temporarily disabled on 1.3.0 pending further changes. It's been reimplemented in 1.3.1 so please upgrade. Sometimes the GPU code just gets stuck and the GPU never returns, killing off the thread. That's why I put the thread watchdog in there but I had to disable it in 1.3.0 till more code went in to match architectural changes.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Thank you!

Further along the road, but still bombing out with a "This program has stopped working" error:

Code:
[2011-07-20 15:55:04] Long-polling activated for http://pit.deepbit.net:8332/listenChannel
[2011-07-20 15:55:04] Successfully retreived and deciphered work from pool 0 http://pit.deepbit.net:8332
[2011-07-20 15:55:04] Pool 0 http://pit.deepbit.net:8332 active
[2011-07-20 15:55:04] Init GPU thread 0
[2011-07-20 15:55:04] List of devices:
[2011-07-20 15:55:04]   0       Cayman
[2011-07-20 15:55:04]   1       Cayman
[2011-07-20 15:55:04] Selected 0: Cayman
[2011-07-20 15:55:04] Preferred vector width reported 4
[2011-07-20 15:55:04] Max work group size reported 256
[2011-07-20 15:55:04] No binary found, generating from source
[2011-07-20 15:55:04] Patched source to suit 2 vectors
[2011-07-20 15:55:04] cl_amd_media_ops found, patched source with BITALIGN
[2011-07-20 15:55:04] cl_amd_media_ops found, patched source with BFI_INT
[2011-07-20 15:55:05] binary size 0 : 0

Then boom!  Undecided

Reboot?
sr. member
Activity: 467
Merit: 250
Running 1.3.0 on Fedora 14 x86.. Had it hang last night, and no either awareness of the hang, and/or no attempt at recovery.. Here's what I saw on the screen:

Quote
cgminer version 1.3.0 - Started: [2011-07-19 22:47:23]
--------------------------------------------------------------------------------
 [(5s):647.3  (avg):1086.5 Mh/s] [Q:3254  A:3033  R:5  HW:0  E:93%  U:15.21/m]
 TQ: 0  ST: 0  LS: 0  SS: 0  DW: 2  NB: 22  LW: 0  LO: 0  RF: 0  I: 9
 Connected to http://x.x.x.x:xx/ as user xxx
 Block 00011b498db7e0db5082d5ff0cb5d1ef  started: [2011-07-20 02:03:16]
--------------------------------------------------------------------------------
 GPU 0: [361.4 Mh/s] [Q:1076  A:1007  R:1  HW:0  E:94%  U:5.08/m]
 GPU 1: [363.0 Mh/s] [Q:1084  A:1026  R:1  HW:0  E:95%  U:5.15/m]
 GPU 2: [362.1 Mh/s] [Q:1094  A:1000  R:3  HW:0  E:91%  U:5.02/m]
--------------------------------------------------------------------------------

[2011-07-20 02:04:53] Share 8ebbdcf8 accepted from GPU 1 thread 10
[2011-07-20 02:04:58] Share 73c5c9f9 accepted from GPU 0 thread 6
[2011-07-20 02:05:05] Share 54452047 accepted from GPU 0 thread 9
[2011-07-20 02:05:07] Share 22cc6c6f accepted from GPU 0 thread 0
[2011-07-20 02:05:08] Share 7b2a4075 accepted from GPU 0 thread 0
[2011-07-20 02:05:09] Share da4bf061 accepted from GPU 1 thread 7
[2011-07-20 02:05:13] Share 2406795e accepted from GPU 2 thread 5
[2011-07-20 02:05:13] Share 08250b9c accepted from GPU 0 thread 0
[2011-07-20 02:05:23] Share fa3eada8 accepted from GPU 1 thread 7
[2011-07-20 02:05:30] Share df9407d0 accepted from GPU 1 thread 7
[2011-07-20 02:05:32] Share 891499dc accepted from GPU 1 thread 1
[2011-07-20 02:05:34] Share 37f3e9b8 accepted from GPU 0 thread 6
[2011-07-20 02:05:37] Share 9837a519 accepted from GPU 1 thread 4
[2011-07-20 02:05:42] Share 1337dd1c accepted from GPU 0 thread 9
[2011-07-20 02:05:46] Share fa18714a accepted from GPU 0 thread 0
[2011-07-20 02:05:47] Share 27eb7a1e accepted from GPU 1 thread 1
[2011-07-20 02:05:48] Share 59d02639 accepted from GPU 0 thread 3
[2011-07-20 02:05:54] Share 3773b873 accepted from GPU 0 thread 0
[2011-07-20 02:05:59] Share 30e7df8c accepted from GPU 1 thread 7
[2011-07-20 02:06:02] Share 0761b69f accepted from GPU 2 thread 2
[2011-07-20 02:06:18] Share 5b1257d2 accepted from GPU 1 thread 7
[2011-07-20 02:06:22] Share d0d5bdc5 accepted from GPU 1 thread 1
[2011-07-20 02:06:37] Share c0ecc4f0 accepted from GPU 1 thread 10
[2011-07-20 02:06:37] Share a1c01ee9 accepted from GPU 2 thread 11
[2011-07-20 02:06:45] Share 72d7a8ee accepted from GPU 2 thread 5
[2011-07-20 02:06:52] Share b07c920f accepted from GPU 2 thread 5
[2011-07-20 02:06:53] Share 2ce34d13 accepted from GPU 2 thread 5
[2011-07-20 02:06:55] Attempting to restart thread 0, idle for more than 60 seconds
[2011-07-20 03:15:18] LONGPOLL received after new block already detected
[2011-07-20 03:15:18] New block detected on network before longpoll, waiting on fresh work
[2011-07-20 05:26:19] LONGPOLL received after new block already detected
[2011-07-20 05:26:19] New block detected on network before longpoll, waiting on fresh work
[2011-07-20 05:27:38] LONGPOLL received after new block already detected
[2011-07-20 05:27:38] New block detected on network before longpoll, waiting on fresh work
[2011-07-20 07:38:38] LONGPOLL received after new block already detected
[2011-07-20 07:38:38] New block detected on network before longpoll, waiting on fresh work

Ideas?
newbie
Activity: 17
Merit: 0
Thank you!

Further along the road, but still bombing out with a "This program has stopped working" error:

Code:
[2011-07-20 15:55:04] Long-polling activated for http://pit.deepbit.net:8332/listenChannel
[2011-07-20 15:55:04] Successfully retreived and deciphered work from pool 0 http://pit.deepbit.net:8332
[2011-07-20 15:55:04] Pool 0 http://pit.deepbit.net:8332 active
[2011-07-20 15:55:04] Init GPU thread 0
[2011-07-20 15:55:04] List of devices:
[2011-07-20 15:55:04]   0       Cayman
[2011-07-20 15:55:04]   1       Cayman
[2011-07-20 15:55:04] Selected 0: Cayman
[2011-07-20 15:55:04] Preferred vector width reported 4
[2011-07-20 15:55:04] Max work group size reported 256
[2011-07-20 15:55:04] No binary found, generating from source
[2011-07-20 15:55:04] Patched source to suit 2 vectors
[2011-07-20 15:55:04] cl_amd_media_ops found, patched source with BITALIGN
[2011-07-20 15:55:04] cl_amd_media_ops found, patched source with BFI_INT
[2011-07-20 15:55:05] binary size 0 : 0

Then boom!  Undecided
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I have a problem getting 1.3.1 running on Windows. I'm starting using the following parameters:

Code:
cgminer -o http://deepbit.net -u myusername -p mypass -D

And get the following response:

Code:
[2011-07-20 14:09:44] JSON decode failed(1): '[' or '{' expected near '<'
[2011-07-20 14:09:44] Received kill message

Followed by a "This program has stopped working" message in Windows. I'm running Windows 7 64-bit and have SDK 2.4.

Any idea what could be wrong?
-o http://pit.deepbit.net:8332
newbie
Activity: 17
Merit: 0
I have a problem getting 1.3.1 running on Windows. I'm starting using the following parameters:

Code:
cgminer -o http://deepbit.net -u myusername -p mypass -D

And get the following response:

Code:
[2011-07-20 14:09:44] JSON decode failed(1): '[' or '{' expected near '<'
[2011-07-20 14:09:44] Received kill message

Followed by a "This program has stopped working" message in Windows. I'm running Windows 7 64-bit and have SDK 2.4.

Any idea what could be wrong?
full member
Activity: 210
Merit: 100
1.3.1 compiles fine, but I get segfault if I run it with basic pool options. Runs ok without pool info. Also prints out number of gpus with -n option. Any thoughts?
newbie
Activity: 49
Merit: 0
Hi,

for JSON a sensible multi-host config would look like this:

{

connections: [
   {url: "http://foo.example.org:8332", username: "bar", password: "baz"},
   {url: "http://bar.example.org:8332", username: "baz", password: "quux"}
],

}

did you get a multihost config to work?

I try to make a new example-conf.json but

I don't... cgminer says no server specified

Code:
{"config":
        [
                {
                "url": "http://mining.eligius.st:8337",
                "user": "user",
                "pass": "pass"
                },
                {
                "url": "http://useast.btcguild.com:8332",
                "user": "user2",
                "pass": "pass2"
                },
                {
                "url": "http://pit.x8s.de:8337",
                "user": "user3",
                "pass": "pass3"
                }
        ]
}

member
Activity: 145
Merit: 10
Small observation (compiled from git)

1.3.0-5 uploads more shares/m @ U: 13/M

1.3.1 uploads @ U:10.1/M

1.3.1 does have a higher MH/s than 1.3.0-5

According to the pool stats 1.3.0-5 gives ~860 MH/s and 1.3.1 gives ~760 MH/s as they base the their MH/s calcs off the shares uploaded.
Jump to: