Bitcoin Forum
March 19, 2024, 04:22:45 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 07, 2013, 06:45:43 AM
 #81

I have updated the Windows build with psychocoder's changes:

https://github.com/cdmackie/rpcminer-mod (use the master branch)

We'll merge them together shortly.

To just run, you only need the bin folder, and run the rpcminer-mod-cuda.exe. There is no need for the ptx files anymore.

To build yourself, you need MSVC 2010 and the CUDA SDK 5.x.

Please post any errors or successes.

This version of C:\miners\rpcminer nvopt\rpcminer-mod-cuda.exe is not compatible with the version of Windows you're running. Ch
eck your computer's system information to see whether you need a x86 (32-bit) or
 x64 (64-bit) version of the program, and then contact the software publisher.

Error message when starting from command line. Win 7 x64
1710822165
Hero Member
*
Offline Offline

Posts: 1710822165

View Profile Personal Message (Offline)

Ignore
1710822165
Reply with quote  #2

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

Posts: 1710822165

View Profile Personal Message (Offline)

Ignore
1710822165
Reply with quote  #2

1710822165
Report to moderator
1710822165
Hero Member
*
Offline Offline

Posts: 1710822165

View Profile Personal Message (Offline)

Ignore
1710822165
Reply with quote  #2

1710822165
Report to moderator
1710822165
Hero Member
*
Offline Offline

Posts: 1710822165

View Profile Personal Message (Offline)

Ignore
1710822165
Reply with quote  #2

1710822165
Report to moderator
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 07, 2013, 07:01:45 AM
Last edit: April 07, 2013, 07:25:54 AM by charliemaggot
 #82


This version of C:\miners\rpcminer nvopt\rpcminer-mod-cuda.exe is not compatible with the version of Windows you're running.


Er..odd. Nothing changed since last version working from yesterday?

Can you download Dependency Walker from http://www.dependencywalker.com/ (the x86 version) and run it and open the rpcminer-mod-cuda.exe file and see if you get any errors. An error is typically a file shown in red in the top left tree.
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 07, 2013, 08:07:51 AM
 #83


This version of C:\miners\rpcminer nvopt\rpcminer-mod-cuda.exe is not compatible with the version of Windows you're running.


Er..odd. Nothing changed since last version working from yesterday?

Can you download Dependency Walker from http://www.dependencywalker.com/ (the x86 version) and run it and open the rpcminer-mod-cuda.exe file and see if you get any errors. An error is typically a file shown in red in the top left tree.

I downloaded the x64 version since that is the OS I have. Output below:

https://i.imgur.com/TBOh3eV.png
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 07, 2013, 11:22:16 AM
 #84

HI,

I have testet the windows version on Windows7 64.

I start the program and the cudart32_50.dll or cudart64_50.dll was mist. I install cuda for windows https://developer.nvidia.com/cuda-downloads and than all run.
It can be that this is a sideeffect from switching to runtime library of cuda.

If an error shows that bitconminer.cpp:174 crash that the parameter -gpugrid to 256 or 512, it came from windows intern limit that no calculation on gpu can run longer than 4 sec.

With GT555M I get:

22.3 - 22.6 MHash/s with OpenCL
22.3 - 22.9 MHash/s with CUDA

I put allw links to reposetories and Errors to the top post.
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 07, 2013, 05:16:42 PM
 #85

@InqBit Just seems like the file is corrupted. Does it match the one on gibhub? Can you try downloading it again? You will need to 32bit CUDA SDK, or at least cudart32_50.dll if that isn't included in the 64bit version. I hadn't built 64bit, as there were 3rd party dependencies, but I might try and them them later.

@psychocoder Seems there are some other ways around the time-out issue:

1) As you say, change grid values
2) Unplug the monitor from the card... assuming you aren't using it Smiley
3) Change registry settings to increase the time-out. See http://msdn.microsoft.com/en-us/library/windows/hardware/ff569918(v=vs.85).aspx. Perhaps only for the hardcore and if it's going to make a significant difference.

