Bitcoin Forum

Other => Beginners & Help => Topic started by: avirdoz on September 24, 2012, 12:17:03 AM



Title: litecoin cgminer
Post by: avirdoz on September 24, 2012, 12:17:03 AM
Hello. I try to mine litecoin with cgminer (v. 2.7.5, xubuntu 12.04, sdk 2.7). But when i try to start it:
Code:
./cgminer --scrypt -o xxx -u xxx -p xxx
[2012-09-23 23:56:42] ./cgminer: --scrypt: unrecognized option
What í'm doing wrong? Bitcoin mining work fine. Even in cgminer --help i cant find option --scrypt.
Thx.


Title: Re: litecoin cgminer
Post by: laSeek on September 24, 2012, 12:20:16 AM

Where did you download the binary from?
cgminer needs to be compiled with CPU & scrypt support for it to work with litecoin.


Title: Re: litecoin cgminer
Post by: avirdoz on September 24, 2012, 12:24:54 AM

Where did you download the binary from?
cgminer needs to be compiled with CPU & scrypt support for it to work with litecoin.
Thank for your answer. I build cgminer without necessary options for cpu mining.


Title: Re: litecoin cgminer
Post by: live627 on September 24, 2012, 12:27:17 AM
For CPU mining, try the one by pooler.


Title: Re: litecoin cgminer
Post by: laSeek on September 24, 2012, 12:33:25 AM

Where did you download the binary from?
cgminer needs to be compiled with CPU & scrypt support for it to work with litecoin.
Thank for your answer. I build cgminer without necessary options for cpu mining.

heh - ok - then you can rebuild with --enable-cpumining & --enable-scrypt and you should be good to go. Just check you have the needed dependencies :)
I prefer to build the miner on my own hardware also - it helps ensure I know what the code is doing and that it's optimised for what it's running on.


Title: Re: litecoin cgminer
Post by: Greedi on September 25, 2012, 02:18:15 PM

Where did you download the binary from?
cgminer needs to be compiled with CPU & scrypt support for it to work with litecoin.
Thank for your answer. I build cgminer without necessary options for cpu mining.

heh - ok - then you can rebuild with --enable-cpumining & --enable-scrypt and you should be good to go. Just check you have the needed dependencies :)
I prefer to build the miner on my own hardware also - it helps ensure I know what the code is doing and that it's optimised for what it's running on.


and also remember --shader for you're card :)


Title: Re: litecoin cgminer
Post by: avirdoz on October 03, 2012, 05:29:52 PM
Hello again. Some info about my rig:
Xubuntu Live (on 4 gb flash usb);
4 GB RAM;
HD 6950 unlocked @6970;
HD 6970
I build cgminer with --enable-cpumining & --enable-scrypt. When i start cgminer i receive error message:
Code:
 
 sudo ./cgminer --scrypt -o http://ltc.kattare.com:9332 -u xxx -p xxx --shaders 1536 --intensity 19 --thread-concurrency 6144 -g 2
 [2012-10-03 17:20:48] Started cgminer 2.7.6
 [2012-10-03 17:20:49] Probing for an alive pool
 [2012-10-03 17:20:49] Long-polling activated for http://ltc.kattare.com:9332/LP
 [2012-10-03 17:20:49] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:20:49] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:20:49] Failed to init GPU thread 0, disabling device 0
 [2012-10-03 17:20:49] Restarting the GPU from the menu will not fix this.
 [2012-10-03 17:20:49] Try restarting cgminer.
Press enter to continue:

 [2012-10-03 17:21:11] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 1, disabling device 0
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 2, disabling device 1
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 3, disabling device 1
Before i export GPU_MAX_ALLOC_PERCENT=100 & GPU_USE_SYNC_OBJECTS=1. Maybe trouble with freespace on my usb flash drive.
Without --thread-concurrency option maximum hashrate about 340 on each gpu khash/s.


Title: Re: litecoin cgminer
Post by: SAC on October 03, 2012, 05:49:46 PM
Hello again. Some info about my rig:
Xubuntu Live (on 4 gb flash usb);
4 GB RAM;
HD 6950 unlocked @6970;
HD 6970
I build cgminer with --enable-cpumining & --enable-scrypt. When i start cgminer i receive error message:
Code:
 
 sudo ./cgminer --scrypt -o http://ltc.kattare.com:9332 -u xxx -p xxx --shaders 1536 --intensity 19 --thread-concurrency 6144 -g 2
 [2012-10-03 17:20:48] Started cgminer 2.7.6
 [2012-10-03 17:20:49] Probing for an alive pool
 [2012-10-03 17:20:49] Long-polling activated for http://ltc.kattare.com:9332/LP
 [2012-10-03 17:20:49] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:20:49] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:20:49] Failed to init GPU thread 0, disabling device 0
 [2012-10-03 17:20:49] Restarting the GPU from the menu will not fix this.
 [2012-10-03 17:20:49] Try restarting cgminer.
