Bitcoin Forum
March 19, 2024, 03:21:50 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 »  All
  Print  
Author Topic: NVIDIA Kepler (K20) from 134MHash/s to 330MHash/s with CUDA  (Read 73284 times)
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 08, 2013, 07:00:32 AM
 #101

I did a full repull of the files from charlie's github and it is working now, using only 1 of my 2 gpu's. I did uninstall the CUDA dev prog as well after seeing you did, and pulled the correct file it needed from github.

As of now, not seeing any difference in hash rate on a Fermi card, but I assume that's what was expected.
1710818510
Hero Member
*
Offline Offline

Posts: 1710818510

View Profile Personal Message (Offline)

Ignore
1710818510
Reply with quote  #2

1710818510
Report to moderator
1710818510
Hero Member
*
Offline Offline

Posts: 1710818510

View Profile Personal Message (Offline)

Ignore
1710818510
Reply with quote  #2

1710818510
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710818510
Hero Member
*
Offline Offline

Posts: 1710818510

View Profile Personal Message (Offline)

Ignore
1710818510
Reply with quote  #2

1710818510
Report to moderator
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 08, 2013, 07:15:40 AM
 #102

Here was my output fwiw. GTX 480

C:\miners\rpcminer nvopt>rpcminer-mod-cuda.exe -url=api.bitcoin.cz:8332 -user=user -password=password -gpugrid=512 -gputhreads=480 -gpu=0
Client will start 1 miner threads
Work will be refreshed every 4000 ms
2 GPU GUDA device(s) found
CUDA initialized
Search Configuration for gpu named: GeForce GTX 480
Your device:
   - 15 streaming multiprocessors (SM)
   - can run sm version 200
   - bitcoin miner is optimized for 3 gpugrids per SM
   - max value for gpugrid parameter is 65535