Were the 22.3-22.9 values you got on your GT555M in Windows what you expected? Is it the same as Unix?
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 07, 2013, 06:38:06 PM
 #86

Quote
Were the 22.3-22.9 values you got on your GT555M in Windows what you expected? Is it the same as Unix?
Can't test it under linux. Thats a Laptop with 2 GPUs it was not possible to run the miner under linux :-(

I hope we get some results from a user with a GTX Titan.
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 07, 2013, 07:34:40 PM
 #87

@InqBit Just seems like the file is corrupted. Does it match the one on gibhub? Can you try downloading it again? You will need to 32bit CUDA SDK, or at least cudart32_50.dll if that isn't included in the 64bit version. I hadn't built 64bit, as there were 3rd party dependencies, but I might try and them them later.


Downloaded & installed the x64 CUDA dev software & the .exe is just crashing now. I re-downloaded all the files this morning & was getting an error about the cudart32 file, & that's when I downloaded the CUDA package.

It begins to start, then crashes after outputting:

Client will start 1 miner threads
Work will be refreshed every 4000 ms
2 GPU GUDA device(s) found
<src\cuda\bitcoinminercuda.cpp>:54

Event log below:

Faulting application name: rpcminer-mod-cuda.exe, version: 0.0.0.0, time stamp: 0x5161065f
Faulting module name: rpcminer-mod-cuda.exe, version: 0.0.0.0, time stamp: 0x5161065f
Exception code: 0x40000015
Fault offset: 0x0002eadc
Faulting process id: 0x19ac
Faulting application start time: 0x01ce33c69eee3f83
Faulting application path: C:\miners\rpcminer nvopt\rpcminer-mod-cuda.exe
Faulting module path: C:\miners\rpcminer nvopt\rpcminer-mod-cuda.exe
Report Id: dd0fe4b3-9fb9-11e2-94d6-001fbc083cc7
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
April 07, 2013, 08:21:05 PM
 #88

I can confirm im getting the same thing..

when running rpc a window pops up and says

the program cant start because cuda32_50_35.dll is missing from your computer..

seems something went whacko Smiley
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 07, 2013, 09:11:58 PM
 #89


Downloaded & installed the x64 CUDA dev software & the .exe is just crashing now. I re-downloaded all the files this morning & was getting an error about the cudart32 file, & that's when I downloaded the CUDA package.


Ok, whilst building a debug version to try and track your issue down, I found out that there is an error in the error handler. So based on the line you had the error, it's that the CUDA device driver didn't initialise properly. Do you have the right and latest drivers?

I've fixed the error handler and uploaded a new binary so you should see a more meaningful message.
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 07, 2013, 09:12:45 PM
 #90

I can confirm im getting the same thing..

when running rpc a window pops up and says

the program cant start because cuda32_50_35.dll is missing from your computer..

seems something went whacko Smiley

Do you have 32-bit CUDA SDK 5.0 installed?
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
April 07, 2013, 09:43:05 PM
Last edit: April 07, 2013, 11:05:24 PM by gateway
 #91

Quote

Do you have 32-bit CUDA SDK 5.0 installed?

I get the same error, no I never installed cuda since I wasnt compiling this, I have the latest nvidia drivers tho since this is my uber gaming rig.. Wink

any chance to include the dll?

EDIT: .. installed 32bit version of cuda 5 from nvidias site.. now when I run the miner I the program crashs.. its not missing the dll .. but

Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU GUDA device(s) found
<src\cuda\bitcoinminercuda.cpp>:54[CUDA] Error: invalid device ordinal
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 07, 2013, 10:04:53 PM
Last edit: April 07, 2013, 10:27:24 PM by InqBit
 #92


Downloaded & installed the x64 CUDA dev software & the .exe is just crashing now. I re-downloaded all the files this morning & was getting an error about the cudart32 file, & that's when I downloaded the CUDA package.


Ok, whilst building a debug version to try and track your issue down, I found out that there is an error in the error handler. So based on the line you had the error, it's that the CUDA device driver didn't initialise properly. Do you have the right and latest drivers?

