Bitcoin Forum
April 17, 2014, 01:10:26 AM *
News: ♦♦ A bug in OpenSSL, used by Bitcoin-Qt/Bitcoin Core, could allow your bitcoins to be stolen. Immediately updating Bitcoin Core to 0.9.1 is required in some cases, especially if you're using 0.9.0. Download. More info.
The same bug also affected the forum. Changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  All
  Print  
Author Topic: RPC Miners (CPU/4way/CUDA/OpenCL)  (Read 436045 times)
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 24, 2010, 07:27:43 PM
 #1

Here's some RPC miners for all those mining via RPC.  There's a CPU miner based on the Crypto++ code, a 4way miner using the 4way code included with Bitcoin, and a CUDA and OpenCL miner.  The included readme.txt has instructions on how to supply arguments to the miners.  Supplying a -help argument to the executable will show you the available options as well.

Want these miners as a screensaver?  See this thread.

Downloads (Updated 2011-02-27)
RPC Miner Windows Binaries
RPC Miner Source

Use the CUDA miner for NVidia cards.
Use the OpenCL miner for ATI cards.
Use CMake to compile from the source.

Tweaking command line parameters for the CUDA and OpenCL miners will be necessary if you want to get optimum performance.

1397697026
Hero Member
*
Offline Offline

Posts: 1397697026

View Profile Personal Message (Offline)

Ignore
1397697026
Reply with quote  #2

1397697026
Report to moderator
1397697026
Hero Member
*
Offline Offline

Posts: 1397697026

View Profile Personal Message (Offline)

Ignore
1397697026
Reply with quote  #2

1397697026
Report to moderator
BitcoinBULLBEARGET THE UNBEATABLE
BITCOIN TRADING FORECAST

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

Posts: 1397697026

View Profile Personal Message (Offline)

Ignore
1397697026
Reply with quote  #2

1397697026
Report to moderator
1397697026
Hero Member
*
Offline Offline

Posts: 1397697026

View Profile Personal Message (Offline)

Ignore
1397697026
Reply with quote  #2

1397697026
Report to moderator
1397697026
Hero Member
*
Offline Offline

Posts: 1397697026

View Profile Personal Message (Offline)

Ignore
1397697026
Reply with quote  #2

1397697026
Report to moderator
LZ
Staff
Hero Member
*****
Offline Offline

Activity: 1050


Satoshi everywhere!


View Profile WWW

Ignore
December 25, 2010, 12:52:32 PM
 #2

Just checked for compatibility with the server http://mining.bitcoin.cz/ and it works fine!
I think slush should add link to these miners on his website. Done a really great job! Cheesy

"Never invest unless you can afford to lose your entire investment."  ©  S3052
Feel free to contact me using Bitmessage: BM-GtRPz1ESAoFCGjHwD2c3y8McqzXjjo1f
Barnabe
Newbie
*
Offline Offline

Activity: 11


View Profile

Ignore
December 25, 2010, 04:16:31 PM
 #3

What are the best settings for a  ATI 5850m ?

Ps: Your program is running fine good job  Cheesy
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 27, 2010, 03:21:21 PM
 #4

What are the best settings for a  ATI 5850m ?

Ps: Your program is running fine good job  Cheesy

Play with the -aggression, -gputhreads, and -gpugrid parameters.

dishwara
Hero Member
*****
Offline Offline

Activity: 1162


Truth may get delay, but NEVER fails


View Profile

Ignore
December 27, 2010, 03:55:49 PM
 #5

Help needed for rpcminer

C:\Users\Administrator\Desktop\bitcoin-rpcminer-20101224-win32bin\rpcminer-cpu.exe -gpu -url=http://mining.bitcoin.cz:8332 -user=hidden -password=hidden -threads=2
If i run this i get around 2000+ khash & also hash for every 30 minutes or so.

But if i run this
C:\Users\Administrator\Desktop\bitcoin-rpcminer-20101224-win32bin\rpcminer-opencl.exe -gpu -url=http://mining.bitcoin.cz:8332 -user=hidden -password=hidden

i get this


C:\Users\Administrator\Desktop\bitcoin-rpcminer-20101224-win32bin>C:\Users\Admin
istrator\Desktop\bitcoin-rpcminer-20101224-win32bin\rpcminer-opencl.exe -gpu -ur
l=http://mining.bitcoin.cz:8332 -user=hidden -password=hidden
Client will start 1 miner threads
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Create context rval=0
Create command queue rval=0
Creating program with source
Building program
Build program rval=-11
build STATUS:■   
build LOG:<program source>:66:2: error: call to 'rotate' is ambiguous
        sharound(A1,B1,C1,D1,E1,F1,G1,H1,in->m_merkle,0x428A2F98);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<program source>:43:46: note: instantiated from:
#define sharound(a,b,c,d,e,f,g,h,x,K) {t1=h+(rotateright(e,6)^rotateright(e,11)^
rotateright(e,25))+(g^(e&(f^g)))+K+x; t2=(rotateright(a,2)^rotateright(a,13)^rot
ateright(a,22))+((a&b)|(c&(a|b))); d+=t1; h=t1+t2;}
                                             ^
<program source>:41:30: note: instantiated from:
#define rotateright(x,bits) (rotate(x,32-bits))
                             ^~~~~~
<built-in>:2967:24: note: candidate function
ulong __OVERLOADABLE__ rotate(ulong, ulong);
                       ^
<built-in>:2966:23: note: candidate function
long __OVERLOADABLE__ rotate(long, long);
                      ^
<built-in>:2965:23: note: candidate function
uint __OVERLOADABLE__ rotate(uint, uint);
                      ^
<built-in>:2964:22: note: candidate functi☻╚)▬☻2╥tEv∟BCreate kernel rval=-45
Done allocating OpenCL resources for (16,16)
Finding best configuration step end (16,16) 3ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (16,32)
Finding best configuration step end (16,32) 3ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (16,64)
Finding best configuration step end (16,64) 2ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (16,128)
Finding best configuration step end (16,128) 2ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (16,256)
Finding best configuration step end (16,256) 2ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (32,16)
Finding best configuration step end (32,16) 2ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (32,32)
Finding best configuration step end (32,32) 3ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (32,64)
Finding best configuration step end (32,64) 3ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (32,128)
Finding best configuration step end (32,128) 2ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (32,256)
Finding best configuration step end (32,256) 2ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (64,16)
Finding best configuration step end (64,16) 3ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (64,32)
Finding best configuration step end (64,32) 2ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (64,64)
Finding best configuration step end (64,64) 2ms  prev best=9223372036854775807ms

Done allocating OpenCL resources for (64,128)
Finding best configuration step end (64,128) 2ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (64,256)
Finding best configuration step end (64,256) 2ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,16)
Target = ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000
Finding best configuration step end (128,16) 3ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,32)
Finding best configuration step end (128,32) 2ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,64)
Finding best configuration step end (128,64) 3ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,128)
Finding best configuration step end (128,128) 3ms  prev best=9223372036854775807
ms
Done allocating OpenCL resources for (128,256)
Finding best configuration step end (128,256) 2ms  prev best=9223372036854775807
ms
Done allocating OpenCL resources for (16,16)
17422 khash/s
19043 khash/s
19026 khash/s
18905 khash/s


Even though it shows 18000+ khash, 10 times more than cpu generation, i dont get any hash found even i run for hours.
I have nvidia zotac geforce 9400GT 1GB graphics card with driver from zotac. Version 258.96.
I don't understand what is the problem.
I even tried 260 version nvidia driver, still same.
Any one know solution?
Also every time i start bitcoin 0.3.19 ,  i get wxWidgets debug alert
But cancelling allows bitcoin to work correctly , send & receive bitcoins.
Some one help to solve problem.
Thanks.
 
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 27, 2010, 04:25:06 PM
 #6

Help needed for rpcminer

Use the CUDA miner for NVidia cards.  The OpenCL kernel code was unable to compile on your system, that's why it doesn't work.

puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 29, 2010, 04:05:12 PM
 #7

The first post has been updated with a new release.  Now you can specify how often work gets requested from the server, and you can specify a url to show server stats in the client.

uncaer9
Member
**
Offline Offline

Activity: 88


View Profile

Ignore
December 29, 2010, 04:49:38 PM
 #8

Hello. I'm new at this forum. When i run make, I'm getting this:

Quote
[  1%] Building NVCC (Device) object cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
/usr/include/surface_functions.h: In function ‘void surf1Dread(T*, surface<void, 1>, int, int, cudaSurfaceBoundaryMode)’:                                                            
/usr/include/surface_functions.h:100:95: error: there are no arguments to ‘__surf1Dreadc1’ that depend on a template parameter, so a declaration of ‘__surf1Dreadc1’ must be available
/usr/include/surface_functions.h:100:95: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/surface_functions.h:101:96: error: there are no arguments to ‘__surf1Dreads1’ that depend on a template parameter, so a declaration of ‘__surf1Dreads1’ must be available
/usr/include/surface_functions.h:102:94: error: there are no arguments to ‘__surf1Dreadu1’ that depend on a template parameter, so a declaration of ‘__surf1Dreadu1’ must be available
/usr/include/surface_functions.h:103:94: error: there are no arguments to ‘__surf1Dreadu2’ that depend on a template parameter, so a declaration of ‘__surf1Dreadu2’ must be available
/usr/include/surface_functions.h:104:95: error: there are no arguments to ‘__surf1Dreadu4’ that depend on a template parameter, so a declaration of ‘__surf1Dreadu4’ must be available
/usr/include/surface_functions.h: In function ‘void surf2Dread(T*, surface<void, 2>, int, int, int, cudaSurfaceBoundaryMode)’:
/usr/include/surface_functions.h:460:98: error: there are no arguments to ‘__surf2Dreadc1’ that depend on a template parameter, so a declaration of ‘__surf2Dreadc1’ must be available
/usr/include/surface_functions.h:461:99: error: there are no arguments to ‘__surf2Dreads1’ that depend on a template parameter, so a declaration of ‘__surf2Dreads1’ must be available
/usr/include/surface_functions.h:462:97: error: there are no arguments to ‘__surf2Dreadu1’ that depend on a template parameter, so a declaration of ‘__surf2Dreadu1’ must be available
/usr/include/surface_functions.h:463:97: error: there are no arguments to ‘__surf2Dreadu2’ that depend on a template parameter, so a declaration of ‘__surf2Dreadu2’ must be available
/usr/include/surface_functions.h:464:98: error: there are no arguments to ‘__surf2Dreadu4’ that depend on a template parameter, so a declaration of ‘__surf2Dreadu4’ must be available
CMake Error at CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.cmake:256 (message):
  Error generating file
  /home/uncaer9/bitcoin-remote-rpc-20101229-src/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
I'm using ArchLinux 64bit with gcc gcc-4.5.1-2 and cuda cuda-3.2.16-1. Can someone make amd64 binaries for me?
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 29, 2010, 09:26:02 PM
 #9

Hello. I'm new at this forum. When i run make, I'm getting this:

[  1%] Building NVCC (Device) object cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
/usr/include/surface_functions.h: In function ‘void surf1Dread(T*, surface<void, 1>, int, int, cudaSurfaceBoundaryMode)’:                                                            
/usr/include/surface_functions.h:100:95: error: there are no arguments to ‘__surf1Dreadc1’ that depend on a template parameter, so a declaration of ‘__surf1Dreadc1’ must be available

You can try to edit the cmake generated makefiles with the workaround found in this thread

uncaer9
Member
**
Offline Offline

Activity: 88


View Profile

Ignore
December 30, 2010, 10:59:11 AM
 #10

Hello. I'm new at this forum. When i run make, I'm getting this:

[  1%] Building NVCC (Device) object cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
/usr/include/surface_functions.h: In function ‘void surf1Dread(T*, surface<void, 1>, int, int, cudaSurfaceBoundaryMode)’:                                                            
/usr/include/surface_functions.h:100:95: error: there are no arguments to ‘__surf1Dreadc1’ that depend on a template parameter, so a declaration of ‘__surf1Dreadc1’ must be available

You can try to edit the cmake generated makefiles with the workaround found in this thread

Now i got second problem:

http://pastebin.com/iuPqmFZx


If I turn off GUI compilation, I get this:

http://pastebin.com/spHtyDcD

Could you make binary package please?
P.S Błąd means Error
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 30, 2010, 03:13:45 PM
 #11


If I turn off GUI compilation, I get this:

http://pastebin.com/spHtyDcD

Turn off the daemon compilation as well.  You only need the RPC miner.  Although you will run into the same issue with the miner, see below for the workaround that should compile.  GCC doesn't seem to support returning an iterator as the result of an erase on a container.

In rpcminerclient.cpp, replace the CleanupOldBlocks() method with this
Code:
void RPCMinerClient::CleanupOldBlocks()
{
std::vector<int64> m_erase;

for(std::map<int64,std::pair<int64,std::vector<unsigned char> > >::iterator i=m_blocklookup.begin(); i!=m_blocklookup.end(); i++)
{
if((*i).second.first<GetTimeMillis()-60000)
{
m_erase.push_back((*i).first);
}
}

for(std::vector<int64>::const_iterator i=m_erase.begin(); i!=m_erase.end(); i++)
{
m_blocklookup.erase((*i));
}
}

Quote
Could you make binary package please?

