Author

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

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.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
ck, installed latest Catalyst, sdk 2.1, Ubuntu 10.04.3 x86_64, ATI FirePro V5700, compiles fine, when run:

Quote
cgminer version 1.3.1 - Started: [2011-07-20 14:45:22]
--------------------------------------------------------------------------------

 TQ: 1  ST: 1  LS: 0  SS: 0  DW: 0  NB: 0  LW: 0  LO: 0  RF: 0  I: 0
 Connected to http://api2.bitcoin.cz:8332 as user xxx
 Block xxx  started: [2011-07-20 14:45:22]
--------------------------------------------------------------------------------
 GPU 0: [0.0 Mh/s] [Q:0  A:0  R:0  HW:0  E:0%  U:0.00/m]
--------------------------------------------------------------------------------

[2011-07-20 14:45:24] Attempting to restart thread 0, idle for more than 60 seco
nds

Segmentation fault

Any idea?
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.
newbie
Activity: 59
Merit: 0
ck, installed latest Catalyst, sdk 2.1, Ubuntu 10.04.3 x86_64, ATI FirePro V5700, compiles fine, when run:

Quote
cgminer version 1.3.1 - Started: [2011-07-20 14:45:22]
--------------------------------------------------------------------------------

 TQ: 1  ST: 1  LS: 0  SS: 0  DW: 0  NB: 0  LW: 0  LO: 0  RF: 0  I: 0
 Connected to http://api2.bitcoin.cz:8332 as user xxx
 Block xxx  started: [2011-07-20 14:45:22]
--------------------------------------------------------------------------------
 GPU 0: [0.0 Mh/s] [Q:0  A:0  R:0  HW:0  E:0%  U:0.00/m]
--------------------------------------------------------------------------------

[2011-07-20 14:45:24] Attempting to restart thread 0, idle for more than 60 seco
nds

Segmentation fault

Any idea?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Thanks for this great program!  I'll be sure to donate as soon as I start generating some decent bitcoin.

I had an issue with the (now) older version 1.2.8 where it would crash on startup when a system had more than 4 NVIDIA GPUs available (Windows 7 64-bit).  I'll test it again with the new version.


One issue I see with the new 1.3.1 version is with the --load-balance option with 2 pools, it continually repeats that new block detected before longpoll.  One pool is bitcoin while the other is namecoin if that makes a difference.  Running 2 instances separately this message does not occur.

Thanks for positive feedback Smiley Don't know about the nvidia gpus thing, sorry.

You can't mix bitcoin and namecoin in the same instance as the blocks won't match and it will continue to think every work item is from a new block. That's how it detects new blocks without a longpoll.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Btw, forgot to mention this doesn't seem to be working on Windows. And should the run time output include hash rate per thread? I only see per device.
The runtime summary only happens if the program exits cleanly. Windows just doesn't like me and the program has to be killed instead of stopped at this stage which is why you never get that summary. The hash rate per thread will add no useful information since the work is spread precisely evenly between each thread going to the same CPU.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I have never been able to get this miner working, added the -D flag to show results before windows error saying it has stopped working....

Code:
[2011-07-20 16:35:48] binary size 0 : 0

C:\Users\xxxxx\Desktop\cgm>

Any Suggestions?
When I've seen this bug before, those who had it reported that it got better after a reboot. Why, I don't know. Something to do with leaving the GPU in some indeterminate state from old code maybe. Make sure you delete any filenames with .bin in their name on the next boot before running it if it hasn't started successfully please.
member
Activity: 145
Merit: 10
IF you want, i can compile a version specific to your semptron 140 with all the optimizations.

Just need to know if you have unlcoked it ? im asumming am3 ? Which would mean SSE4a is supported.
Jump to: