Bitcoin Forum
December 06, 2016, 04:21:02 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
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 169202 times)
-ck
Staff
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
July 25, 2012, 02:52:47 PM
 #401

Okay I've experimented some more and
export GPU_MAX_ALLOC_PERCENT=100
will obviously cause a problem, but it gives me massive scope for trying different tc, etc since I can theoretically allocate 3GB on a 7970. However the code would try to allocate the largest buffer by default which is not right with this value now, so I've committed a change (to git) that will find the nearest buffer size that is a power of 2 between the thread concurrency buffer requirement and the maximum allocable ram.

Playing some more with my 7970s I found the values it was already running were pretty close to optimal. The only thing I found useful with the increased ram available was that I am now able to increase threads a little more (5 instead of 4) which afforded another 5kh per device.

The good news is that this should be what the 5x/6x miners were looking for on linux. I suggest you download the latest changes from git and start experimenting with TCs that are a multiple of your shader count after setting the above variable to 100%.

Wow - I am leaving work and was planning to try the parameter at home - and now I see that you already did my homework :-)


many thanks !!!
To say the lack of progress on scrypt performance is bugging me would be an understatement in the extreme. Thank you for spotting this, but I fear even this is not the holy grail. Goddamn witchcraft....

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
1481041262
Hero Member
*
Offline Offline

Posts: 1481041262

View Profile Personal Message (Offline)

Ignore
1481041262
Reply with quote  #2

1481041262
Report to moderator
1481041262
Hero Member
*
Offline Offline

Posts: 1481041262

View Profile Personal Message (Offline)

Ignore
1481041262
Reply with quote  #2

1481041262
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481041262
Hero Member
*
Offline Offline

Posts: 1481041262

View Profile Personal Message (Offline)

Ignore
1481041262
Reply with quote  #2

1481041262
Report to moderator
dellech
Jr. Member
*
Offline Offline

Activity: 36


View Profile
July 25, 2012, 04:54:41 PM
 #402

...

The good news is that this should be what the 5x/6x miners were looking for on linux. I suggest you download the latest changes from git and start experimenting with TCs that are a multiple of your shader count after setting the above variable to 100%.

Wow - I am leaving work and was planning to try the parameter at home - and now I see that you already did my homework :-)


many thanks !!!
To say the lack of progress on scrypt performance is bugging me would be an understatement in the extreme. Thank you for spotting this, but I fear even this is not the holy grail. Goddamn witchcraft....


I am excited !
git pull - make - start with the export and -D -T

 [2012-07-25 17:28:35] CL Platform vendor: Advanced Micro Devices, Inc.                   
 [2012-07-25 17:28:35] CL Platform name: AMD Accelerated Parallel Processing                   
 [2012-07-25 17:28:35] CL Platform version: OpenCL 1.2 AMD-APP (938.1)                   
 [2012-07-25 17:28:35] List of devices:                   
 [2012-07-25 17:28:35]  0       Cypress                   
 [2012-07-25 17:28:35] Selected 0: Cypress                   
 [2012-07-25 17:28:35] Long-polling activated for http://p2p:9327/long-polling                   
 [2012-07-25 17:28:35] Preferred vector width reported 4                   
 [2012-07-25 17:28:35] Max work group size reported 256                   
 [2012-07-25 17:28:35] Max mem alloc size is 536870912                   
 [2012-07-25 17:28:35] Selecting scrypt kernel                   
 [2012-07-25 17:28:35] GPU 0: selecting lookup gap of 2                   
 [2012-07-25 17:28:35] GPU 0: selecting thread concurrency of 7200                   
 [2012-07-25 17:28:35] No binary found, generating from source                   
 [2012-07-25 17:28:35] Setting worksize to 256                   
 [2012-07-25 17:28:35] cl_amd_media_ops found, setting BITALIGN                   
 [2012-07-25 17:28:35] BFI_INT patch requiring device found, patched source with BFI_INT                   
 [2012-07-25 17:28:35] CompilerOptions: -D LOOKUP_GAP=2 -D CONCURRENT_THREADS=7200 -D WORKSIZE=256 -D BITALIGN -D BFI_INT -D GOFFSET                   
 [2012-07-25 17:28:38] X-Roll-Ntime expiry set to 10

cgminer crashed but restarting with -g 1 lets it hash away with about 260 kH/s :-)


ATM it runs with
DISPLAY=:0 GPU_MAX_ALLOC_PERCENT=100 ../cgminerltc/cgminer -o http://p2p:9327 -u x -p y --scrypt --shaders 1440 -I 15 -g 1 --auto-fan --auto-gpu --gpu-engine 600-900 --gpu-memclock 1000 --temp-cutoff 85 --gpu-fan 20-70 --temp-overheat 75 --temp-target 65

-I 15 seems to be the sweet spot, only 3 kH/s less than -I 16  but 0.x% rejects instead of >10%


Thanks again !   ... and I may later try lower tc with -g 2 and expermient more :-)
grimd34th
Member
**
Offline Offline

Activity: 89


NOPE


View Profile
July 25, 2012, 05:22:53 PM
 #403

Image:

only get ~20 kh/s

Code:
cgminer --scrypt -I 16 --shaders 800
Bigal
Full Member
***
Offline Offline

Activity: 204



View Profile
July 25, 2012, 07:02:20 PM
 #404




I am excited !
git pull - make - start with the export and -D -T

 [2012-07-25 17:28:35] CL Platform vendor: Advanced Micro Devices, Inc.                    
 [2012-07-25 17:28:35] CL Platform name: AMD Accelerated Parallel Processing                    
 [2012-07-25 17:28:35] CL Platform version: OpenCL 1.2 AMD-APP (938.1)                    
 [2012-07-25 17:28:35] List of devices:                    
 [2012-07-25 17:28:35]  0       Cypress                    
 [2012-07-25 17:28:35] Selected 0: Cypress                    
 [2012-07-25 17:28:35] Long-polling activated for http://p2p:9327/long-polling                    
 [2012-07-25 17:28:35] Preferred vector width reported 4                    
 [2012-07-25 17:28:35] Max work group size reported 256                    
 [2012-07-25 17:28:35] Max mem alloc size is 536870912                    
 [2012-07-25 17:28:35] Selecting scrypt kernel                    
 [2012-07-25 17:28:35] GPU 0: selecting lookup gap of 2                    
 [2012-07-25 17:28:35] GPU 0: selecting thread concurrency of 7200                    
 [2012-07-25 17:28:35] No binary found, generating from source                    
 [2012-07-25 17:28:35] Setting worksize to 256                    
 [2012-07-25 17:28:35] cl_amd_media_ops found, setting BITALIGN                    
 [2012-07-25 17:28:35] BFI_INT patch requiring device found, patched source with BFI_INT                    
 [2012-07-25 17:28:35] CompilerOptions: -D LOOKUP_GAP=2 -D CONCURRENT_THREADS=7200 -D WORKSIZE=256 -D BITALIGN -D BFI_INT -D GOFFSET                    
 [2012-07-25 17:28:38] X-Roll-Ntime expiry set to 10

cgminer crashed but restarting with -g 1 lets it hash away with about 260 kH/s :-)


ATM it runs with
DISPLAY=:0 GPU_MAX_ALLOC_PERCENT=100 ../cgminerltc/cgminer -o http://p2p:9327 -u x -p y --scrypt --shaders 1440 -I 15 -g 1 --auto-fan --auto-gpu --gpu-engine 600-900 --gpu-memclock 1000 --temp-cutoff 85 --gpu-fan 20-70 --temp-overheat 75 --temp-target 65

-I 15 seems to be the sweet spot, only 3 kH/s less than -I 16  but 0.x% rejects instead of >10%