I've fixed the error handler and uploaded a new binary so you should see a more meaningful message.


I am 1 version behind on drivers, will download the latest ones.

Latest error with newest rpcminer-mod-cuda (1 version behind on drivers fyi)

Client will start 1 miner threads
Work will be refreshed every 4000 ms
2 GPU GUDA device(s) found
<src\cuda\bitcoinminercuda.cpp>:54[CUDA] Error: invalid device ordinal
Could not retrieve work from RPC server.
CURL return value = 7

edit: Latest drivers, 314.22, same error as above.
coastermonger
Sr. Member
****
Offline Offline

Activity: 367
Merit: 250

Find me at Bitrated


View Profile
April 08, 2013, 02:23:29 AM
 #93

I'm trying out the windows version with a GTX 670 and it doesn't seem to be working

I can confirm that I've installed CUDA dev software 5.0
I also have updated drivers including cudart32_50_35.dll

When clicking on the rpcminer-mod-cuda.exe file the black cmd screen comes up and an error window immediately says "rpcminer-mod-cuda.exe has stopped working"

On the cmd window in the background it says

Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU CUDA device(s) found
<srcudbitcoinmindercuda.cpp>:54[CUDA] Error: invalid device ordinal
Error:invalid device ordinal

When I run the debugger it tells me there is a Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.  This is usually the result of calling a function declared with one calling convention with a function pointer declared with a different calling convention

To be honest I wasn't sure where exactly to extract the zip files, or how to make a file that alters how the executable runs...  Any help will be greatly appreciated.  Post your address and I'll tip you my first bitcent or so

Bitrated user: Rees.
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 08, 2013, 02:25:05 AM
 #94

I've added the cudart32_50_35.dll to the binaries so it can be downloaded, although you've probably got it by now.

I think there is a bug if you don't specify the gpu flag, e.g. using "-gpu" and not something like "-gpu=0". So can you try explicitly setting it 0, 1 or whatever.

If you still get an error, there should be a rpcminer.dmp file created in the same folder. Can you send it to me, charlie (at) legmail.com
InqBit
Newbie
*
Offline Offline

Activity: 27
Merit: 0



View Profile
April 08, 2013, 04:33:46 AM
 #95

I sent you my rpcminer.dmp file from most recent attempt.

Trying to set the -gpu flag made no difference. The video driver stops responding if that helps.
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 08, 2013, 05:59:45 AM
 #96

Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU CUDA device(s) found
<srcudbitcoinmindercuda.cpp>:54[CUDA] Error: invalid device ordinal
Error:invalid device ordinal

Mh, the selection of your device crash. I add later some more output which device is selected. In most cases there is a problem with the driver.
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
April 08, 2013, 06:18:53 AM
 #97

Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 GPU CUDA device(s) found
<srcudbitcoinmindercuda.cpp>:54[CUDA] Error: invalid device ordinal
Error:invalid device ordinal

Mh, the selection of your device crash. I add later some more output which device is selected. In most cases there is a problem with the driver.

I'm seeing the same results, yesterdays build I was able to run, today with the changes.. aka required cudart and then when having it provides the same output..

GTX 680
charliemaggot
Member
**
Offline Offline

Activity: 79
Merit: 10



View Profile
April 08, 2013, 06:23:45 AM
 #98

Did you try the latest?...from about 3hrs ago, as there was a bug fix if no gpu parameter was specified.
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 08, 2013, 06:36:20 AM
 #99

I have deinstalled my cuda and run it under windows withe the dll from the repo. All worked fine.

Can you please post the commandline which you use to start the miner and all output from the miner.
psychocoder (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
April 08, 2013, 06:46:57 AM
 #100

@charliemaggot

I have updated bitcoinminer.cpp in my repo. I disable the hard crash if a error came out of the device selection. Normaly if no cudaSetDevice is called the driver select the first device. I have not tested the code because I do the changes in my webbrowser, but I think it compile^^
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!