Bitcoin Forum
March 19, 2024, 07:23:41 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »
  Print  
Author Topic: ATTN Litecoin GPU Miners - Scrypt support for cgminer  (Read 175795 times)
tacotime
Legendary
*
Offline Offline

Activity: 1484
Merit: 1005



View Profile
July 21, 2012, 05:30:11 AM
 #161

Are you running the cards all on the same rig?  LTC mining is GPU memory bandwidth intensive, if all 4 cards are running at only
1x or 4x or even 8x you'll probably be bottlenecked.

Try using only one GPU in running at 16x.

I have my 5770 on an x1 and it's mining ~200kh/s just fine.

So memory bandwidth has nothing to do with it, at least over the southbridge...  Someone should really post a chart that plots performance in kh/s with the speed of the memory for the GPU.  I'm really wondering if it's linear or not.  This implementation of scrypt is small enough to be done in the L2 cache, so I have always been wondering how the GPU implementation required megabytes.  I wish someone would break down the algorithm for us or something, but I guess it's in the source code.
N=1024,p=1,r=1 -> 128KiB
i.e. each thread requires 128K or RAM
e.g. in a GPU with 128 parallel processes running at the same time that 128KiB each becomes 16MB

shouldn't an asic be easy to make then? I mean arm cortex a9s can carry up to 1m level 2 cache... they're slow but they're also cheap and energy efficient. I think they only use about 500mW per cpu

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
1710833021
Hero Member
*
Offline Offline

Posts: 1710833021

View Profile Personal Message (Offline)

Ignore
1710833021
Reply with quote  #2

1710833021
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
smoothie
Legendary
*
Offline Offline

Activity: 2492
Merit: 1473


LEALANA Bitcoin Grim Reaper


View Profile
July 21, 2012, 05:46:05 AM
 #162

lets say they are "easy" to make......it will cost millions for production to start.

███████████████████████████████████████

            ,╓p@@███████@╗╖,           
        ,p████████████████████N,       
      d█████████████████████████b     
    d██████████████████████████████æ   
  ,████²█████████████████████████████, 
 ,█████  ╙████████████████████╨  █████y
 ██████    `████████████████`    ██████
║██████       Ñ███████████`      ███████
███████         ╩██████Ñ         ███████
███████    ▐▄     ²██╩     a▌    ███████
╢██████    ▐▓█▄          ▄█▓▌    ███████
 ██████    ▐▓▓▓▓▌,     ▄█▓▓▓▌    ██████─
           ▐▓▓▓▓▓▓█,,▄▓▓▓▓▓▓▌          
           ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌          
    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓─  
     ²▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓╩    
        ▀▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▀       
           ²▀▀▓▓▓▓▓▓▓▓▓▓▓▓▀▀`          
                   ²²²                 
███████████████████████████████████████

. ★☆ WWW.LEALANA.COM        My PGP fingerprint is A764D833.                  History of Monero development Visualization ★☆ .
LEALANA BITCOIN GRIM REAPER SILVER COINS.
 
tacotime
Legendary
*
Offline Offline

Activity: 1484
Merit: 1005



View Profile
July 21, 2012, 05:48:23 AM
Last edit: July 21, 2012, 06:05:42 AM by tacotime
 #163

lets say they are "easy" to make......it will cost millions for production to start.

I answered my own question in the android miner thread. even running the optimized neon code from pooler an a9 isn't power competitive.

still, settings for scrypt using 32-128mb would have been better I think -- gpus have faster ram than most any other consumer or industry device.

edit: okay, sorry to be OT but if you wanted to make it CPU mining only, why wouldn't you just set the memory requirement to be 1 gigabyte per thread?  Most computers right now have 4-16GB of RAM --> 4-16 threads, which would be terrible on a GPU with only 1-2GB of RAM.  You could make the blockchain halving occur every 18 months and then with the blockchain halving increase the amount of RAM required by 2 eg (1GB -> 2GB).  In accordance with Moore's law, that would keep the quantity of RAM being used on target for a CPU and most likely always above that provided for by a GPU.