Press enter to continue:

 [2012-10-03 17:21:11] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 1, disabling device 0
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 2, disabling device 1
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 3, disabling device 1
Before i export GPU_MAX_ALLOC_PERCENT=100 & GPU_USE_SYNC_OBJECTS=1. Maybe trouble with freespace on my usb flash drive.
Without --thread-concurrency option maximum hashrate about 340 on each gpu khash/s.

Try something like I used in a machine with two 6950s flashed to 70s.

Code:

cat ltc.sh
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export DISPLAY=:0

~/cgminer --scrypt --worksize 256,256 --thread-concurrency 7040,7040 --vectors 4,4 --gpu-threads 2 -I 18,18 -g 1 --auto-fan --auto-gpu  --temp-target 81

And the card speeds.

Code:


cat vset.sh
DISPLAY=:0 aticonfig --od-enable --adapter=all
DISPLAY=:0 aticonfig --od-setclocks=770,1230 --adapter=0
DISPLAY=:0 aticonfig --od-setclocks=770,1230 --adapter=1
DISPLAY=:0 aticonfig --odgc --adapter=all

This gives me 410kh/s per card, leave out the --shaders like I do only one of them is needed so it is it or the --thread-concurrency option not both.


Title: Re: litecoin cgminer
Post by: avirdoz on October 03, 2012, 06:51:52 PM
Hello again. Some info about my rig:
Xubuntu Live (on 4 gb flash usb);
4 GB RAM;
HD 6950 unlocked @6970;
HD 6970
I build cgminer with --enable-cpumining & --enable-scrypt. When i start cgminer i receive error message:
Code:
 
 sudo ./cgminer --scrypt -o http://ltc.kattare.com:9332 -u xxx -p xxx --shaders 1536 --intensity 19 --thread-concurrency 6144 -g 2
 [2012-10-03 17:20:48] Started cgminer 2.7.6
 [2012-10-03 17:20:49] Probing for an alive pool
 [2012-10-03 17:20:49] Long-polling activated for http://ltc.kattare.com:9332/LP
 [2012-10-03 17:20:49] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:20:49] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:20:49] Failed to init GPU thread 0, disabling device 0
 [2012-10-03 17:20:49] Restarting the GPU from the menu will not fix this.
 [2012-10-03 17:20:49] Try restarting cgminer.
Press enter to continue:

 [2012-10-03 17:21:11] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 1, disabling device 0
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 2, disabling device 1
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 3, disabling device 1
Before i export GPU_MAX_ALLOC_PERCENT=100 & GPU_USE_SYNC_OBJECTS=1. Maybe trouble with freespace on my usb flash drive.
Without --thread-concurrency option maximum hashrate about 340 on each gpu khash/s.

Try something like I used in a machine with two 6950s flashed to 70s.

Code:

cat ltc.sh
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export DISPLAY=:0

~/cgminer --scrypt --worksize 256,256 --thread-concurrency 7040,7040 --vectors 4,4 --gpu-threads 2 -I 18,18 -g 1 --auto-fan --auto-gpu  --temp-target 81

And the card speeds.

Code:


cat vset.sh
DISPLAY=:0 aticonfig --od-enable --adapter=all
DISPLAY=:0 aticonfig --od-setclocks=770,1230 --adapter=0
DISPLAY=:0 aticonfig --od-setclocks=770,1230 --adapter=1
DISPLAY=:0 aticonfig --odgc --adapter=all

This gives me 410kh/s per card, leave out the --shaders like I do only one of them is needed so it is it or the --thread-concurrency option not both.
I try with your confgs. 313 khash/s per device. Why you decrease stock engine and memory clocks?


Title: Re: litecoin cgminer
Post by: SAC on October 03, 2012, 07:51:37 PM
I try with your confgs. 313 khash/s per device. Why you decrease stock engine and memory clocks?

Through many hours of messing about one day those are the settings I found give me the max hash rate possible. I did this on every card I have and every one without exception gives more hashes if you lower the gpu engine below stock speeds and raise the memory speed once you get to a certain point on the memory nothing above it will give you more speed in fact usually decreases it.


Title: Re: litecoin cgminer
Post by: avirdoz on October 03, 2012, 08:30:30 PM
I try with your confgs. 313 khash/s per device. Why you decrease stock engine and memory clocks?

Through many hours of messing about one day those are the settings I found give me the max hash rate possible. I did this on every card I have and every one without exception gives more hashes if you lower the gpu engine below stock speeds and raise the memory speed once you get to a certain point on the memory nothing above it will give you more speed in fact usually decreases it.
You use --auto-gpu option. This option only decrease engine?


Title: Re: litecoin cgminer
Post by: SAC on October 03, 2012, 09:27:27 PM
I try with your confgs. 313 khash/s per device. Why you decrease stock engine and memory clocks?

Through many hours of messing about one day those are the settings I found give me the max hash rate possible. I did this on every card I have and every one without exception gives more hashes if you lower the gpu engine below stock speeds and raise the memory speed once you get to a certain point on the memory nothing above it will give you more speed in fact usually decreases it.
You use --auto-gpu option. This option only decrease engine?

