Author

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

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Something is horribly wrong with cgminer 2.2.4 for me. It seems the newest kernel for phatk sucks monkey balls on my 5970. on cgminer 2.2.1 and kernel from last year (not sure which one) it was 359mh/s @ 805mhz / 109mhz
With the new phatk kernel as of this year, it gets around 300mh/s !!
any idea why?

Im running 11.12 drivers and 2.6sdk I believe.
Its on vista 32 ultimate.
Any idea?!

So, Ive stuck w/ cgminer 2.2.1 cuz it uses last years phatk kernel.
Repeat after me; it is not the kernel, it's the SDK.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Something is horribly wrong with cgminer 2.2.4 for me. It seems the newest kernel for phatk sucks monkey balls on my 5970. on cgminer 2.2.1 and kernel from last year (not sure which one) it was 359mh/s @ 805mhz / 109mhz
With the new phatk kernel as of this year, it gets around 300mh/s !!
any idea why?

Im running 11.12 drivers and 2.6sdk I believe.
Its on vista 32 ultimate.
Any idea?!

So, Ive stuck w/ cgminer 2.2.1 cuz it uses last years phatk kernel.
Just copy the *.bin and rename it ...

Step 4) of https://bitcointalksearch.org/topic/m.742897

(the problem is your choice of SDK sux)
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
On windows, you can also specify "export GPU_USE_SYNC_OBJECTS = 1"
Only way is different, "Computer> System Properties> Advanced system settings> system environment> create a new variable" GPU_USE_SYNC_OBJECTS ", the value of the variable is -" 1 "

It just has no effect at all on Windows systems (confirmed by AMD). You could as well set MITT_ROMNEY_IS_A_DICKHEAD = 1 ... would have the same effect Wink
Excellent. Is he?
hero member
Activity: 1162
Merit: 500
On windows, you can also specify "export GPU_USE_SYNC_OBJECTS = 1"
Only way is different, "Computer> System Properties> Advanced system settings> system environment> create a new variable" GPU_USE_SYNC_OBJECTS ", the value of the variable is -" 1 "

It just has no effect at all on Windows systems (confirmed by AMD). You could as well set MITT_ROMNEY_IS_A_DICKHEAD = 1 ... would have the same effect Wink
sr. member
Activity: 378
Merit: 250
Well, looking at the code, the first thing I would try is comparing the original to the modified version to see if any typos were made.

Dia, you don't need to define a new variable (BASE) as const u base in order to edit it out in the case of GOFFSET.  Just toss an if statement into the void search.  

#ifndef GOFFSET
const u base,
#endif

It works, oddly enough.

As for your output, the only possible problem I can see is the use of parenthesis around your defined NFLAG and FOUND variables.
I don't bother defining things unless I absolutely have to.  It's much easier and less code-happy to use the exact value for the otherwise defined object and then comment anything that is worthy of remembering such as "The output, 0x80, is used for discovered Nonce.  The output, 0x7F, is used to ensure the Nonce is correct."

Also, why are you checking if the nonce values are the same?  O_o  Apparently, I don't understand your method.  Granted, I'm new at this.  Perhaps you were checking if you had the same work for each one?
I'll compare later when I'm home.  Rest assured, I'm OCD.  So I probably won't stop until it works.  ^_^
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Important code committed to git tree:

The longstanding generation of a zero sized binary appears to be due to the OpenCL library putting the binary in a RANDOM SLOT amongst 4 possible binary locations. Iterate over each of them after building from source till the real binary is found and use that.

THOSE HAVING THE ZERO SIZED BINARY BUG PLEASE TEST THIS EXECUTABLE!

http://ck.kolivas.org/apps/cgminer/temp/cgminer.exe

Drop it into a clean 2.2.4 directory with no .bin files and try it please.

Or try a git build if you're that way inclined.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
which command line options to set for optimum 7970 performance?
-I 11 for the 7970.


keeping in mind,  on windoz you have to go down to 9 to prevent high CPU usage.

also, if you are on windoz, and you want a I above 9, and you have more then 1 card.  then you will need to let cgminer have more cores if you have them.

with 5 cards and 1 core, I-11  clock:1125/1000   Mhash will be under 400, and jumpy.

with all cores (I have 4)  then you can get the ~650Mh, but CPU usage will be ~80% all cores.


I have to run mine at I-9 for now.
Oh really? Suckage. Presumably that's because there is no way to 'export GPU_USE_SYNC_OBJECTS=1' on windows which fixes the CPU usage on linux. Maybe some hidden option in the catalyst control centre?
According to new user ED1980 who can't post on the forums yet:
Quote
On windows, you can also specify "export GPU_USE_SYNC_OBJECTS = 1"
Only way is different, "Computer> System Properties> Advanced system settings> system environment> create a new variable" GPU_USE_SYNC_OBJECTS ", the value of the variable is -" 1 "
hero member
Activity: 772
Merit: 500
Con, I don't have any success in editing the .cl file for DiaKGCN, it only generates HW errors. Tried a forced submitting of these shares with --submit-stale, but that seems to not trigger a forwarding to the pool. Is there any change to output the nonce or hash that DiaKGCN produces and which is considered a HW error?