So why didn't artforz do this in the first place?

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
smoothie
Legendary
*
Offline Offline

Activity: 2492
Merit: 1473


LEALANA Bitcoin Grim Reaper


View Profile
July 21, 2012, 06:49:29 AM
 #164

lets say they are "easy" to make......it will cost millions for production to start.

I answered my own question in the android miner thread. even running the optimized neon code from pooler an a9 isn't power competitive.

still, settings for scrypt using 32-128mb would have been better I think -- gpus have faster ram than most any other consumer or industry device.

edit: okay, sorry to be OT but if you wanted to make it CPU mining only, why wouldn't you just set the memory requirement to be 1 gigabyte per thread?  Most computers right now have 4-16GB of RAM --> 4-16 threads, which would be terrible on a GPU with only 1-2GB of RAM.  You could make the blockchain halving occur every 18 months and then with the blockchain halving increase the amount of RAM required by 2 eg (1GB -> 2GB).  In accordance with Moore's law, that would keep the quantity of RAM being used on target for a CPU and most likely always above that provided for by a GPU.

So why didn't artforz do this in the first place?

well if u start another chain that does make mining only feasible for cpus im sure you will have many interested parties wanting to help the project

███████████████████████████████████████

            ,╓p@@███████@╗╖,           
        ,p████████████████████N,       
      d█████████████████████████b     
    d██████████████████████████████æ   
  ,████²█████████████████████████████, 
 ,█████  ╙████████████████████╨  █████y
 ██████    `████████████████`    ██████
║██████       Ñ███████████`      ███████
███████         ╩██████Ñ         ███████
███████    ▐▄     ²██╩     a▌    ███████
╢██████    ▐▓█▄          ▄█▓▌    ███████
 ██████    ▐▓▓▓▓▌,     ▄█▓▓▓▌    ██████─
           ▐▓▓▓▓▓▓█,,▄▓▓▓▓▓▓▌          
           ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌          
    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓─  
     ²▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓╩    
        ▀▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▀       
           ²▀▀▓▓▓▓▓▓▓▓▓▓▓▓▀▀`          
                   ²²²                 
███████████████████████████████████████

. ★☆ WWW.LEALANA.COM        My PGP fingerprint is A764D833.                  History of Monero development Visualization ★☆ .
LEALANA BITCOIN GRIM REAPER SILVER COINS.
 
Luke-Jr
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
July 21, 2012, 06:56:02 AM
 #165

well if u start another chain that does make mining only feasible for cpus im sure you will have many interested parties wanting to help the project
That is a technical impossibility.

smoothie
Legendary
*
Offline Offline

Activity: 2492
Merit: 1473


LEALANA Bitcoin Grim Reaper


View Profile
July 21, 2012, 07:15:33 AM
 #166

well if u start another chain that does make mining only feasible for cpus im sure you will have many interested parties wanting to help the project
That is a technical impossibility.

And of course you are the "know it all". So please elaborate...

███████████████████████████████████████

            ,╓p@@███████@╗╖,           
        ,p████████████████████N,       
      d█████████████████████████b     
    d██████████████████████████████æ   
  ,████²█████████████████████████████, 
 ,█████  ╙████████████████████╨  █████y
 ██████    `████████████████`    ██████
║██████       Ñ███████████`      ███████
███████         ╩██████Ñ         ███████
███████    ▐▄     ²██╩     a▌    ███████
╢██████    ▐▓█▄          ▄█▓▌    ███████
 ██████    ▐▓▓▓▓▌,     ▄█▓▓▓▌    ██████─
           ▐▓▓▓▓▓▓█,,▄▓▓▓▓▓▓▌          
           ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌          
    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓─  
     ²▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓╩    
        ▀▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▀       
           ²▀▀▓▓▓▓▓▓▓▓▓▓▓▓▀▀`          
                   ²²²                 