Thanks again !   ... and I may later try lower tc with -g 2 and expermient more :-)

Brilliant! that did the trick, don't know why I didn't try -g 1 before or did try it and something else was out of whack.

Still can only set the tc to a maximum of 4096 under ubuntu 12.04 (2048 for g 2 ) but now the intensity can go up to 12 without errors and the speed is nearly identical to reaper @ 1003 kh  

tc-4096  w-256  g-1  I-12

Edit: looks like tc 7200 works the best on a 5850


The Small Time Miner Pools   CryptoCoin Ticker   BTC 1EHV2BY8JcvpBqnMqq5BSkbZvFHT7ndpnz    LTC  LaBigaLvm7L8XT5urnwJW5MpoArBAjsk2X
Bigal
Full Member
***
Offline Offline

Activity: 204



View Profile
July 25, 2012, 07:21:10 PM
 #405

I need some help to compile CGMiner with Scrypt under Ubuntu 12.04 64 bits, 1 7970, Catalyst 12.6, AMDAPP v2.6...

What is the procedure?

Basically: git clone, checkout newscrypt, autogen, configure --enable-scrypt ... ?

Thanks!
Thiago

adl files in the adl-sdk folder

./autogen.sh
CFLAGS="-O2 -Wall -march=native -I/opt/AMDAPP/include" LDFLAGS="L/opt/AMDAPP/lib/x86_64" ./configure --enable-scrypt
make

The Small Time Miner Pools   CryptoCoin Ticker   BTC 1EHV2BY8JcvpBqnMqq5BSkbZvFHT7ndpnz    LTC  LaBigaLvm7L8XT5urnwJW5MpoArBAjsk2X
-ck
Staff
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
July 25, 2012, 09:29:31 PM
 #406

Image:

only get ~20 kh/s

Code:
cgminer --scrypt -I 16 --shaders 800
You'll have to fine tune it with thread concurrency, shaders alone still doesn't cut it. I haven't found the optimum autotune as of yet, and I'm not sure there will be one.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
forsetifox
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 26, 2012, 12:26:25 AM
 #407

Thanks for your work on this Conman. =3 And thanks for the people that donated to him.

Here's where I am right now. It will mine on the Nvidia fine it seems but the ATI GPU isn't working correctly.
I'm using the 12.4 catalyst with the 2.7 SDK for the ATI GPU. I could not find a working DL link for the 2.6 SDK.



This is what "cgminer -n" says.



I've got one monitor hooked up to the first GPU (Nvidia). I've tried the gpu-map option and cannot get it to work correctly. I suspect windows thinks both adapters are hooked up to the monitor. >.>
-ck
Staff
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
July 26, 2012, 12:29:43 AM
 #408


Use --gpu-platform 1 for your AMD device.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
forsetifox
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 26, 2012, 12:36:30 AM
 #409

Code:
cgminer.exe -o http://litecoinpool.org:9332 -u username -p password --intensity 4 --scrypt --shaders 800 --gpu-platform 1

Same result as before.
-ck
Staff
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
July 26, 2012, 12:39:48 AM
 #410

Code:
cgminer.exe -o http://litecoinpool.org:9332 -u username -p password --intensity 4 --scrypt --shaders 800 --gpu-platform 1

Same result as before.

You will still need to read up about the gpu map. However you wont be able to mine on the AMD device and the NVIDIA device from the same cgminer instance regardless; you must choose one platform for each instance of cgminer.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
forsetifox
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 26, 2012, 12:43:41 AM
 #411

I don't want to mine on the Nvidia adapter I want to mine on the ATI adapter. CGminer wants to mine on the Nvidia adapter. The platform switch doesn't seem to do anything.

From what I see ..

[2012-07-25 17:49:35] Platform 0 devices: 1
[2012-07-25 17:49:35]  0       GeForce GTX 460
[2012-07-25 17:49:35] Platform 1 devices: 1
[2012-07-25 17:49:35]  0       Juniper