max nonce 3FFFFFFF
Done allocating CUDA resources for (512,256)
iterations on gpu=32 blocks=512 threads=256
Iterations: 255,hashs per iteration 15994212185991544832
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff
Found nonce 364CFF6C
2013-04-08 07:11:01 Found Hash!
Hashs found: 1
Sending to server: {"method":"getwork","params":["000000029bddf49cc3f72f75bf4552
d589df0fb9ec95184c247082e00000009200000000ffb19deae961efc905812ff5b1fcf69ec34f2 7
c9d0ba4194749c538e3ceb2ca751626d7e1a022fbe6cff4c3600000080000000000000000000000 0
000000000000000000000000000000000000000000000000000000000080020000"],"id":1}
Server sent: {"result": true, "id": "1", "error": null}
Found nonce AE9CEA4
2013-04-08 07:11:03 Found Hash!
Hashs found: 2
Sending to server: {"method":"getwork","params":["000000029bddf49cc3f72f75bf4552
d589df0fb9ec95184c247082e000000092000000000c048fe68ab3317714aaee783c242a630feb0 1
86961ef159df4949318f8688e051626d851a022fbea4cee90a00000080000000000000000000000 0
000000000000000000000000000000000000000000000000000000000080020000"],"id":1}
Server sent: {"result": true, "id": "1", "error": null}
137694 khash/s
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 08, 2013, 07:38:24 AM
 #103

I've just added the 64-bit build, in a separate branch https://github.com/cdmackie/rpcminer-mod/tree/x64.

Grab the whole repo (or just bin) and run it from within bin as before.

I don't imagine you'll see much difference, but if anyone could try it out so I can make it the default.

Now must sleep...
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 08, 2013, 08:55:10 AM
 #104

@InqBit: is 137694 khash/s the first shown hash rate? Please run the miner 5 min and than look to the hash rate. The first hash rate is always lower because the first kernel call takes very long.
I see you run the code with without -aggression, please add -aggression=8  or 7 to you parameter to get more performance. -gputhreads is not needed because it is ignored and hard set to 256.

theoretic calculation rate for GTX480: 1401*15/(3733/32+1194/16)=109 MHash/s   (magic numbers are the count of operations from the binary for this implementation)

Mhh in my theoretic calculation  I assumed 109 MHash/s for a GTX480. I think I must check if my operation count for fermi is right.
Can someone with a GTX480 run the code under linux without -gpugrid.
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 08, 2013, 09:01:59 AM
Last edit: April 08, 2013, 09:13:40 AM by InqBit
 #105

@InqBit: is 137694 khash/s the first shown hash rate? Please run the miner 5 min and than look to the hash rate. The first hash rate is always lower because the first kernel call takes very long.
I see you run the code with without -aggression, please add -aggression=8  or 7 to you parameter to get more performance. -gputhreads is not needed because it is ignored and hard set to 256.

theoretic calculation rate for GTX480: 1401*15/(3733/32+1194/16)=109 MHash/s   (magic numbers are the count of operations from the binary for this implementation)

Mhh in my theoretic calculation  I assumed 109 MHash/s for a GTX480. I think I must check if my operation count for fermi is right.
Can someone with a GTX480 run the code under linux without -gpugrid.

I just made the appropriate changes and started a new run. Will let you know in a few how it works out.

FWIW, I've been running ~140-145'ish on cgminer, overclocked to 800 core (700 stock). This is my general use machine, so I didn't have aggression set to keep desktop usable, but will run at 7 for testing for you. I just checked my average hashrate on cgwatcher, and it is 140.1.

edit: 10 minutes later

C:\miners\rpcminer nvopt>rpcminer-mod-cuda.exe -url=api.bitcoin.cz:8332 -user=user -password=pass -gpugrid=512 -gpu=0 -aggression=7


last 5 hashrates
140345 khash/s
140360 khash/s
140052 khash/s
139525 khash/s
140080 khash/s
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 08, 2013, 09:03:47 AM
 #106

I've just added the 64-bit build, in a separate branch https://github.com/cdmackie/rpcminer-mod/tree/x64.

Grab the whole repo (or just bin) and run it from within bin as before.

I don't imagine you'll see much difference, but if anyone could try it out so I can make it the default.

Now must sleep...


I'm running it now, works as is.
Skami
Member
**
Offline Offline

Activity: 103
Merit: 10



View Profile WWW
April 08, 2013, 12:02:07 PM
 #107

@InqBit: is 137694 khash/s the first shown hash rate? Please run the miner 5 min and than look to the hash rate. The first hash rate is always lower because the first kernel call takes very long.
I see you run the code with without -aggression, please add -aggression=8  or 7 to you parameter to get more performance. -gputhreads is not needed because it is ignored and hard set to 256.

theoretic calculation rate for GTX480: 1401*15/(3733/32+1194/16)=109 MHash/s   (magic numbers are the count of operations from the binary for this implementation)

Mhh in my theoretic calculation  I assumed 109 MHash/s for a GTX480. I think I must check if my operation count for fermi is right.
Can someone with a GTX480 run the code under linux without -gpugrid.

I just made the appropriate changes and started a new run. Will let you know in a few how it works out.

FWIW, I've been running ~140-145'ish on cgminer, overclocked to 800 core (700 stock). This is my general use machine, so I didn't have aggression set to keep desktop usable, but will run at 7 for testing for you. I just checked my average hashrate on cgwatcher, and it is 140.1.

edit: 10 minutes later

C:\miners\rpcminer nvopt>rpcminer-mod-cuda.exe -url=api.bitcoin.cz:8332 -user=user -password=pass -gpugrid=512 -gpu=0 -aggression=7


last 5 hashrates
140345 khash/s
140360 khash/s
140052 khash/s
139525 khash/s
140080 khash/s
What hashrate where you getting without cuda?

gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
April 08, 2013, 04:45:44 PM
Last edit: April 08, 2013, 05:50:57 PM by gateway
 #108

64 bit version tests:

my results.. for 680


C:\Users\gateway\Desktop\rpcminer-mod-x64\bin>rpcminer-mod-cuda.exe -url=btcguild.com:8332 -user=xxx -password=xxx -gpugrid=2048 -gputhreads=256 -gpu=0
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU GUDA device(s) found
CUDA initialized
Search Configuration for gpu named: GeForce GTX 680
Your device:
   - 8 streaming multiprocessors (SM)
   - can run sm version 300
   - bitcoin miner is optimized for 5 gpugrids per SM
   - max value for gpugrid parameter is 2147483647
max nonce 3FFFFFFF
Done allocating CUDA resources for (2048,256)
iterations on gpu=32 blocks=2048 threads=256
Iterations: 63,hashs per iteration 16777216
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff


btw when I exit the app it kills my display driver..

my results for 560ti

C:\Users\stevet\Desktop\rpcminer-mod-x64\bin>rpcminer-mod-cuda.exe -url=btcguild.com:8332 -user=xxx -password=xxx -gpu=0
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU GUDA device(s) found
CUDA initialized
Search Configuration for gpu named: GeForce GTX 560 Ti
Your device:
   - 8 streaming multiprocessors (SM)
   - can run sm version 210
   - bitcoin miner is optimized for 3 gpugrids per SM
   - max value for gpugrid parameter is 65535
max nonce 3FFFFFFF
Autotuning is on because no gridsize is given
To big grid size fixed!!
Done allocating CUDA resources for (65535,256)
iterations on gpu=32 blocks=65535 threads=256
Iterations: 2,hashs per iteration 536862720
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff
<src\cuda\bitcoinminercuda.cpp>:180[CUDA] Error: unknown error

app crashes..
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 08, 2013, 06:25:43 PM
 #109

64 bit version tests:

my results.. for 680


C:\Users\gateway\Desktop\rpcminer-mod-x64\bin>rpcminer-mod-cuda.exe -url=btcguild.com:8332 -user=xxx -password=xxx -gpugrid=2048 -gputhreads=256 -gpu=0
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU GUDA device(s) found
CUDA initialized
Search Configuration for gpu named: GeForce GTX 680
Your device:
   - 8 streaming multiprocessors (SM)
   - can run sm version 300
   - bitcoin miner is optimized for 5 gpugrids per SM
   - max value for gpugrid parameter is 2147483647
max nonce 3FFFFFFF
Done allocating CUDA resources for (2048,256)
iterations on gpu=32 blocks=2048 threads=256
Iterations: 63,hashs per iteration 16777216
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff

Can you run the miner same minits that we can see the hashrate. My driver under windows also crash, thats windows like shutdown^^

my results for 560ti

C:\Users\stevet\Desktop\rpcminer-mod-x64\bin>rpcminer-mod-cuda.exe -url=btcguild.com:8332 -user=xxx -password=xxx -gpu=0
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU GUDA device(s) found
CUDA initialized
Search Configuration for gpu named: GeForce GTX 560 Ti
Your device:
   - 8 streaming multiprocessors (SM)
   - can run sm version 210
   - bitcoin miner is optimized for 3 gpugrids per SM
   - max value for gpugrid parameter is 65535
max nonce 3FFFFFFF
Autotuning is on because no gridsize is given
To big grid size fixed!!
Done allocating CUDA resources for (65535,256)
iterations on gpu=32 blocks=65535 threads=256
Iterations: 2,hashs per iteration 536862720
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff
<src\cuda\bitcoinminercuda.cpp>:180[CUDA] Error: unknown error

app crashes..

Plese use -aggression=6 as parameter, the gpu is to slow and braek the kernel run limit.
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 08, 2013, 06:53:57 PM
 #110

What hashrate where you getting without cuda?

guiminer poclbm gives me ~137.5
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
April 08, 2013, 07:35:16 PM
 #111


64 bit version tests:

my results.. for 680


C:\Users\gateway\Desktop\rpcminer-mod-x64\bin>rpcminer-mod-cuda.exe -url=btcguild.com:8332 -user=xxx -password=xxx -gpugrid=2048 -gputhreads=256 -gpu=0
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU GUDA device(s) found
CUDA initialized
Search Configuration for gpu named: GeForce GTX 680
Your device:
   - 8 streaming multiprocessors (SM)
   - can run sm version 300
   - bitcoin miner is optimized for 5 gpugrids per SM
   - max value for gpugrid parameter is 2147483647
max nonce 3FFFFFFF
Done allocating CUDA resources for (2048,256)
iterations on gpu=32 blocks=2048 threads=256
Iterations: 63,hashs per iteration 16777216
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff

Can you run the miner same minits that we can see the hashrate. My driver under windows also crash, thats windows like shutdown^^

Here is what im seeing..

}
119645 khash/s
118523 khash/s
119082 khash/s
119110 khash/s
Found nonce 2A7B43AC
2013-04-08 19:32:46 Found Hash!
coastermonger
Sr. Member
****
Offline Offline

Activity: 367
Merit: 250

Find me at Bitrated


View Profile
April 08, 2013, 08:10:58 PM
 #112

I've got a GTX 670 and 50miner (via poclbm or cgminer) gives me about 92 mH/s. I'm wanting to see what this does

I'm going to ask a real noob question here, but where do I extract the 7zip files to?  Clicking on the .exe from the bin just causes it immediately open and then stop working, and I can't input any parameters. 

Bitrated user: Rees.
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 08, 2013, 08:26:18 PM
 #113

I've got a GTX 670 and 50miner (via poclbm or cgminer) gives me about 92 mH/s. I'm wanting to see what this does

I'm going to ask a real noob question here, but where do I extract the 7zip files to?  Clicking on the .exe from the bin just causes it immediately open and then stop working, and I can't input any parameters. 

Tomorrow I write you a simple Bach file To Start the Programm.
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 08, 2013, 08:31:24 PM
Last edit: April 08, 2013, 08:41:34 PM by charliemaggot
 #114

I'm going to ask a real noob question here, but where do I extract the 7zip files to?  Clicking on the .exe from the bin just causes it immediately open and then stop working, and I can't input any parameters.  

You don't need to extract 7z files unless you are compiling it yourself in Visual Studio.

Otherwise you just run it from the bin folder:

e.g.

rpcminer-mod-cuda.exe -url=http://<yourpool>:<poolport> -user=<username> -password=<password> -gpu=0 -gputhreads=256 -aggression=8

where
<yourpool> is your pool address, e.g. 127.0.0.1 if mining solo or something like api.bitcoin.cz
<poolport> is your pool's port, normally 8332
<username> is your pool login
<password> .. you guessed it

If you get an error whilst it's running, it may because the GPU processing is taking too long and by default Windows thinks the GPU has crashed after 5 seconds. So try reducing aggression, or add "-gpugrid=256" or "-gpugrid=512".

If you are still getting problems, can you include the error text you get.
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 08, 2013, 08:37:18 PM
 #115

I think the general crashing is just because the code is throwing an exception when it sees an error. I'll change it to exit nicely.

btw when I exit the app it kills my display driver..

Quote from: psychocoder
My driver under windows also crash, thats windows like shutdown

What exactly are you seeing here? I've only got an Amazon EC2 instance to test on, and I don't get an issue. You're Ctrl-C-ing?

gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
April 08, 2013, 09:12:15 PM
 #116

What hashrate where you getting without cuda?

guiminer poclbm gives me ~137.5

How does your 480 beat a 680? Smiley you overclocking at all?

Im getting around 122~ give or take with cgminer
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
April 08, 2013, 09:14:00 PM
 #117


Quote
What exactly are you seeing here? I've only got an Amazon EC2 instance to test on, and I don't get an issue. You're Ctrl-C-ing?



Yea im doing ctrl-c to exit out of the app in a dos prompt on win 7
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 08, 2013, 09:20:16 PM
 #118

What hashrate where you getting without cuda?

guiminer poclbm gives me ~137.5

How does your 480 beat a 680? Smiley you overclocking at all?

Im getting around 122~ give or take with cgminer

800 core, instead of 700. Pretty modest OC. Could probably go higher, but this is my main machine & don't want to risk blowing it up...
coastermonger
Sr. Member
****
Offline Offline

Activity: 367
Merit: 250

Find me at Bitrated


View Profile
April 09, 2013, 01:53:23 AM
 #119

Quote
You don't need to extract 7z files unless you are compiling it yourself in Visual Studio.

Otherwise you just run it from the bin folder:

e.g.

rpcminer-mod-cuda.exe -url=http://<yourpool>:<poolport> -user=<username> -password=<password> -gpu=0 -gputhreads=256 -aggression=8

where
<yourpool> is your pool address, e.g. 127.0.0.1 if mining solo or something like api.bitcoin.cz
<poolport> is your pool's port, normally 8332
<username> is your pool login
<password> .. you guessed it

If you get an error whilst it's running, it may because the GPU processing is taking too long and by default Windows thinks the GPU has crashed after 5 seconds. So try reducing aggression, or add "-gpugrid=256" or "-gpugrid=512".

If you are still getting problems, can you include the error text you get.

I really appreciate you guys being so patient with me.  But where exactly do I even input these commands?  I do know how to make a batch file, I go to notepad, type the commands I want and save it as a .bat, drag the file in the folder and try to run it, but this doesn't seem to work. 

Bitrated user: Rees.
coastermonger
Sr. Member
****
Offline Offline

Activity: 367
Merit: 250

Find me at Bitrated


View Profile
April 09, 2013, 02:08:06 AM
 #120

Okay! I actually got it to work properly.  I created a batch file in the same folder and this time actually included the words rpcminer-mod-cuda.exe at the beginning haha  Smiley I know this is pretty typical stuff for you guys but this is one of the first times I've had to deal with batch files.

Initially it crashed, then I added the command -gpugrid 512 and it worked properly. 
all the arguments I'm using are -gpu=0 -gputhreads=256 -aggression=8 -gpugrid=512

Normally, with a basic 50miner program my nvidia GTX 670 will max out at 92-93 mH/s, but now it seems to be pushing 96+ mh/s.  I'm going to continue to tinker and see if I can push it higher. 

Bitrated user: Rees.
Pages: « 1 2 3 4 5 [6] 7 8 9 10 11 »  All
  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!