No it automatically manages the gpu engine if it gets above the --temp-target you set the --auto-fan does the fan speed to keep it below the --temp-target. The second set of my posting is the speed settings I set for ltc mining the --od-setclocks lines.


Title: Re: litecoin cgminer
Post by: avirdoz on October 03, 2012, 09:57:36 PM
I try with your confgs. 313 khash/s per device. Why you decrease stock engine and memory clocks?

Through many hours of messing about one day those are the settings I found give me the max hash rate possible. I did this on every card I have and every one without exception gives more hashes if you lower the gpu engine below stock speeds and raise the memory speed once you get to a certain point on the memory nothing above it will give you more speed in fact usually decreases it.
You use --auto-gpu option. This option only decrease engine?

No it automatically manages the gpu engine if it gets above the --temp-target you set the --auto-fan does the fan speed to keep it below the --temp-target. The second set of my posting is the speed settings I set for ltc mining the --od-setclocks lines.
Thx for  answers. What version of SDK you use? I cant understand why my hashrate is so low.


Title: Re: litecoin cgminer
Post by: SAC on October 03, 2012, 10:13:00 PM
I try with your confgs. 313 khash/s per device. Why you decrease stock engine and memory clocks?

Through many hours of messing about one day those are the settings I found give me the max hash rate possible. I did this on every card I have and every one without exception gives more hashes if you lower the gpu engine below stock speeds and raise the memory speed once you get to a certain point on the memory nothing above it will give you more speed in fact usually decreases it.
You use --auto-gpu option. This option only decrease engine?

No it automatically manages the gpu engine if it gets above the --temp-target you set the --auto-fan does the fan speed to keep it below the --temp-target. The second set of my posting is the speed settings I set for ltc mining the --od-setclocks lines.
Thx for  answers. What version of SDK you use? I cant understand why my hashrate is so low.

AMD-APP-SDK-v2.7-RC-lnx64 is the directory I get from the tarball I downloaded and fglrx_8.980-0ubuntu1_amd64.deb is the package that was built from the .run file I downloaded I think the 12.6 version. You want to check the proper speeds are being set in my experience with cgminer unless you set them manually then it will use whatever is programmed in the cards BIOS ignoring the values put into your .cgminer.conf. You do this by using.

Code:
DISPLAY=:0 aticonfig --od-enable --adapter=all
DISPLAY=:0 aticonfig --odgc --adapter=all

In a terminal/console window.


Title: Re: litecoin cgminer
Post by: SaintDevil on October 18, 2012, 10:35:05 AM
Hello again. Some info about my rig:
Xubuntu Live (on 4 gb flash usb);
4 GB RAM;
HD 6950 unlocked @6970;
HD 6970
I build cgminer with --enable-cpumining & --enable-scrypt. When i start cgminer i receive error message:
Code:
 
 sudo ./cgminer --scrypt -o http://ltc.kattare.com:9332 -u xxx -p xxx --shaders 1536 --intensity 19 --thread-concurrency 6144 -g 2
 [2012-10-03 17:20:48] Started cgminer 2.7.6
 [2012-10-03 17:20:49] Probing for an alive pool
 [2012-10-03 17:20:49] Long-polling activated for http://ltc.kattare.com:9332/LP
 [2012-10-03 17:20:49] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:20:49] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:20:49] Failed to init GPU thread 0, disabling device 0
 [2012-10-03 17:20:49] Restarting the GPU from the menu will not fix this.
 [2012-10-03 17:20:49] Try restarting cgminer.
Press enter to continue:

 [2012-10-03 17:21:11] Maximum buffer memory device 0 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 1, disabling device 0
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 2, disabling device 1
 [2012-10-03 17:21:11] Maximum buffer memory device 1 supports says 268435456, your scrypt setti
ngs come to 402653184
 [2012-10-03 17:21:11] Error -61: clCreateBuffer (padbuffer8), decrease CT or increase LG
 [2012-10-03 17:21:11] Failed to init GPU thread 3, disabling device 1
Before i export GPU_MAX_ALLOC_PERCENT=100 & GPU_USE_SYNC_OBJECTS=1. Maybe trouble with freespace on my usb flash drive.
Without --thread-concurrency option maximum hashrate about 340 on each gpu khash/s.

You will get this error message if your thread-concurrency is set high but the memory clock on the graphics card is under clocked.
I've ran into this problem while trying to mine litecoins, then I restored my graphics card settings back to original and it started hashing without problem.


Title: Re: litecoin cgminer
Post by: josephliton on November 09, 2012, 11:34:39 AM
the two main Cryptographic API sets
    kCryptoServerCouldNotBindToIPv4Address = 1,

    kCryptoServerCouldNotBindToIPv6Address = 2,

    kCryptoServerNoSocketsAvailable = 3,

    kCryptoServerCouldNotBindOrEstablishNetService = 4

} CryptoServerErrorCode;