There's a windows binary in the first post.  All other platforms need to compile for themselves.

uncaer9
Member
**
Offline Offline

Activity: 88


View Profile

Ignore
December 30, 2010, 03:33:28 PM
 #12

http://pastebin.com/mZVZHJZx

I'm thinking about going back to "Evil Commercial OS."  Wink
If I will get some BTC soon, I will donate it to you for sure.
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 30, 2010, 04:22:10 PM
 #13

http://pastebin.com/mZVZHJZx

I'm thinking about going back to "Evil Commercial OS."  Wink
If I will get some BTC soon, I will donate it to you for sure.

It looks like it's still trying to build the remote miner.  You can edit the CMakeLists.txt file in the top directory, and turn off all the options except the RPC miner and the CUDA option if that's what you want.

uncaer9
Member
**
Offline Offline

Activity: 88


View Profile

Ignore
December 30, 2010, 04:40:19 PM
 #14

Quote
CMake Error at CMakeLists.txt:65 (MESSAGE):
  Nothing to build.  You must build the GUI, Daemon, or Remote Miner.

I just need working GPU Miner compatible with slush's pooled mining. I already tried Diablo's Miner, but openCL freezes my desktop.
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 30, 2010, 04:50:08 PM
 #15

Quote
CMake Error at CMakeLists.txt:65 (MESSAGE):
  Nothing to build.  You must build the GUI, Daemon, or Remote Miner.

You can safely remove the line from the CMakeLists.txt file where that message appears.

uncaer9
Member
**
Offline Offline

Activity: 88


View Profile

Ignore
December 30, 2010, 04:55:51 PM
 #16

Quote
[  6%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp: In static member function ‘static size_t HTTPRequest::ReadData(void*, size_t, size_t, void*)’:                                                                                
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp:101:3: error: ‘::memcpy’ has not been declared
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp: In static member function ‘static size_t HTTPRequest::WriteData(void*, size_t, size_t, void*)’:
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp:118:3: error: ‘::memcpy’ has not been declared
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o] Błąd 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Błąd 2
make: *** [all] Błąd 2
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 30, 2010, 05:02:14 PM
 #17

Quote
[  6%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp: In static member function ‘static size_t HTTPRequest::ReadData(void*, size_t, size_t, void*)’:                                                                               
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp:101:3: error: ‘::memcpy’ has not been declared
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp: In static member function ‘static size_t HTTPRequest::WriteData(void*, size_t, size_t, void*)’:
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/httprequest.cpp:118:3: error: ‘::memcpy’ has not been declared
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o] Błąd 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Błąd 2
make: *** [all] Błąd 2

At the top of httprequest.cpp and rpcrequest.cpp add this right after the other #includes
Code:
#include <cstring>

uncaer9
Member
**
Offline Offline

Activity: 88


View Profile

Ignore
December 30, 2010, 05:12:48 PM
 #18

http://pastebin.com/w7Qevuwh

After adding also #include<iostream> to httprequest.cpp it compiled, but it don't fix problem in second file.
puddinpop
Member
**
Offline Offline

Activity: 103


View Profile

Ignore
December 30, 2010, 07:33:31 PM
 #19

http://pastebin.com/w7Qevuwh

After adding also #include<iostream> to httprequest.cpp it compiled, but it don't fix problem in second file.

I've updated the source package in the first post with some of the compile fixes.  I think I got most of the issues in your paste, but I don't understand why this error happens here.

Code:
#
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/../minercommon/../util.h:155:5: error: previous declaration of ‘int OutputDebugStringF(const char*, ...)’ with ‘C++’ linkage
#
/usr/include/stdio.h:359:58: error: conflicts with new declaration with ‘C’ linkage
#
/home/uncaer9/bitcoin-remote-rpc-20101229-src/src/rpcminer/../minercommon/../util.h:156:5: error: previous declaration of ‘int my_snprintf(char*, size_t, const char*, ...)’ with ‘C++’ linkage

Maybe some of the other fixes will resolve this as well.

doublec
Hero Member
*****
Offline Offline

Activity: 1078


View Profile

Ignore
December 31, 2010, 04:25:19 AM
 #20

Trying to run the binaries on Windows it gives an error saying that OpenLDAP.DLL is missing. Should that be included in the .zip file?

Bitparking Bitcoin/Namecoin/IXCoin/Devcoin Merged Mining Pool (Stratum support, works with ASICs)
BitMessage: BM-BbwusEFHr8ZndbShVXEsbGMbvQ2qBiSh
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  All
  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!