They both say "0". That isn't covered in your README that I see so the gpu-map command won't work?
-ck
Staff
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
July 26, 2012, 12:50:02 AM
 #412

I don't want to mine on the Nvidia adapter I want to mine on the ATI adapter. CGminer wants to mine on the Nvidia adapter. The platform switch doesn't seem to do anything.
That does not compute. It should...  Huh

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
forsetifox
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 26, 2012, 01:09:39 AM
 #413

Making some headway. Deleted the Nvidia OpenCL files and now I'm getting a "scrypt120724Juniperglg2tc8000w256l4.bin" being created in the cgminer folder. However still the same errors and hash rate.
-ck
Staff
Legendary
*
Offline Offline

Activity: 1988


Ruu \o/


View Profile WWW
July 26, 2012, 01:14:58 AM
 #414

Making some headway. Deleted the Nvidia OpenCL files and now I'm getting a "scrypt120724Juniperglg2tc8000w256l4.bin" being created in the cgminer folder. However still the same errors and hash rate.

Now time to fiddle with the thread concurrency manually. Suggest 3200 or other multiples of 800.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
forsetifox
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 26, 2012, 01:46:02 AM
 #415

It's working now.

5770 850/1200, catalyst 12.4, SDK 2.7




Code:
cgminer.exe -o http://litecoinpool.org:9332 -u username -p password --in
tensity 18 --scrypt --shaders 800 --gpu-platform 1 --thread-concurrency 4000 --w
orksize 256
Cranky4u
Hero Member
*****
Offline Offline

Activity: 772



View Profile WWW
July 26, 2012, 02:07:10 AM
 #416

It's working now.

5770 850/1200, catalyst 12.4, SDK 2.7




Code:
cgminer.exe -o http://litecoinpool.org:9332 -u username -p password --in
tensity 18 --scrypt --shaders 800 --gpu-platform 1 --thread-concurrency 4000 --w
orksize 256

Is this on Win 7 or Linux?

Interested as I have 2*6770s just sitting around on a win7 doing nothing...pulled from my win 7 + 2* FPGA machine so I can run dedicated BTC and LTC machines

Greedi
Sr. Member
****
Offline Offline

Activity: 266


LitecoinTalk


View Profile WWW
July 26, 2012, 02:23:13 AM
 #417

It's working now.

5770 850/1200, catalyst 12.4, SDK 2.7




Code:
cgminer.exe -o http://litecoinpool.org:9332 -u username -p password --in
tensity 18 --scrypt --shaders 800 --gpu-platform 1 --thread-concurrency 4000 --w
orksize 256

Is this on Win 7 or Linux?

Interested as I have 2*6770s just sitting around on a win7 doing nothing...pulled from my win 7 + 2* FPGA machine so I can run dedicated BTC and LTC machines

I'm mining on 2*6770 on win 7.. here is my info i use to get the best.. 215 kh/s from both..

Code:
cgminer --scrypt -o http://litecoinpool.org:9332 -u username -p pass  --shaders 1536 -I 18 -g 1

LitecoinTalk - Sign up today!
Try out LTC-Aarade!
Buy Shares!
forsetifox
Sr. Member
****
Offline Offline

Activity: 266



View Profile
July 26, 2012, 03:58:44 AM
 #418

It's Windows 7 64 bit.
Greedi
Sr. Member
****
Offline Offline

Activity: 266


LitecoinTalk


View Profile WWW
July 26, 2012, 04:03:11 AM
 #419

It's Windows 7 64 bit.

also here

LitecoinTalk - Sign up today!
Try out LTC-Aarade!
Buy Shares!
Tittiez
Hero Member
*****
Offline Offline

Activity: 686



View Profile
July 26, 2012, 05:04:33 AM
 #420

I'm working on an idiots guide to setting up cgminer. Stay tuned.
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!