This makes me crazy, because in Phoenix it's a healthy kernel ... dunno how to cure it for CGMINER currently :-(.

Thanks,
Dia
Guess I can give up on diapolo kernel then cause neither you nor me can seem to fix it.

The bad part is I need your help for the host code, as I can't compile CGMINER, so if you say that's it ... then okay. But I would like to see what happens if you send the results of DiaKGCN to a pool. Could there be a problem in probing for a positive nonce in your host code, perhaps some sort of wrong typecast or stuff like that?

What makes it hard is this known Windows problem, with that 0-Byte error for the .bin :-/. I can't seem to find out how to trigger and how to avoid it.

Dia
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
No that didn't work either.
Thanks for trying. I'll consider this a permanent "feature" bug on cgminer on fucking windows then goddamnit...
The plot thickens.

When in doubt, just look to AMD for epic fail.

Each compiled openCL program returns multiple binaries... and it's random which slot it ends up in.

Debugging my balls off today:
Code:
GPU0:
[2012-02-12 20:41:51] CL_PROGRAM_NUM_DEVICES returns 4 devices for this program                   
[2012-02-12 20:41:51] binary 0 size 391512                   
[2012-02-12 20:41:51] binary 1 size 0                   
[2012-02-12 20:41:51] binary 2 size 0                   
[2012-02-12 20:41:51] binary 3 size 0                   

GPU1:
[2012-02-12 20:41:53] binary 0 size 0                   
[2012-02-12 20:41:53] binary 1 size 0                   
[2012-02-12 20:41:53] binary 2 size 542460                   
[2012-02-12 20:41:53] binary 3 size 0                   

GPU2:
[2012-02-12 20:41:54] binary 0 size 0                   
[2012-02-12 20:41:54] binary 1 size 542460                   
[2012-02-12 20:41:54] binary 2 size 0                   
[2012-02-12 20:41:54] binary 3 size 0                   

GPU3:
2012-02-12 20:41:55] binary 0 size 0                   
[2012-02-12 20:41:55] binary 1 size 0                   
[2012-02-12 20:41:55] binary 2 size 0                   
[2012-02-12 20:41:55] binary 3 size 542460                   
Anyone see a problem here?

Well there is one good thing... and that is I may well have a fix. It also appears to be RANDOM as to which binary it is allocated to, which is why it works on some starts and doesn't on others, so repeat attempts to start it will eventually work when a binary is made. Loading from file works fine.

Now to try and make a fix.
legendary
Activity: 2450
Merit: 1002
Something is horribly wrong with cgminer 2.2.4 for me. It seems the newest kernel for phatk sucks monkey balls on my 5970. on cgminer 2.2.1 and kernel from last year (not sure which one) it was 359mh/s @ 805mhz / 109mhz
With the new phatk kernel as of this year, it gets around 300mh/s !!
any idea why?

Im running 11.12 drivers and 2.6sdk I believe.
Its on vista 32 ultimate.
Any idea?!

So, Ive stuck w/ cgminer 2.2.1 cuz it uses last years phatk kernel.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Yes he forgot to add the usual commands he normally does to cgminer also after the new ones Smiley

As mentioned above ...

https://bitcointalksearch.org/topic/m.742897 (the bit after 4) )
full member
Activity: 210
Merit: 100
Just installed 2.2.4 on WinXP Catalyst 11.6.

It did not generate the .bin files for me.  I tried multiple times with different command line options and rebooted and tried again.

I copied my renamed .bin files over from the previous install and am working now.
Thanks,
Sam
I know this has been long standing, but there is more debugging in newer versions. Just once more for my crying pleasure, can you start it with --verbose -D -T (without any bin files in the directory) and give me the full output please?

Here you go.  Let me know if you need anything else.  I appreciate it.
Thanks,
Sam

Code:
cgm224>cgminer --verbose -D -T
[2012-02-11 16:50:20] Started cgminer 2.2.4
[2012-02-11 16:50:20] CL Platform 0 vendor: Advanced Micro Devices, Inc.

[2012-02-11 16:50:20] CL Platform 0 name: AMD Accelerated Parallel Processing

[2012-02-11 16:50:20] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (650.9)

[2012-02-11 16:50:20] Platform 0 devices: 2
[2012-02-11 16:50:20] GPU 0 iAdapterIndex 0 strUDID PCI_VEN_1002&DEV_689E&SUBSYS
_E177174B&REV_00_4&3014B34A&0&0020A iBusNumber 2 iDeviceNumber 0 iFunctionNumber
 0 iVendorID 1002 strAdapterName  ATI Radeon HD 5800 Series

[2012-02-11 16:50:20] GPU 1 iAdapterIndex 2 strUDID PCI_VEN_1002&DEV_68B8&SUBSYS
_21401462&REV_00_4&276E9505&0&0010A iBusNumber 1 iDeviceNumber 0 iFunctionNumber
 0 iVendorID 1002 strAdapterName  ATI Radeon HD 5700 Series