███████████████████████████████████████

. ★☆ WWW.LEALANA.COM        My PGP fingerprint is A764D833.                  History of Monero development Visualization ★☆ .
LEALANA BITCOIN GRIM REAPER SILVER COINS.
 
Rubberduckie
Legendary
*
Offline Offline

Activity: 1442
Merit: 1000



View Profile
July 21, 2012, 07:23:52 AM
 #167

well if u start another chain that does make mining only feasible for cpus im sure you will have many interested parties wanting to help the project
That is a technical impossibility.

And of course you are the "know it all". So please elaborate...

I was under the impression Luke Jr didn't like Alt chains

-ck
Legendary
*
Offline Offline

Activity: 4046
Merit: 1622


Ruu \o/


View Profile WWW
July 21, 2012, 07:35:09 AM
Last edit: July 21, 2012, 08:32:27 AM by ckolivas
 #168

GIT TREE UP FOR THE BRAVE! (This is not remotely a final release candidate)

https://github.com/ckolivas/cgminer/tree/newscrypt

Be aware that bad parameters will almost routinely crash your GPUs and there is no easy way to know what will and won't work.

--lookup-gap <arg>  Set GPU lookup gap for scrypt mining, comma separated
--thread-concurrency <arg> Set GPU thread concurrency for scrypt mining, comma separated
--scrypt            Use the scrypt algorithm for mining (litecoin only)

For the 7970s I used the following:

--scrypt --lookup-gap 2 --thread-concurrency 8192 -g 4 -I 13

Don't go above intensity 13.

Blow yourselves away and be prepared for many reboots....

edit: No there is no windows binary as yet...

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
July 21, 2012, 08:25:42 AM
 #169

I have been playing around with it on my 6800. The good news: No crashes just yet! The bad news, I can't get it to hash matching my reaper config as much as I can.

Code:
./cgminer --scrypt --url lc.ozco.in:9332 --lookup-gap 2  --thread-concurrency 6144 --userpass Something.other:orsomething

 [2012-07-21 10:21:57] Started cgminer 2.5.0
 [2012-07-21 10:21:58] Probing for an alive pool
 [2012-07-21 10:21:58] Long-polling activated for http://lc.ozco.in:9332/LP
 [2012-07-21 10:21:58] Pool 0 http://lc.ozco.in:9332 alive
 [2012-07-21 10:21:58] Disabling extra threads due to dynamic mode.
 [2012-07-21 10:21:58] Tune dynamic intensity with --gpu-dyninterval
 [2012-07-21 10:21:58] Rejected 097da80a.83f4e600 GPU 0  (target-miss)
 [2012-07-21 10:21:58] Rejected 3cb45b47.b230be19 GPU 0  (target-miss)
 [2012-07-21 10:21:59] Pool 0 communication failure, caching submissions
 [2012-07-21 10:21:59] Pool 0 communication resumed, submitting work
 [2012-07-21 10:21:59] Rejected 44a60e0c.b480ab39 GPU 0  (target-miss)
 [2012-07-21 10:21:59] Pool 0 communication failure, caching submissions
 [2012-07-21 10:21:59] Pool 0 communication resumed, submitting work
 [2012-07-21 10:21:59] Rejected 4283d0ef.0d61d08c GPU 0  (target-miss)
 [2012-07-21 10:21:59] Pool 0 communication failure, caching submissionsSegmentation fault (core dumped)

If anybody can get it to work on a 6800 please let me know your settings.

ckolivas: Can I somehow get some debug information for you, or is that not necessary at this point.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
-ck
Legendary
*
Offline Offline

Activity: 4046
Merit: 1622


Ruu \o/


View Profile WWW
July 21, 2012, 08:30:20 AM
 #170

Don't go over intensity 13. Other than that, you're all on your own to experiment. It is slightly different to raper[sic] so it will need different parameters.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
July 21, 2012, 08:41:48 AM
Last edit: July 21, 2012, 09:27:07 AM by Tachikoma
 #171

Forgetting about reaper settings actually helped and it boots properly now. Problem now is all my shares are rejected, I will try to mess around with them till I get some accepted shares Smiley

Edit

Got working settings on my 6800:

Code:
./cgminer --scrypt -I 11 -g 1 --url lc.ozco.in:9332 --lookup-gap 2 --thread-concurrency 2048 --userpass Someone.something:orother

  • Setting the thread-concurrency higher will segfault the app.
  • Setting intensity higher then 11 will result in more invalid shares then valid once
  • Setting lookup-gap of 1 will segfault the app
  • Setting lookup-gap over 2 will slow down the mhash

At these settings I'm mining at 145Mhash, which is 55Mhash slower then reaper for me at the moment.

Waiting to hear other members experiences.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
Tittiez
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



View Profile
July 21, 2012, 10:38:31 AM
 #172

Uploading a win32 build, give me a few.

I think we should make a thread for bug reports/best settings/etc and leave this thread for the discussion only, so its not clogged with the bug reports that are about to flow in.

Edit:

win32: http://www.mediafire.com/?8mztfftmwcl0bqc

Includes the required .dll files.
-ck
Legendary
*
Offline Offline

Activity: 4046
Merit: 1622


Ruu \o/


View Profile WWW
July 21, 2012, 10:44:11 AM
 #173

By the way I think I can improve marginally on the kernel with time, but for the moment, it is what it is...

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Tittiez
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



View Profile
July 21, 2012, 10:49:59 AM
Last edit: July 21, 2012, 11:01:31 AM by Tittiez
 #174

Well have my bug report, it seems setting the concurrency too high gives a:
Code:
Error: clSetKernelArg of all params failed.

I can't go any higher then 3200 for the concurrency.

My 5770 pulls 130kh/s
My 6850 pulls 170kh/s

(The above is also without overclocks)

Code:
cgminer --scrypt -o x -u x -p x --lookup-gap 2 --thread-concurrency 3200 -I 13 -g 4

Its a start! Cheesy


Edit:

With some small overclocks:


Seeing cgminer mine scrypt, its like a dream.
-ck
Legendary
*
Offline Offline

Activity: 4046
Merit: 1622


Ruu \o/


View Profile WWW
July 21, 2012, 11:02:34 AM
 #175

I'm not taking any "bug reports", only what works. Try lower threads for higher concurrencies and vice versa and so on. All combinations that worked on raper consider irrelevant on this code.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Tittiez
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



View Profile
July 21, 2012, 11:05:06 AM
 #176

I'm not taking any "bug reports", only what works. Try lower threads for higher concurrencies and vice versa and so on. All combinations that worked on raper consider irrelevant on this code.

Nice to know, I will try that.
abbeytim
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 21, 2012, 12:18:31 PM
 #177

thx for releasing ckolivas

played around a little max i could get was

420 total kh/s on a 5830 and 5850 in a pc

where as reaper gets 563 kh/s total

i will play around with it later thx again for releasing it

thx for compiling a windows build Tittiez


 
--thread-concurrency 8192 -I 13 -g 1 were my settings if i set - g any higher it would slow to 16kh/s and i also tried 6144  and 3200 for concurrency

hope this helps others
abbeytim
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 21, 2012, 12:26:53 PM
 #178

doing about 430kh/s now

heres a screenshot

https://i.imgur.com/JBBoK.jpg


excuse my messy desktop  Grin
abbeytim
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 21, 2012, 12:29:01 PM
Last edit: July 21, 2012, 12:47:41 PM by abbeytim
 #179

excuse the solidcoin icon too thats from way back Wink


one question do you have share threads 18 default i know thats what i have in reaper

im not a programer so was just wondering
abbeytim
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 21, 2012, 12:51:28 PM
 #180

heres reaper for comparison

Pages: « 1 2 3 4 5 6 7 8 [9] 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!