[2012-02-11 16:50:20] GPU 0 ATI Radeon HD 5800 Series   hardware monitoring enab
led
[2012-02-11 16:50:20] GPU 1 ATI Radeon HD 5700 Series hardware monitoring enable
d
[2012-02-11 16:50:20] Need to specify at least one pool server.

Pool setup failed

On the last line it says "Need to specify at least one pool server". Looks like an pool, user, password wasn't entered?
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
No idea, however, the startup may show something ...

https://bitcointalksearch.org/topic/m.742897 (the bit after 4) )
full member
Activity: 155
Merit: 100
HI all,
I'm just getting started here, so please excuse any noob statements or questions.
I followed the instructions for mining in P2Pool, and have it running smoothly, I think.
However, whenever I launch cgminer, it crashes my display driver (it recovers and reloads), then proceeds to give a bunch of errors and not do any mining that I can tell.
Where should I start looking to troubleshoot?
I can't attach images yet, but here's are links to screenshots showing the issue:

http://imageshack.us/photo/my-images/842/cap002k.jpg/
http://imageshack.us/photo/my-images/26/cap003t.jpg/

After I see this, if I click in cgminer window and press enter, it closes.

Thoughts?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
No that didn't work either.
Thanks for trying. I'll consider this a permanent "feature" bug on cgminer on fucking windows then goddamnit...

EDIT:
I have looked at the code in question a billion times and I simply cannot see why it's failing. I need someone with fresh eyes to look at it and tell me "oh you're just doing this wrong" but there are so few of us that work on this code, and we're all working on "competing" code, even though that's not the truth. I'd give 5 BTC to someone who found what I was doing to cause this bug and how to fix it.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Con, I don't have any success in editing the .cl file for DiaKGCN, it only generates HW errors. Tried a forced submitting of these shares with --submit-stale, but that seems to not trigger a forwarding to the pool. Is there any change to output the nonce or hash that DiaKGCN produces and which is considered a HW error?

This makes me crazy, because in Phoenix it's a healthy kernel ... dunno how to cure it for CGMINER currently :-(.

Thanks,
Dia
Guess I can give up on diapolo kernel then cause neither you nor me can seem to fix it.
legendary
Activity: 3586
Merit: 1099
Think for yourself
[2012-02-11 17:00:00] binary size 0 : 0
[2012-02-11 17:00:00] OpenCL compiler generated a zero sized binary, may need to
 reboot!
This is totally  crazy, but perhaps the command is actually non-blocking even though it's meant to be blocking and c is fast so the compiler hasn't returned yet or something stupid like that on windows. Anyway try this totally crazy exe with your regular commands (put into a fresh 2.2.4 directory):
http://ck.kolivas.org/apps/cgminer/temp/cgminer.exe
This will wait until it returns a non-zero value. If it seems to just sit there doing nothing after a minute or so, just stop it.

It's just hanging at /listenChannel line for like 7 minutes now.  Doesn't appear to be doing anything.
Sam
Darn. Throw out that binary. What happens if you try with a different kernel like -k poclbm ?

No that didn't work either.
Sam
newbie
Activity: 56
Merit: 0
Whats the best catalyst driver setup for cgminer.  I'm currently running 11.9 on of my rigs with cgminer 2.1.3 and the speed on my 5870 is about 50mhash less then on my other rig that has 12.1 and same cg miner(bins might be different then 12.1 because it was changed so many times without deleting bins).  I did delete the bin on the slower one and also did a driver sweep before install and its still slower.  I have this problem on 4 other rigs.  I did copy the bin from the faster rig to the slower one and its speed increased only on that one video card.   Any help is appreciated. 
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
[2012-02-11 17:00:00] binary size 0 : 0
[2012-02-11 17:00:00] OpenCL compiler generated a zero sized binary, may need to
 reboot!
This is totally  crazy, but perhaps the command is actually non-blocking even though it's meant to be blocking and c is fast so the compiler hasn't returned yet or something stupid like that on windows. Anyway try this totally crazy exe with your regular commands (put into a fresh 2.2.4 directory):
http://ck.kolivas.org/apps/cgminer/temp/cgminer.exe
This will wait until it returns a non-zero value. If it seems to just sit there doing nothing after a minute or so, just stop it.

It's just hanging at /listenChannel line for like 7 minutes now.  Doesn't appear to be doing anything.
Sam
Darn. Throw out that binary. What happens if you try with a different kernel like -k poclbm ?
legendary
Activity: 3586
Merit: 1099
Think for yourself
[2012-02-11 17:00:00] binary size 0 : 0
[2012-02-11 17:00:00] OpenCL compiler generated a zero sized binary, may need to
 reboot!
This is totally  crazy, but perhaps the command is actually non-blocking even though it's meant to be blocking and c is fast so the compiler hasn't returned yet or something stupid like that on windows. Anyway try this totally crazy exe with your regular commands (put into a fresh 2.2.4 directory):
http://ck.kolivas.org/apps/cgminer/temp/cgminer.exe
This will wait until it returns a non-zero value. If it seems to just sit there doing nothing after a minute or so, just stop it.

It's just hanging at /listenChannel line for like 7 minutes now.  Doesn't appear to be doing anything.
Sam
Jump to: