Bitcoin Forum

Bitcoin => Mining => Topic started by: puddinpop on December 24, 2010, 07:27:43 PM



Title: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 24, 2010, 07:27:43 PM
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 (http://bitcointalk.org/index.php?topic=3030.0).

Downloads (Updated 2011-02-27)
RPC Miner Windows Binaries (http://www.mediafire.com/file/hduqoqdf3onqrod/bitcoin-rpcminer-20110227-win32bin.zip)
RPC Miner Source (http://www.mediafire.com/file/ve608cl5mk1ka3l/bitcoin-remote-rpc-20110227-src.zip)

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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on December 25, 2010, 12:52:32 PM
Just checked for compatibility with the server http://mining.bitcoin.cz/ (http://mining.bitcoin.cz/) and it works fine!
I think slush (http://bitcointalk.org/index.php?action=profile;u=2167) should add link to these miners on his website. Done a really great job! :D


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Barnabe on December 25, 2010, 04:16:31 PM
What are the best settings for a  ATI 5850m ?

Ps: Your program is running fine good job  :D


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 27, 2010, 03:21:21 PM
What are the best settings for a  ATI 5850m ?

Ps: Your program is running fine good job  :D

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


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on December 27, 2010, 03:55:49 PM
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 http://img41.imageshack.us/img41/3283/errorcfb.jpg
But cancelling allows bitcoin to work correctly , send & receive bitcoins.
Some one help to solve problem.
Thanks.
 


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 27, 2010, 04:25:06 PM
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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 29, 2010, 04:05:12 PM
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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uncaer9 on December 29, 2010, 04:49:38 PM
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?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 29, 2010, 09:26:02 PM
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 (http://forums.nvidia.com/index.php?showtopic=173213)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uncaer9 on December 30, 2010, 10:59:11 AM
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 (http://forums.nvidia.com/index.php?showtopic=173213)

Now i got second problem:

http://pastebin.com/iuPqmFZx (http://pastebin.com/iuPqmFZx)


If I turn off GUI compilation, I get this:

http://pastebin.com/spHtyDcD (http://pastebin.com/spHtyDcD)

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


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 30, 2010, 03:13:45 PM

If I turn off GUI compilation, I get this:

http://pastebin.com/spHtyDcD (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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uncaer9 on December 30, 2010, 03:33:28 PM
http://pastebin.com/mZVZHJZx (http://pastebin.com/mZVZHJZx)

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


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 30, 2010, 04:22:10 PM
http://pastebin.com/mZVZHJZx (http://pastebin.com/mZVZHJZx)

I'm thinking about going back to "Evil Commercial OS."  ;)
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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uncaer9 on December 30, 2010, 04:40:19 PM
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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 30, 2010, 04:50:08 PM
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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uncaer9 on December 30, 2010, 04:55:51 PM
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


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 30, 2010, 05:02:14 PM
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>


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uncaer9 on December 30, 2010, 05:12:48 PM
http://pastebin.com/w7Qevuwh

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


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 30, 2010, 07:33:31 PM
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.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: doublec on December 31, 2010, 04:25:19 AM
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?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 31, 2010, 03:23:28 PM
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?

openldap.dll is in the binary zip file.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on December 31, 2010, 11:26:45 PM
I've updated the first post with the latest release.  This fixes a crash that would occur when the work being hashed became stale due to connectivity issues with the server.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: WSDN on January 01, 2011, 08:39:22 PM
please any can post some screenshot with a shoort tutorial i have windows xp64 and a phenom x6 8gb ram and video card nvidia gt240 1 gb ram gddr5 i need use my video card with my processor i obtain 7800 khash/s =(


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: WSDN on January 01, 2011, 08:53:30 PM
 :-[
http://img827.imageshack.us/img827/6666/iniciando.jpg


and the results
http://img405.imageshack.us/img405/3555/resultadocb.jpg

please i need help!  ???



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 01, 2011, 09:45:23 PM

You have totally incorrect parameters.  Do rpcminer-cuda -help to see the available command line options.  You'll need at least -url, -user, -password, and -gpu if you want to use your video card.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: WSDN on January 02, 2011, 03:24:27 AM
thanks for the reply puddinpop

and is possible to use with my bitcoin client? or is only for use for a external pool service ?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 02, 2011, 03:45:15 PM
thanks for the reply puddinpop

and is possible to use with my bitcoin client? or is only for use for a external pool service ?

rpcminer-cuda -url=http://127.0.0.1:8332 -user=username -password=password -gpu


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: WSDN on January 02, 2011, 05:36:50 PM
Quote
rpcminer-cuda -url=http://127.0.0.1:8332 -user=username -password=password -gpu

thanks :D and other questions? i run cuda i an run generate in the client too or only one ?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 02, 2011, 08:21:35 PM
Quote
rpcminer-cuda -url=http://127.0.0.1:8332 -user=username -password=password -gpu

thanks :D and other questions? i run cuda i an run generate in the client too or only one ?

You can download the source from the first post and compile the GUI or daemon with the CUDA miner built in.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Ricochet on January 04, 2011, 05:24:10 AM
Successfully obtained a share on Slush's pooled mining service using this CUDA miner.  Was afraid it wasn't going to work properly for a bit there.  My only concern is that it constantly switches from a high number of khash/s to 0, back and forth, constantly.  See the following screenshot:

http://img703.imageshack.us/img703/9432/screenyh.png

Any ideas what could be causing this?  For what it's worth, the older CUDA miner when I used it on your alternative pooled mining method (with native generation) averaged out at 1700 khash/s.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: chorchonga on January 06, 2011, 07:57:27 PM
Thank you for this information!  I was able to get the CPU version to work with my clunky laptop. 

My ATI GPU is too old for the OpenCL version (at least I don't have opencl.dll anywhere on my main hard drive).  Are there any other miners that might work on an older ATI card?  I'm thinking my current machine is from late '07.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on January 06, 2011, 11:04:00 PM
Hi, I just tested your miners and it works nicely with my pool, so I added link to pool's homepage.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: UnVisible on January 15, 2011, 04:13:03 PM
Why when you run the CUDA version for me nothing works and there is an error?:

"Could not run because of its parallel configuration is incorrect. Additional information is contained in the application event log ...."

in the application event log:

Error when creating a context activation "D:\Temp\BITCOIN\remoteminer-cuda.exe". Could not be found dependent assembly "Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"". Use sxstrace.exe for detailed diagnosis.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 15, 2011, 05:02:35 PM
It seems that you need to install Microsoft Visual C++ 2005 SP1 Redistributable Package: 32-bit (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647), 64-bit (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eb4ebe2d-33c0-4a47-9dd4-b9a6d7bd44da).


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on January 16, 2011, 04:35:23 PM
Once I installed the ATI Stream SDK (v2.3) for my ATI Radeon HD 5500 Series my GPU mining finally worked!

I went from around 2,500khash/s (CPU) to an amazing 30,000khash/s (GPU).


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on January 16, 2011, 07:07:34 PM
Once I installed the ATI Stream SDK (v2.3) for my ATI Radeon HD 5500 Series my GPU mining finally worked!

I went from around 2,500khash/s (CPU) to an amazing 30,000khash/s (GPU).

Some one please tell what i need to download from where for my zotac geforce 9400GT 1GB graphics card.
I have 260 nvidia drivers. Is there anything like CUDA stream SDK?
I searched & found, CUDA toolkit, CUDA SDK, ... many things..
I dont know what are the things i download?
h**p://developer.nvidia.com/object/cuda_3_2_downloads.html#Windows XP, Windows Vista and Windows7

I have windows 7 ultimate 32 bit, intel quad core 2.66ghz, 3 gb ram.

Thanks........
Please some one help me.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 17, 2011, 07:41:16 AM
All you need is to install the latest drivers for your video card:
  • manual selection (http://www.nvidia.com/Download/Find.aspx) of NVIDIA drivers from all available;
  • automatic installation (http://www.nvidia.com/Download/Scan.aspx) of the latest NVIDIA drivers.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on January 17, 2011, 02:21:05 PM
260.99 is the latest driver & i am running it.
Any other help there?
Please


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on January 17, 2011, 04:42:30 PM
Trying CUDA on my laptop...

Quadro NVS 135M.  I have the 260.99 drivers and the 3.2 Dev Drivers.  The miner starts and does it's initial config, then errors out after a minute with:


..\..\src\cuda\bitcoinminercuda.cpp(147) : cudaSafeCall() Runtime API error : the launch timed out and was terminated.


These are my launch params:

rpcminer-cuda -url=http://mining.bitcoin.cz:8332 -user=PIMPSARENICE -password=EATMYCODFISH -gpu -aggression=2


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 17, 2011, 05:23:39 PM
dishwara, what command line options do you use?

BitCoinPurse, you have to use correct worker's login.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on January 17, 2011, 05:48:42 PM
BitCoinPurse, you have to use correct worker's login.

My logins for slush were just fakes for fun.  Are there other worker logins?  Where do I find/set those?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 17, 2011, 06:42:25 PM
In the Workers table: link (https://mining.bitcoin.cz/accounts/profile/). :)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on January 17, 2011, 07:19:12 PM
dishwara, what command line options do you use?



rpcminer-cuda.exe -gpu -url=http://mining.bitcoin.cz:8332 -user=###### -password=#########


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on January 17, 2011, 07:48:48 PM
Okay, finally got it to work with CUDA.  I had to set a GPUGRID option to 16.  I'm trying additional options and tracking each.

From the looks of it, there's a timeout reached before my system can fully allocate resources.



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: hacim on January 18, 2011, 09:02:55 AM
Well, I had success to compile the rpcminer, but it fails to link... arg, any ideas?

Code:
[  6%] Building NVCC (Device) object cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o
[ 12%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/sha256.cpp.o
[ 18%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/hex.cpp.o
In file included from /mnt/puddin/src/rpcminer/hex.cpp:19:
/mnt/puddin/src/rpcminer/hex.h:33:8: warning: extra tokens at end of #endif directive
[ 25%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o
[ 31%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
In file included from /mnt/puddin/src/rpcminer/rpcminerclient.cpp:22:
/mnt/puddin/src/rpcminer/hex.h:33:8: warning: extra tokens at end of #endif directive
[ 37%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminermain.cpp.o
[ 43%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerthreadcpu.cpp.o
[ 50%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcrequest.cpp.o
[ 56%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_reader.cpp.o
[ 62%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_value.cpp.o
[ 68%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_writer.cpp.o
[ 75%] Building C object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/minercommon/base64.c.o
[ 81%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/cryptopp/cpu.cpp.o
[ 87%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/cryptopp/sha.cpp.o
[ 93%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerthreadgpu.cpp.o
[100%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/remote/cuda/bitcoinminercuda.cpp.o
Linking CXX executable rpcminer
CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerthreadgpu.cpp.o: In function `RPCMinerThreadGPU::Run(void*)':
rpcminerthreadgpu.cpp:(.text+0x1ec): undefined reference to `CUDARunner::CUDARunner()'
rpcminerthreadgpu.cpp:(.text+0x280): undefined reference to `CUDARunner::FindBestConfiguration()'
rpcminerthreadgpu.cpp:(.text+0x533): undefined reference to `CUDARunner::RunStep()'
rpcminerthreadgpu.cpp:(.text+0x8c1): undefined reference to `CUDARunner::~CUDARunner()'
rpcminerthreadgpu.cpp:(.text+0x8de): undefined reference to `CUDARunner::~CUDARunner()'
collect2: ld returned 1 exit status
make[3]: *** [cmake-rpcminer/rpcminer] Error 1
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/rule] Error 2
make: *** [rpcminer] Error 2


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Manjago on January 20, 2011, 11:19:59 AM
rpcminer-cpu.exe -statsurl=http://mining.bitcoin.cz/stats/json - not working? But I get response from http://mining.bitcoin.cz/stats/json in browser :-()


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on January 20, 2011, 12:01:06 PM
rpcminer-cpu.exe -statsurl=http://mining.bitcoin.cz/stats/json - not working? But I get response from http://mining.bitcoin.cz/stats/json in browser :-()

Try to add ending slash to URL. There is redirect and rpcminer maybe don't handle it correctly...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Manjago on January 20, 2011, 12:06:19 PM
Try to add ending slash to URL. There is redirect and rpcminer maybe don't handle it correctly...

Thanks, your advice helped, and now everything is working fine!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: hacim on January 21, 2011, 05:25:01 AM
Well, I had success to compile the rpcminer, but it fails to link... arg, any ideas?

Code:
[  6%] Building NVCC (Device) object cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o
[ 12%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/sha256.cpp.o
[ 18%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/hex.cpp.o
In file included from /mnt/puddin/src/rpcminer/hex.cpp:19:
/mnt/puddin/src/rpcminer/hex.h:33:8: warning: extra tokens at end of #endif directive
[ 25%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o
[ 31%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
In file included from /mnt/puddin/src/rpcminer/rpcminerclient.cpp:22:
/mnt/puddin/src/rpcminer/hex.h:33:8: warning: extra tokens at end of #endif directive
[ 37%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminermain.cpp.o
[ 43%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerthreadcpu.cpp.o
[ 50%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcrequest.cpp.o
[ 56%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_reader.cpp.o
[ 62%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_value.cpp.o
[ 68%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_writer.cpp.o
[ 75%] Building C object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/minercommon/base64.c.o
[ 81%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/cryptopp/cpu.cpp.o
[ 87%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/cryptopp/sha.cpp.o
[ 93%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerthreadgpu.cpp.o
[100%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/remote/cuda/bitcoinminercuda.cpp.o
Linking CXX executable rpcminer
CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerthreadgpu.cpp.o: In function `RPCMinerThreadGPU::Run(void*)':
rpcminerthreadgpu.cpp:(.text+0x1ec): undefined reference to `CUDARunner::CUDARunner()'
rpcminerthreadgpu.cpp:(.text+0x280): undefined reference to `CUDARunner::FindBestConfiguration()'
rpcminerthreadgpu.cpp:(.text+0x533): undefined reference to `CUDARunner::RunStep()'
rpcminerthreadgpu.cpp:(.text+0x8c1): undefined reference to `CUDARunner::~CUDARunner()'
rpcminerthreadgpu.cpp:(.text+0x8de): undefined reference to `CUDARunner::~CUDARunner()'
collect2: ld returned 1 exit status
make[3]: *** [cmake-rpcminer/rpcminer] Error 1
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/rule] Error 2
make: *** [rpcminer] Error 2

It turns out that the problem is in the cmake-rpcminer/CMakeLists which has two incorrect paths. You need to get rid of /remote from the paths in CUDA_SRC and OPENCL_SRC, and then re-run cmake, and then it works!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: valam on January 21, 2011, 02:26:42 PM
How do I start rpcminer-cuda.exe on a remote computer?

According to RDP get this:


Microsoft Windows [Version 6.1.7600]
(C) Microsoft Corporation (Microsoft Corp.), 2009. All rights reserved.

C: \ Users \ administrator> C: \ miner \ rpcminer-cuda.exe-url = http://mining.bitcoin.cz:
8332-user = login.% Computername%-password = 111
Client will start a miner threads
Work will be refreshed every 4000 ms
.. \ .. \ Src \ cuda \ bitcoinminercuda.cpp (1935): cudaSafeCall () Runtime API error: no
CUDA-capable device is detected.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 21, 2011, 05:47:56 PM
As far as I know, you can not do it using RDP.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: valam on January 21, 2011, 06:13:30 PM
I find method!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 21, 2011, 06:14:47 PM
Yeah, you may create a batch file in the Startup folder and restart that remote computer. :)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: valam on January 21, 2011, 09:21:06 PM
psexec by Mark Rusinovich


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 22, 2011, 08:05:25 AM
Okay. :)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: romanoza on January 22, 2011, 09:56:43 AM
I'm sorry for the dumb question, but I do all from the build-unix.txt, how do i build package?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 22, 2011, 05:44:51 PM
I've updated the first post with the latest release.

This includes some make file fixes and speed improvements for the OpenCL miner.  Tweaking the compiler options have also tremendously increased the speed of the 4way hash in the Windows binaries for processors capable of SSE2.

Remember, to get the most out of the CUDA and OpenCL miner, you must tweak the options.  The defaults are just there to give you a baseline.

I'm sorry for the dumb question, but I do all from the build-unix.txt, how do i build package?
Use CMake.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: romanoza on January 22, 2011, 07:16:47 PM
Use CMake.
Thanks, but:
Code:
-- Configuring done
CMake Error in CMakeLists.txt:
  Cannot find source file "sha256.cpp".  Tried extensions .c .C .c++ .cc .cpp
  .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: walidzohair on January 22, 2011, 09:02:31 PM
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.

Downloads (Updated 2011-01-22)
RPC Miner Windows Binaries (http://www.mediafire.com/file/cgfq9nq47o444mb/bitcoin-rpcminer-20110122-win32bin.zip)
RPC Miner Source (http://www.mediafire.com/file/12zi3g2k2sy1wze/bitcoin-remote-rpc-20110122-src.zip)

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.

I have got geforce 8400 gs and i am using this command

C:\RPCminer>rpcminer-cuda  -url=http://mining.bitcoin.cz:8332 -user=XXX.X -password=XXX -statusurl=http://mining.bitcoin.cz/stats/json/ -threads=1 (or 2)

I get the mining started on my CPU with the normal cpu rates and the normal CPU usage (as i see it in task manager).

am i doing something wrong ?



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 22, 2011, 09:38:45 PM
Yep, -threads is the CPU only option. Read readme.txt file. ;)

Added: It should be equal to 1 or just do not use it if you use a GPU miner.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: walidzohair on January 22, 2011, 09:57:57 PM
Yep, -threads is the CPU only option. Read readme.txt file. ;)

So it is normal that (rpcminer-cuda) makes heavy use of CPU just as the (rpcminer-cpu) ?

Also about the Khashes .. I am not getting any increase in performace (always at 1100-2200) is that normal or do I have a weak card ? :)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 23, 2011, 12:58:37 AM
You may try to experiment with the -aggression option.
Code:
rpcminer-cuda -aggression=5 -url=http://mining.bitcoin.cz:8332 -user=login.suffix -password=password


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on January 23, 2011, 04:58:53 PM
If u have to use CUDA then better use poclbm_py2exe_20110104

Coz when ever i use rpcminer to run cuda then it takes 95% of GPU & also slows down pc,
While poclbm.exe -d0 uses cuda & 95% GPU, but no slow down of pc
Windows 7, 9400GT with 260.99 & also now the new 266.58 driver.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 28, 2011, 09:45:52 PM
I've updated the first post with a new release.  The CUDA miner is now using the driver API instead of the runtime API, and there's no more excess CPU usage when CUDA is running.  Also the CUDA and OpenCL kernels were optimized a bit to improve hashing speed.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: abitcoinuser on January 29, 2011, 07:04:50 PM
The most recent build from 1/29/2011 gives me 0 khash/s on both the cpu and cuda miners with options that were successful for the last build.  Any ideas?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 29, 2011, 07:23:51 PM
The most recent build from 1/29/2011 gives me 0 khash/s on both the cpu and cuda miners with options that were successful for the last build.  Any ideas?

I just double checked the cpu and CUDA miners in the archive, and they are working fine here.  If you are indeed passing the same parameters, your issue is most probably caused by not being able to connect to the RPC server.  It could also be a corrupt download, or incomplete unzip.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 29, 2011, 07:55:39 PM
Maybe a firewall?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on January 29, 2011, 10:44:00 PM
Same here... New version just reports 0 khash...  Firewall off.

C:\Users\Ghandi Gupta\Desktop\Miner>rpcminer-opencl.exe -url=http://mining.bitcoin.cz:8332 -user=xxxxx -password=xxxxxx
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_exte
nded_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_d
evice_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_
sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 29, 2011, 11:13:58 PM
Same here... New version just reports 0 khash...  Firewall off.

C:\Users\Ghandi Gupta\Desktop\Miner>rpcminer-opencl.exe -url=http://mining.bitcoin.cz:8332 -user=xxxxx -password=xxxxxx
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_exte
nded_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_d
evice_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_
sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s


I see at least 2 issues there.  The first is that you don't have a "Target = " message, which means you have not successfully retrieved work from the RPC server.  The second is that you don't have a "Build program rval=" message, which means the kernel is still being built.

Did the previous release of the OpenCL miner work on the same machine, and does the current CPU miner work on it?  Did you extract all the files in the archive to a new directory, not just over the old ones?  What graphics card do you have?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on January 29, 2011, 11:36:38 PM
I see at least 2 issues there.  The first is that you don't have a "Target = " message, which means you have not successfully retrieved work from the RPC server.  The second is that you don't have a "Build program rval=" message, which means the kernel is still being built.

Did the previous release of the OpenCL miner work on the same machine, and does the current CPU miner work on it?  Did you extract all the files in the archive to a new directory, not just over the old ones?  What graphics card do you have?

I did get the "Target =" message, it just didn't get in the paste.

Yes, the old OpenCL miner worked flawless, and the current CPU miner works too.  And yes, new directory for the new miner clients...

I have an ATI Radeon HD 5500 Series (Redwood) with Catalyst 10.11 drivers and ATI Stream 2.3.

My system is a W7 box with a AMD Phenom(tm) II X2 550 Processor


I doesn't seem to be "building the kernel"...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on January 29, 2011, 11:56:26 PM
You can use the .cl file from the last release.  If you are so inclined, you can edit the current .cl file and see which changes are keeping the kernel from building.  There weren't too many changes, so it should be obvious what the culprit is.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on January 30, 2011, 01:02:13 AM
And if you already removed the previous version, you may get it here: link (ftp://lzsaver.dlinkddns.com/_English/Currency/gpu/puddinpop/).


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: lior on February 01, 2011, 11:13:27 AM
hi,

is it possible to use Tor with the miner

and if so can you give me hint?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on February 01, 2011, 12:23:15 PM
is it possible to use Tor with the miner

It is possible, but the network latency is big problem then. It will slow down your miner a lot.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: suntiger on February 03, 2011, 10:31:59 PM
Is there any particular reason that the CUDA miner would only perform at maximum khash/s if its CLI status window were the foreground window? I'm seeing consistent drops from 16000khash/s to 6000-9000 khash/s when the window is not in the foreground, even if absolutely nothing is happening in whatever window is the foreground (even away from the computer).

System: Windows 7 Enterprise 32 bit, 2.9ghz Core2Duo, Geforce 9600GT, 3gb RAM.

Is there any way around this behavior? It poses problems for the time when I'm not actively using the computer, as if anything at all pops up in, say, the first hour of a six hour run, I lose quite a lot of potential khashes.

Also, is 16mhash about right for a 9600gt? I tried playing with the aggression parameter, but it only lagged the rest of the system more, it didn't increase max khash/s while foregrounded. Anything else I can do to bump performance up?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: swaits on February 04, 2011, 02:33:58 AM
Is there any particular reason that the CUDA miner would only perform at maximum khash/s if its CLI status window were the foreground window? I'm seeing consistent drops from 16000khash/s to 6000-9000 khash/s when the window is not in the foreground, even if absolutely nothing is happening in whatever window is the foreground (even away from the computer).

This seems to be a new bug in the 1/28 binaries. I'm seeing it too. The previous version did not exhibit this behavior.

Currently, if my RPC Miner is in the foreground, it does its usual ~39M. As soon as I minimize, or even just click away, it drops straight down to ~4M.

I'm on Windows 7 (64 bit), GeForce GTX 260, 12GB of system memory, i7-920 CPU.

I'm running the CUDA miner, with no special parameters. But, just in case it matters, this is how I launch the software (via batch file):

Code:
@echo off

echo Launching Bitcoin. Please wait ...

rem start bitcoin
cd "C:\Program Files (x86)\Bitcoin"
start /min /low bitcoin.exe -gen -server

rem wait ten seconds
ping 127.0.0.1 -n 10 -w 1000 > nul

rem start rpc miner
cd "C:\Program Files (x86)\Bitcoin\rpcminer"
start "RPC Miner" /min /low rpcminer-cuda.exe -gpu -url=http://127.0.0.1:8332/ -user=XXX -password=XXX

I suspect it has to do with the lower CPU utilization fix. Which, by the way, is working very well. But perhaps this is why???

Thanks,
Steve


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on February 04, 2011, 02:41:00 AM
I can not reproduce this bug. :-\


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: swaits on February 04, 2011, 04:28:20 PM
I can not reproduce this bug. :-\

Bummer. Ok, I'll go back to the prior version for now.

Perhaps we could take a look at the diffs between the versions? Is the source in a public repo?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LZ on February 04, 2011, 06:20:41 PM
you may get it here: link (ftp://lzsaver.dlinkddns.com/_English/Currency/gpu/puddinpop/).


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 04, 2011, 08:16:06 PM
I doesn't seem to be "building the kernel"...

Did you get it to work with the older kernel?


Is there any particular reason that the CUDA miner would only perform at maximum khash/s if its CLI status window were the foreground window?

No.  The hash rate is constant here whether the window is in the foreground or background.  You can try different graphics drivers (newer AND older) to see if that helps.  It could also be something with Windows 7 interfering with the priority of background apps.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on February 04, 2011, 11:53:10 PM
I doesn't seem to be "building the kernel"...
Did you get it to work with the older kernel?

No, I haven't been able to isolate the issue.  I tried to downgrade to the ATI SDK 2.1, but it didn't take on my crappy W7 box.

Also, I'm way out of my league tweaking .cl files. ;D

I'm happy with my 50Khash for now...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: DarkMatter on February 05, 2011, 07:19:56 PM
I doesn't seem to be "building the kernel"...
Did you get it to work with the older kernel?

No, I haven't been able to isolate the issue.  I tried to downgrade to the ATI SDK 2.1, but it didn't take on my crappy W7 box.

Also, I'm way out of my league tweaking .cl files. ;D

I'm happy with my 50Khash for now...

Not a W7 issue, using it right now (64bit) and with nvidia 8800gt (cuda) and no khash drops when in background.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: ledskof on February 06, 2011, 12:37:24 AM
Not a W7 issue, using it right now (64bit) and with nvidia 8800gt (cuda) and no khash drops when in background.

I thought he meant that the ATI Streaming SDK v 2.1 didn't take on his Windows 7 box.  I had the same problem with 2.1 and 2.2, which is why I'm running 2.3.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: BitCoinPurse on February 06, 2011, 02:39:43 AM
Not a W7 issue, using it right now (64bit) and with nvidia 8800gt (cuda) and no khash drops when in background.
I thought he meant that the ATI Streaming SDK v 2.1 didn't take on his Windows 7 box.  I had the same problem with 2.1 and 2.2, which is why I'm running 2.3.

That's was precisely it.  I'm stuck with the 2.3 SDK, though I've tried for days to downgrade...  I'm not in the mood to slick my OS...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FooDSt4mP on February 06, 2011, 09:47:26 PM
First off, thanks for the great work.  When I saw this, I was really excited to start using my GPU to mine.  Unfortunately, you are using cutil, which is not an official part of the CUDA SDK, and not in the linux version.  My compile fails with fatal error: cutil_inline.h: No such file or directory, and I confirmed that cutil_inline.h not anywhere in the SDK directory.  This is confirmed by a moderator at http://forums.nvidia.com/index.php?showtopic=192055 (http://forums.nvidia.com/index.php?showtopic=192055) . 
Quote
cutil is something used only for SDK samples to make code shorter and is not suitable for use in a real application. It is completely unsupported and not included with the CUDA toolkit
(don't use it, don't steal it from the SDK, just leave it alone and do error checking the right way) .
  So my question is, how widespread is the usage of cutil in the code?  If it's not too bad, I'll try to put together a patch, but this is the first time I've messed with CUDA.  If it's not something I can handle, I'll happily donate a few bitcoins to someone (as soon as I can mine them, my cpu hasn't turned up anything yet) for helping me get this running.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 08, 2011, 11:30:57 PM
First off, thanks for the great work.  When I saw this, I was really excited to start using my GPU to mine.  Unfortunately, you are using cutil, which is not an official part of the CUDA SDK, and not in the linux version.  My compile fails with fatal error: cutil_inline.h: No such file or directory, and I confirmed that cutil_inline.h not anywhere in the SDK directory.  This is confirmed by a moderator at http://forums.nvidia.com/index.php?showtopic=192055 (http://forums.nvidia.com/index.php?showtopic=192055) . 
Quote
cutil is something used only for SDK samples to make code shorter and is not suitable for use in a real application. It is completely unsupported and not included with the CUDA toolkit
(don't use it, don't steal it from the SDK, just leave it alone and do error checking the right way) .
  So my question is, how widespread is the usage of cutil in the code?  If it's not too bad, I'll try to put together a patch, but this is the first time I've messed with CUDA.  If it's not something I can handle, I'll happily donate a few bitcoins to someone (as soon as I can mine them, my cpu hasn't turned up anything yet) for helping me get this running.

The last release does not need cutil when compiling the CUDA RPC miner, and likewise the CUDA daemon or GUI miners, since they all share the same miner code.  Only the remote miners still need it.  If you are using CMake to create makefiles, it is likely you didn't turn off building of the remote miners.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FooDSt4mP on February 09, 2011, 08:38:55 AM
Ok, I did a make rpcminer, and it builds the kernel and everything fine, but fails on linking (undefined reference to `cuInit').  I have added the cuda lib directory to the ld config file and ran ldconfig as root.  I also tried setting the LD_LIBRARY_PATH with no success.  Perhaps there's a -lcuda missing somewhere, but I've never worked with CMake, so I have no idea where look.  Any ideas?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: t3h on February 10, 2011, 10:53:57 PM
The CUDA miner is working nicely on my GTX470. 80000kHash/sec stock, 105000kHash/sec overclocked to 775mhz (works fine on stock vCore). I can push ~115k out of it by overclocking further, but it gets unstable unless I raise the vCore, then my 500w PSU doesn't like it :)

Should have gotten into this earlier, it takes ages to mine anything now :|

Just one feature request: when you overclock too far, the display driver crashes and reboots. Can you detect this and reload the CUDA part? It keeps going with a stupidly large number of kHashes/sec (I think it's just silently failing), and never finds anything, so you come back and find that you haven't been mining for a few hours.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: flags8192 on February 11, 2011, 01:54:39 PM
Please help to compile, it fails, an error:

~/bitcoin-remote-rpc-20110128-src$ make
[  1%] Building NVCC (Device) object cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
Scanning dependencies of target bitcoin
[  2%] Building CXX object cmake-bitcoin/CMakeFiles/bitcoin.dir/__/src/db.cpp.o
In file included from /usr/local/include/wx-2.8/wx/wx.h:15,
                 from /home/flags8192/bitcoin-remote-rpc-20110128-src/src/headers.h:33,
                 from /home/flags8192/bitcoin-remote-rpc-20110128-src/src/db.cpp:5:
/usr/local/include/wx-2.8/wx/defs.h:42: error: #error "No Target! You should use wx-config program for compilation flags!"
In file included from /usr/local/include/wx-2.8/wx/cursor.h:24,
                 from /usr/local/include/wx-2.8/wx/event.h:22,

ps: ubuntu 10.10


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: epicenter on February 12, 2011, 05:41:37 AM
I have an ATI Radeon HD 5800
I tried running the cpu miner and it worked, but opencl wouldn't run.
So got the stream 2.3k SDK and now opencl can run, BUT
I cant get any work done. Same command line parameters in the cpu miner gets work done (~4500 hash/s)

Quote
C:\bitcoin-rpcminer-20110128-win32bin>rpcminer-opencl -url=http://mining.bitcoin.cz:8332 -user=XXX -password=XXX -gpu=0
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to device 0
Available extensions : cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_globa
l_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_exte
nded_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_shar
ing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt c
l_khr_d3d10_sharing
Defining AMDMEDIAOPS
Create context rval=0
Target = ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s

Compilation terminated.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Tolsi on February 12, 2011, 08:42:57 AM
I have ATI HD6870, ATI Stream 2.3 SDK, Win7sp1 x64 and I have a same problem as epicenter. Then I replaced bitcoinmineropencl.cl from r191 (bitcoin-remote-20101215-win32bin.zip) (newer are don't work, 0 khash/s), now I see:

Code:
>rpcminer-opencl.exe -url=http://mining.bitcoin.cz:8332 -user=*** -password=*** -statsurl=http://mining.bitcoin.cz/stats/json/
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_sharing
Defining AMDMEDIAOPS
Create context rval=0
Target = ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
Build program rval=0
build STATUS:
build LOG:C:\Users\...\AppData\Local\Temp\OCL7B85.tmp.cl(21): warning: type qualifier
          specified more than once
  __constant const uint f1=0xFF000000;
             ^

C:\Users\...\AppData\Local\Temp\OCL7B85.tmp.cl(22): warning: type qualifier
          specified more than once
  __constant const uint f2=0x00FF0000;
             ^

C:\Users\...\AppData\Local\Temp\OCL7B85.tmp.cl(23): warning: type qualifier
          specified more than once
  __constant const uint f3=0x0000FF00;
             ^

C:\Users\...\AppData\Local\Temp\OCL7B85.tmp.cl(24): warning: type qualifier
          specified more than once
  __constant const uint f4=0x000000FF;
             ^

C:\Users\...\AppData\Local\Temp\OCL7B85.tmp.cl(25): warning: type qualifier
          specified more than once
  __constant const uint f5=0xFFFFFFFF;
             ^

┌М♠°Ї√☻►┴i♥
Create kernel rval=0
Done allocating OpenCL resources for (16,16)
Finding best configuration step end (16,16) 4ms  prev best=9223372036854775807ms

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

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

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

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

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

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

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

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

Done allocating OpenCL resources for (64,128)
Finding best configuration step end (64,128) 0ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (64,256)
Finding best configuration step end (64,256) 1ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,16)
Finding best configuration step end (128,16) 1ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,32)
Finding best configuration step end (128,32) 0ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,64)
Finding best configuration step end (128,64) 1ms  prev best=9223372036854775807m
s
Done allocating OpenCL resources for (128,128)
Finding best configuration step end (128,128) 0ms  prev best=9223372036854775807
ms
Done allocating OpenCL resources for (128,256)
Finding best configuration step end (128,256) 1ms  prev best=9223372036854775807
ms
Done allocating OpenCL resources for (16,16)
37238 khash/s
49181 khash/s
48631 khash/s
Server Stats : 661 active workers at an estimated 0 khash/s
0 shares in current round, which started
....

I left it overnight and none blocks aren't resolved. In the morning I saw the same: 0 shares in current round, which started. In Bitcoin Pooled Mining I see Score 0.0000.
CPU miner works fine.
Today I will try to change bitcoinmineropencl.cl, but promise nothing, I do not know c.

And in http://pastebin.com/AvymGnMJ i see:

Model           Sp      Clk     W       Mhash/s Mhash/W
6870            1120    900     151     232.47  1.540

but i have max 60000 khash/s and 60% cpu load, 18% gpu load (not full) :(
screenshot (http://clip2net.com/clip/m44539/1297500775-clip-171kb.jpg)

ps with python OpenCL bitcoin miner i have ~230Mhash/s (http://clip2net.com/clip/m44539/1297505113-clip-107kb.png)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: nlai on February 12, 2011, 08:56:07 PM
What's the difference between the 4way and the crypto?

I'm using an Intel i7


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: sonihr on February 13, 2011, 07:56:37 AM
problem is the exactly the same as Epicenter. I have ATI radeon 4350 windows 7 64bit tried sdk 2.1 2.2 2.3...



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: flags8192 on February 13, 2011, 03:05:23 PM
like compile, but when you start error

./rpcminer-cuda -url=http://mining.bitcoin.cz:8332/ -user=xxxxxxx.xxxxxxxxx -password=xxxxxxxxx -statsurl=http://mining.bitcoin.cz/stats/json/
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to load CUDA module

what is Problem?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: WSDN on February 13, 2011, 09:38:06 PM
hi @puddinpop  i have the next problem :$ i have a new xp64 and downloading again yours miners with the old version of minners i not have any problem, but with new have this screen.

http://img62.imageshack.us/img62/5448/problemif.jpg

I reinstall my windows and deleted all my files for this i need to download again the miners if you have the old versions please put a link =)
thanks in advance


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 13, 2011, 10:19:18 PM
hi @puddinpop  i have the next problem :$ i have a new xp64 and downloading again yours miners with the old version of minners i not have any problem, but with new have this screen.

http://img62.imageshack.us/img62/5448/problemif.jpg

I reinstall my windows and deleted all my files for this i need to download again the miners if you have the old versions please put a link =)
thanks in advance


You need to install the Microsoft Visual C++ 2005 Redistributable Package (x86) (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=en)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: WSDN on February 13, 2011, 10:30:25 PM
Thanks friend continue working u are exellent! thanks again!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 13, 2011, 11:16:54 PM
Updated source to bitcoin SVN rev 241.  Downloads available in the first post.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Tolsi on February 14, 2011, 09:30:23 AM
Here is 0 khash/s on opencl version with ati hd6870 again.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: zholer on February 15, 2011, 12:26:02 AM
I first tried to build this on my ubuntu 10.04 system, but it failed with the same errors as flags8192. Experimenting with installing different version of wxWidgets did not help.
I finally git cloned from git://github.com/doublec/bitcoin-pool which seems to use pudinpop's code. This finally compiled on my machine as bitcoinr binary, but I can't figure out how to pass username as a parameter to it. Nothing in the readme file lets me do this.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dbitcoin on February 15, 2011, 01:05:58 PM
Problem with linux compilation.

Ubuntu 10.04, gcc 4.4.3
cmake buid configs without problems, all dependencies installed.

> make rpcminer

Code:
In file included from /src/bitcoin-rpc-miner/src/rpcminer/../minercommon/minerheaders.h:58,
                 from /src/bitcoin-rpc-miner/src/rpcminer/rpcminerclient.h:26,
                 from /src/bitcoin-rpc-miner/src/rpcminer/rpcminerclient.cpp:19:
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSizeOfCompactSize(uint64)’:
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:167: error: ‘USHRT_MAX’ was not declared in this scope
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:168: error: ‘UINT_MAX’ was not declared in this scope
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h: In function ‘void WriteCompactSize(Stream&, uint64)’:
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:180: error: ‘USHRT_MAX’ was not declared in this scope
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:187: error: ‘UINT_MAX’ was not declared in this scope
....



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 15, 2011, 11:52:43 PM
Here is 0 khash/s on opencl version with ati hd6870 again.

Did it build the kernel successfully or not?  You'll just have to find out what in the kernel is causing it not to build on your machine.

I first tried to build this on my ubuntu 10.04 system, but it failed with the same errors as flags8192. Experimenting with installing different version of wxWidgets did not help.

You don't need wxWidgest to compile just the rpc miners.  Set the appropriate CMake options to not compile the GUI.

Quote
I finally git cloned from git://github.com/doublec/bitcoin-pool which seems to use pudinpop's code. This finally compiled on my machine as bitcoinr binary, but I can't figure out how to pass username as a parameter to it. Nothing in the readme file lets me do this.

bitcoinr is the remote miner that works with my open source pool.  It does not work with the various RPC pools that others have.  And the readme does include the various options for the different binaries.


What's the difference between the 4way and the crypto?

I'm using an Intel i7

4way uses SSE2 instructions, which may be faster depending on the CPU.  The -cpu miner just uses the standard CPU mining found in the vanilla GUI client.

like compile, but when you start error

./rpcminer-cuda -url=http://mining.bitcoin.cz:8332/ -user=xxxxxxx.xxxxxxxxx -password=xxxxxxxxx -statsurl=http://mining.bitcoin.cz/stats/json/
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to load CUDA module

what is Problem?


You need to compile the .cu file targeting the 1.1, 1.2, and 2.0 CUDA architecture, and give the resulting cubin the appropriate name, and place it in the working directory before you start the miner.

Problem with linux compilation.

Ubuntu 10.04, gcc 4.4.3
cmake buid configs without problems, all dependencies installed.

> make rpcminer

Code:
In file included from /src/bitcoin-rpc-miner/src/rpcminer/../minercommon/minerheaders.h:58,
                 from /src/bitcoin-rpc-miner/src/rpcminer/rpcminerclient.h:26,
                 from /src/bitcoin-rpc-miner/src/rpcminer/rpcminerclient.cpp:19:
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSizeOfCompactSize(uint64)’:
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:167: error: ‘USHRT_MAX’ was not declared in this scope
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:168: error: ‘UINT_MAX’ was not declared in this scope
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h: In function ‘void WriteCompactSize(Stream&, uint64)’:
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:180: error: ‘USHRT_MAX’ was not declared in this scope
/src/bitcoin-rpc-miner/src/rpcminer/../minercommon/../serialize.h:187: error: ‘UINT_MAX’ was not declared in this scope
....


Maybe try to #include <limits> in minerheaders.h, before serialize.h is included.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: SondreB on February 16, 2011, 04:43:06 PM
Here is 0 khash/s on opencl version with ati hd6870 again.
I'm seeing o khash/s as well, with both rpcminer-cpu and rpcminer-cuda. Connecting to host http://mining.bitcoin.cz:8332.

Anyone else seeing this behavior?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Tolsi on February 16, 2011, 04:53:05 PM
Did it build the kernel successfully or not?  You'll just have to find out what in the kernel is causing it not to build on your machine.
Not. I tried to make small changes, but it was unsuccessful.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: pla on February 17, 2011, 02:35:50 PM
Heya... First, thanks for a great set of RPC miners!

I have a question about the CUDA miner... I have a crappy GeForce 8400GS, which pushes about 1500kh/s.  Using it, however, brings my system to a complete crawl (almost no CPU load, but it spends 100% of its time trying to redraw windows really really slowly).

So, any way I can throttle the CUDA miner to make my system useable?  If I could have a functional system at 90% performance, I could keep it running all day rather than just at night.  I tried setting the "aggression" lower, but to no effect.

Not complaining - Thanks again for writing this - Just wondering if I might have missed a combination of settings that would help tame it just a bit.   ;D

Thanks!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dduane on February 19, 2011, 07:09:19 AM
https://bitcoinbonus.com/sites/bitcoinbonus.com/files/Capture.PNG
Hi Puddinpop

Thanks so much for you brilliant work.

I'm getting the message: 
The procedure entry point cuMemFree_v2 could not be located in the dynamic link library nvcuda.dll

I'm running on a windows 7 professional laptop (HP) which has an NVIDIA GeForce GT 230M in it. 

I downloaded the latest driver from NVIDIA  258.96 and double checked that I didn't need to have a driver update from NVIDIA's website. 

I'm running rpcminer-cuda.exe -url http://mining.bitcoin.cz:8332 -user=hidden -password=hidden -gpu

Thanks for any insight you might have

--Darrell


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: flags8192 on February 19, 2011, 09:21:42 AM
[12:16]flags8192@Desktop:~/bitcoin-remote-rpc-20110213-src$ cmake CMakeLists.txt
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.42.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found wxWidgets: TRUE
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Found BerkeleyDB: /usr/lib/libdb.so
-- Found CUDA: /usr/local/cuda
-- Found CURL: /usr/lib/libcurl.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/flags8192/bitcoin-remote-rpc-20110213-src
[12:17]flags8192@Desktop:~/bitcoin-remote-rpc-20110213-src$ make
[  1%] Building NVCC (Device) object cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
Scanning dependencies of target bitcoin
[  2%] Building CXX object cmake-bitcoin/CMakeFiles/bitcoin.dir/__/src/db.cpp.o
In file included from /usr/local/include/wx-2.9/wx/wx.h:15,
                 from /home/flags8192/bitcoin-remote-rpc-20110213-src/src/headers.h:33,
                 from /home/flags8192/bitcoin-remote-rpc-20110213-src/src/db.cpp:5:
/usr/local/include/wx-2.9/wx/defs.h:49: error: #error "No Target! You should use wx-config program for compilation flags!"

help compile, already the second week of agony: (


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: qed on February 19, 2011, 10:04:22 AM
Hello,

I'm having problems with rpcminer-opencl.exe. I'm still getting 0 khash/s even if it connects correctly to the local server.


Code:
>rpcminer-opencl.exe -gpu=0 -url=http://127.0.0.1:8332 -user=XXX -password=XXX
Client will start 1 miner threads
Work will be refreshed every 4000 ms
Target = 00000000000000000000000000000000000000000000000026cc010000000000
1 OpenCL platforms found
2 OpenCL GPU devices found on platform 0
Setting OpenCL device to device 0
Available extensions : cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_globa
l_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_exte
nded_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_shar
ing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt c
l_khr_d3d10_sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s

Compilation terminated.


rpcminer-cpu.exe is working flawless.

Code:
>rpcminer-cpu.exe -url=http://127.0.0.1:8332 -user=XXX -password=XXX
Client will start 8 miner threads
Work will be refreshed every 4000 ms
Target = 00000000000000000000000000000000000000000000000026cc010000000000
1726 khash/s
3025 khash/s
3625 khash/s
4152 khash/s
4143 khash/s


My system:
Windows 7 (64 bit)
2x ATI HD 6950 CrossfireX
Catalyst 11.2
ATI Steam 2.3


Title: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: renovatio34 on February 19, 2011, 01:57:41 PM
I have the same problem dduane:

 procedure entry point cuMemFree_v2 Could Not Be Located In The Dynamic Link Library nvcuda.dll  ???

I'm running Windows 7 64 bit with Nvidia GT 240M


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: DrivingVertigo on February 19, 2011, 05:07:12 PM
I can't seem to get the CUDA miner to work.  It only generates 0/khashs. My command line is as follows

D:\RPCMiner\rpcminer-cuda.exe -gpu -url=http://mining.bitcoin.cz:8332 -user=***** -password=*****

What am I doing wrong?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 19, 2011, 06:27:51 PM
So, any way I can throttle the CUDA miner to make my system useable?  If I could have a functional system at 90% performance, I could keep it running all day rather than just at night.  I tried setting the "aggression" lower, but to no effect.

Aggression would be the main parameter that affects desktop responsiveness.  Set it to 1 and slowly increase it until you find a balance you like.


I'm getting the message: 
The procedure entry point cuMemFree_v2 could not be located in the dynamic link library nvcuda.dll

I'm running on a windows 7 professional laptop (HP) which has an NVIDIA GeForce GT 230M in it. 

I downloaded the latest driver from NVIDIA  258.96 and double checked that I didn't need to have a driver update from NVIDIA's website. 

258.96 is an old driver.  You need a driver that supports at least CUDA 3.2 if you use the supplied binaries.  Alternately, you can compile the source with whatever CUDA toolkit you have available.


Hello,

I'm having problems with rpcminer-opencl.exe. I'm still getting 0 khash/s even if it connects correctly to the local server.


Code:
>rpcminer-opencl.exe -gpu=0 -url=http://127.0.0.1:8332 -user=XXX -password=XXX
Client will start 1 miner threads
Work will be refreshed every 4000 ms
Target = 00000000000000000000000000000000000000000000000026cc010000000000
1 OpenCL platforms found
2 OpenCL GPU devices found on platform 0
Setting OpenCL device to device 0
Available extensions : cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_globa
l_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_exte
nded_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_shar
ing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt c
l_khr_d3d10_sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s

Compilation terminated.


rpcminer-cpu.exe is working flawless.

Code:
>rpcminer-cpu.exe -url=http://127.0.0.1:8332 -user=XXX -password=XXX
Client will start 8 miner threads
Work will be refreshed every 4000 ms
Target = 00000000000000000000000000000000000000000000000026cc010000000000
1726 khash/s
3025 khash/s
3625 khash/s
4152 khash/s
4143 khash/s


My system:
Windows 7 (64 bit)
2x ATI HD 6950 CrossfireX
Catalyst 11.2
ATI Steam 2.3

As I said before, if you don't see a line that says "Build program rval=0" the kernel didn't get built successfully and you're not going to be doing any hashing.  You can try this kernel (http://www.mediafire.com/file/9svitgnhfm2jng9/bitcoinmineropencl.cl).  If that doesn't work you'll have to edit the kernel and find out what's causing it not to build.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: renovatio34 on February 19, 2011, 08:51:05 PM
How I compile on windows with NVCC?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 03:40:47 AM
Hello All,

I've been working on compiling the rpcminer for mac osx leopard 10.5.8.  I've gotten really far and think I'm almost there, but I'm running into an issue related to boost, I believe.  It seems the function "get" is not resolving.  I'm using macports and I've done a "sudo ports -dv install boost", it seems to be finding the boost headers, because it doesn't complain about those, but it can't resolve the "get" function for some reason.

I would like to hear your 2 cents about the issue if you have some spare time.  I would really appreciate it.  I'm willing to donate some bit coins, but at this point I only have 0.07 :)

Code:
make rpcminer
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/turkylurky/opt/src/latestrpc
[  6%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
In file included from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.cpp:22:
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/hex.h:33:8: warning: extra tokens at end of #endif directive
In file included from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/minerheaders.h:57,
                 from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.h:26,
                 from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.cpp:19:
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:579: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:588: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:596: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:610: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:620: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/jtflemturkylurkying/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:629: error: 'get' was not declared in this scope
make[3]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o] Error 1
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/rule] Error 2
make: *** [rpcminer] Error 2


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 03:54:35 AM
Hello All,

I've been working on compiling the rpcminer for mac osx leopard 10.5.8.  I've gotten really far and think I'm almost there, but I'm running into an issue related to boost, I believe.  It seems the function "get" is not resolving.  I'm using macports and I've done a "sudo ports -dv install boost", it seems to be finding the boost headers, because it doesn't complain about those, but it can't resolve the "get" function for some reason.

I would like to hear your 2 cents about the issue if you have some spare time.  I would really appreciate it.  I'm willing to donate some bit coins, but at this point I only have 0.07 :)

Code:
make rpcminer
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/turkylurky/opt/src/latestrpc
[  6%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
In file included from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.cpp:22:
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/hex.h:33:8: warning: extra tokens at end of #endif directive
In file included from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/minerheaders.h:57,
                 from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.h:26,
                 from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.cpp:19:
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:579: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:588: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:596: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:610: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:620: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/jtflemturkylurkying/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:629: error: 'get' was not declared in this scope
make[3]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o] Error 1
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/rule] Error 2
make: *** [rpcminer] Error 2

I was able to resolve this issue by adding "using namespace boost;" after the boost headers are included in "serialize.h"!  Working on next compile issue, now :)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: DrivingVertigo on February 20, 2011, 04:15:18 AM
So, any way I can throttle the CUDA miner to make my system useable?  If I could have a functional system at 90% performance, I could keep it running all day rather than just at night.  I tried setting the "aggression" lower, but to no effect.

Aggression would be the main parameter that affects desktop responsiveness.  Set it to 1 and slowly increase it until you find a balance you like.


I'm getting the message: 
The procedure entry point cuMemFree_v2 could not be located in the dynamic link library nvcuda.dll

I'm running on a windows 7 professional laptop (HP) which has an NVIDIA GeForce GT 230M in it. 

I downloaded the latest driver from NVIDIA  258.96 and double checked that I didn't need to have a driver update from NVIDIA's website. 

258.96 is an old driver.  You need a driver that supports at least CUDA 3.2 if you use the supplied binaries.  Alternately, you can compile the source with whatever CUDA toolkit you have available.


Hello,

I'm having problems with rpcminer-opencl.exe. I'm still getting 0 khash/s even if it connects correctly to the local server.


Code:
>rpcminer-opencl.exe -gpu=0 -url=http://127.0.0.1:8332 -user=XXX -password=XXX
Client will start 1 miner threads
Work will be refreshed every 4000 ms
Target = 00000000000000000000000000000000000000000000000026cc010000000000
1 OpenCL platforms found
2 OpenCL GPU devices found on platform 0
Setting OpenCL device to device 0
Available extensions : cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_globa
l_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_exte
nded_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_shar
ing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt c
l_khr_d3d10_sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s
0 khash/s

Compilation terminated.


rpcminer-cpu.exe is working flawless.

Code:
>rpcminer-cpu.exe -url=http://127.0.0.1:8332 -user=XXX -password=XXX
Client will start 8 miner threads
Work will be refreshed every 4000 ms
Target = 00000000000000000000000000000000000000000000000026cc010000000000
1726 khash/s
3025 khash/s
3625 khash/s
4152 khash/s
4143 khash/s


My system:
Windows 7 (64 bit)
2x ATI HD 6950 CrossfireX
Catalyst 11.2
ATI Steam 2.3

As I said before, if you don't see a line that says "Build program rval=0" the kernel didn't get built successfully and you're not going to be doing any hashing.  You can try this kernel (http://www.mediafire.com/file/9svitgnhfm2jng9/bitcoinmineropencl.cl).  If that doesn't work you'll have to edit the kernel and find out what's causing it not to build.

I'm getting 0/khashs on the windows binaries you compiled. doesn't matter if it's CPU, CUDA, or screensavers.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uck on February 20, 2011, 04:42:28 AM
I am having this same problem too...  Win 7 64  / 8gbmem / ati HD 5450  rpcminer-opencl.exe   0 khash/s...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: uck on February 20, 2011, 04:43:58 AM
Do you have to have a bitcoin wallet program loaded on the computer to make things work?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 06:02:27 AM
I got rpcminer to compile on mac osx, now it needs the ".cubin" file to load.  I'm new to cuda programming, but this is what I have tried so far

nvcc -cubin ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_11,code=sm_11 -o bitcoinminercuda_11.cubin

Code:
nvcc -cubin ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_11,code=sm_11 -o bitcoinminercuda_11.cubin
rpcminer
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to get function cuda_process 500

Any of you experts out there have any ideas what I might be screwing up?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 10:25:54 AM
I got rpcminer to compile on mac osx, now it needs the ".cubin" file to load.  I'm new to cuda programming, but this is what I have tried so far

nvcc -cubin ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_11,code=sm_11 -o bitcoinminercuda_11.cubin

Code:
nvcc -cubin ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_11,code=sm_11 -o bitcoinminercuda_11.cubin
rpcminer
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to get function cuda_process 500

Any of you experts out there have any ideas what I might be screwing up?

After adding the #define _BITCOIN_MINER_CUDA_ or turning on the flag I got a valid .cubin file that rpcminer can load.  However, now I only get 0 khash/s

Code:
./rpcminer -gpugrid=1 -gputhreads=1 -url=http://mining.bitcoin.cz:8332 -user=user.1 -pass=pass
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
CUDA initialized
Done allocating CUDA resources for (1,1)
0 khash/s
0 khash/s

Any ideas?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 20, 2011, 03:45:43 PM
I'm getting 0/khashs on the windows binaries you compiled. doesn't matter if it's CPU, CUDA, or screensavers.

If you don't see a line that says "Target = " with something other than all ffs, then the miner couldn't connect to the RPC server and couldn't download work.  Check that your arguments are correct, particularly the login info.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: DrivingVertigo on February 20, 2011, 06:12:21 PM
I'm getting 0/khashs on the windows binaries you compiled. doesn't matter if it's CPU, CUDA, or screensavers.

If you don't see a line that says "Target = " with something other than all ffs, then the miner couldn't connect to the RPC server and couldn't download work.  Check that your arguments are correct, particularly the login info.

Thanks, that got the wheels turning upstairs.  I had to register a worker first on bitcoin.cz before it would allow me to get work units. I thought that simply signing up for an account was enough. Now I am getting work and hashing roughly 45000 khash/s on my GTX 260.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 07:46:52 PM
I compiled the cpu only version of rpcminer on mac osx and it compiled with no problems.  However, it's still only getting 0khash/s.  Is there a way to test it in non-network mode to see if it's just having problems getting data to work on? 

Code:
./rpcminer -url=http://mining.bitcoin.cz:8332 -user=user.1 -pass=pass
Client will start 2 miner threads
Work will be refreshed every 4000 ms
0 khash/s
0 khash/s

I tested minerd just before this and it works great
Code:
./minerd --url=http://mining.bitcoin.cz:8332 --userpass=user.1:pass -t 1
1 miner threads started, using SHA256 'c' algorithm.
HashMeter(0): 16777215 hashes, 822.86 khash/sec
HashMeter(0): 8388607 hashes, 823.86 khash/sec



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 20, 2011, 08:23:11 PM
I compiled the cpu only version of rpcminer on mac osx and it compiled with no problems.  However, it's still only getting 0khash/s.  Is there a way to test it in non-network mode to see if it's just having problems getting data to work on?  

Code:
./rpcminer -url=http://mining.bitcoin.cz:8332 -user=user.1 -pass=pass
Client will start 2 miner threads
Work will be refreshed every 4000 ms
0 khash/s
0 khash/s

I tested minerd just before this and it works great
Code:
./minerd --url=http://mining.bitcoin.cz:8332 --userpass=user.1:pass -t 1
1 miner threads started, using SHA256 'c' algorithm.
HashMeter(0): 16777215 hashes, 822.86 khash/sec
HashMeter(0): 8388607 hashes, 823.86 khash/sec


Whatever version of libCURL you linked against isn't redirecting to the correct URL.  Use the correct URL and password parameter in the arguments instead and it should work.

Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=user.1 -password=pass


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 08:48:34 PM

Whatever version of libCURL you linked against isn't redirecting to the correct URL.  Use the correct URL in the arguments instead and it should work.

Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=user.1 -pass=pass


I compiled with curl 7.21.2 and appended the "/" on the end of the url and got the same result, 0 khash/s


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 09:05:47 PM

Whatever version of libCURL you linked against isn't redirecting to the correct URL.  Use the correct URL in the arguments instead and it should work.

Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=user.1 -pass=pass


I compiled with curl 7.21.2 and appended the "/" on the end of the url and got the same result, 0 khash/s

Also, I was able to use the command line to get a response from the server using curl.

Code:
/usr/bin/curl http://mining.bitcoin.cz:8332/ --user hidden.1:hidden
{"id": "4303f69c-3d34-11e0-a2f7-fefd6d4ac335", "result": {"hash1": "00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000", "data": "00000001c2288b009b20a375b8be48f60e5c525df8b3f2e3b8bc0cc4000113ea000000005c8569d196dc86a3aca747c8269bd385216639d82b26cf8b44f3eae5cec6ea1e4d61809a1b01cc2600000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000", "midstate": "7c2c459ae8eae7e09b4db01685665b7cbb970ba14d7256227d09f8194dd10b2c", "target": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000"}, "error": null}



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 20, 2011, 09:13:42 PM
Updated first post with latest release.  The only major change is this release will let you know if there was an issue getting work from the server and will stop hashing stale blocks.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 09:35:30 PM
Updated first post with latest release.  The only major change is this release will let you know if there was an issue getting work from the server and will stop hashing stale blocks.

I really appreciate those updates!  I got the new source and built, now I get:
Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=hidden.1 -pass=hidden
Client will start 2 miner threads
Work will be refreshed every 4000 ms
Could not retrieve work from RPC server.
CURL return value = 22

I'll start trying to figure out what's up with CURL...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 10:39:06 PM
Updated first post with latest release.  The only major change is this release will let you know if there was an issue getting work from the server and will stop hashing stale blocks.

I really appreciate those updates!  I got the new source and built, now I get:
Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=hidden.1 -pass=hidden
Client will start 2 miner threads
Work will be refreshed every 4000 ms
Could not retrieve work from RPC server.
CURL return value = 22

I'll start trying to figure out what's up with CURL...

Just a couple things I noticed using tcpdump -A and watching the html packets when executing /usr/bin/curl and rpcminer.  /usr/bin/curl sent a GET request and i'm not sure what data to expect as a response, but I got an HTTP/1.1 200 OK when using /usr/bin/curl manually and it responded back with that string I listed above, which looks like what you guys are probably parsing as the data input for the program.  When I run rpcminer, it is using a POST request, and from looking at the source you are using a content-type of "application/json" and I get an HTTP/1.1 401 UNAUTHORIZED as a response.  Are these recent builds working for anyone using linux/mac osx?  It could be my libcurl install is messed up somehow, but I used mac ports.  We could verify it is my setup of libcurl if someone else can compile the current source for linux/mac osx and it successfully gets data.

thanks for all the help and time so far!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 20, 2011, 11:06:59 PM
Updated first post with latest release.  The only major change is this release will let you know if there was an issue getting work from the server and will stop hashing stale blocks.

I really appreciate those updates!  I got the new source and built, now I get:
Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=hidden.1 -pass=hidden
Client will start 2 miner threads
Work will be refreshed every 4000 ms
Could not retrieve work from RPC server.
CURL return value = 22

I'll start trying to figure out what's up with CURL...

Just a couple things I noticed using tcpdump -A and watching the html packets when executing /usr/bin/curl and rpcminer.  /usr/bin/curl sent a GET request and i'm not sure what data to expect as a response, but I got an HTTP/1.1 200 OK when using /usr/bin/curl manually and it responded back with that string I listed above, which looks like what you guys are probably parsing as the data input for the program.  When I run rpcminer, it is using a POST request, and from looking at the source you are using a content-type of "application/json" and I get an HTTP/1.1 401 UNAUTHORIZED as a response.  Are these recent builds working for anyone using linux/mac osx?  It could be my libcurl install is messed up somehow, but I used mac ports.  We could verify it is my setup of libcurl if someone else can compile the current source for linux/mac osx and it successfully gets data.

thanks for all the help and time so far!

It's returning unauthorized because you're not supplying the password correctly.  The parameter is -password not -pass.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 20, 2011, 11:19:32 PM
Updated first post with latest release.  The only major change is this release will let you know if there was an issue getting work from the server and will stop hashing stale blocks.

I really appreciate those updates!  I got the new source and built, now I get:
Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=hidden.1 -pass=hidden
Client will start 2 miner threads
Work will be refreshed every 4000 ms
Could not retrieve work from RPC server.
CURL return value = 22

I'll start trying to figure out what's up with CURL...

Just a couple things I noticed using tcpdump -A and watching the html packets when executing /usr/bin/curl and rpcminer.  /usr/bin/curl sent a GET request and i'm not sure what data to expect as a response, but I got an HTTP/1.1 200 OK when using /usr/bin/curl manually and it responded back with that string I listed above, which looks like what you guys are probably parsing as the data input for the program.  When I run rpcminer, it is using a POST request, and from looking at the source you are using a content-type of "application/json" and I get an HTTP/1.1 401 UNAUTHORIZED as a response.  Are these recent builds working for anyone using linux/mac osx?  It could be my libcurl install is messed up somehow, but I used mac ports.  We could verify it is my setup of libcurl if someone else can compile the current source for linux/mac osx and it successfully gets data.

thanks for all the help and time so far!

It's returning unauthorized because you're not supplying the password correctly.  The parameter is -password not -pass.

Well that was bonehead of me, but ugh, it still isn't working...
Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user=hidden.1 -password=hidden
Client will start 2 miner threads
Work will be refreshed every 4000 ms
Could not retrieve work from RPC server.
CURL return value = 22


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 21, 2011, 12:21:46 AM
I found if I comment out this section in "rpcrequest.cpp",
Code:
        std::ostringstream istr;
        istr << m_readbuff.size();
        std::string headersize("Content-Length: "+istr.str());

        headers=curl_slist_append(headers,"Content-type: application/json");
        headers=curl_slist_append(headers,headersize.c_str());
        headers=curl_slist_append(headers,"Expect:");

        curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

It computes hashs and I get a
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 21, 2011, 01:52:45 AM
I think I'm finally getting somewhere,

I added
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
to your code and compiled.  Upon running I get some very interesting results in the verbose debug of curl.

Code:
./rpcminer -url=http://mining.bitcoin.cz:8332/ -user='hidden.1' -password=hidden
Client will start 2 miner threads
Work will be refreshed every 4000 ms
{"method":"getwork","params":[],"id":0}
* About to connect() to mining.bitcoin.cz port 8332 (#0)
*   Trying 178.79.147.99... * TCP_NODELAY set
* connected
* Connected to mining.bitcoin.cz (178.79.147.99) port 8332 (#0)
* Server auth using Basic with user ''
> POST / HTTP/1.1
Authorization: Basic Og==
Host: mining.bitcoin.cz:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 39

< HTTP/1.1 401 UNAUTHORIZED
< Server: nginx/0.7.65
< Date: Mon, 21 Feb 2011 01:44:00 GMT
< Content-Type: text/plain
< Transfer-Encoding: chunked
< Connection: keep-alive
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="Restricted access. Visit http://mining.bitcoin.cz to get login and password."
* The requested URL returned error: 401
* Closing connection #0
* HTTP response code said error
Could not retrieve work from RPC server.
CURL return value = 22
* About to connect() to mining.bitcoin.cz port 8332 (#0)
*   Trying 178.79.147.99... * TCP_NODELAY set
* connected
* Connected to mining.bitcoin.cz (178.79.147.99) port 8332 (#0)
* Server auth using Basic with user 'th'
> POST / HTTP/1.1
Authorization: Basic dGg6IDM5
Host: mining.bitcoin.cz:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 39

* The requested URL returned error: 400
* Closing connection #0
* HTTP response code said error
Could not retrieve work from RPC server.
CURL return value = 22
* About to connect() to mining.bitcoin.cz port 8332 (#0)
*   Trying 178.79.147.99... * TCP_NODELAY set
* connected
* Connected to mining.bitcoin.cz (178.79.147.99) port 8332 (#0)
* Server auth using Basic with user ''
> POST / HTTP/1.1
Authorization: Basic Og==
Host: mining.bitcoin.cz:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 39

< HTTP/1.1 401 UNAUTHORIZED
< Server: nginx/0.7.65
< Date: Mon, 21 Feb 2011 01:44:09 GMT
< Content-Type: text/plain
< Transfer-Encoding: chunked
< Connection: keep-alive
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="Restricted access. Visit http://mining.bitcoin.cz to get login and password."
* The requested URL returned error: 401
* Closing connection #0
* HTTP response code said error
Could not retrieve work from RPC server.
CURL return value = 22
* About to connect() to mining.bitcoin.cz port 8332 (#0)
*   Trying 178.79.147.99... * TCP_NODELAY set
* connected
* Connected to mining.bitcoin.cz (178.79.147.99) port 8332 (#0)
* Server auth using Basic with user 'th'
> POST / HTTP/1.1
Authorization: Basic dGg6IDM5
Host: mining.bitcoin.cz:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 39

* The requested URL returned error: 400
* Closing connection #0
* HTTP response code said error
Could not retrieve work from RPC server.
CURL return value = 22
* About to connect() to mining.bitcoin.cz port 8332 (#0)
*   Trying 178.79.147.99... * TCP_NODELAY set
* connected
* Connected to mining.bitcoin.cz (178.79.147.99) port 8332 (#0)
* Server auth using Basic with user 'thin???'
> POST / HTTP/1.1
Authorization: Basic dGhpboCYgDo=
Host: mining.bitcoin.cz:8332
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
Content-Length: 39

< HTTP/1.1 200 OK
< Server: nginx/0.7.65
< Date: Mon, 21 Feb 2011 01:44:18 GMT
< Content-Type: text/html
< Transfer-Encoding: chunked
< Connection: keep-alive
< Content-Encoding: gzip
<
* Connection #0 to host mining.bitcoin.cz left intact
* Closing connection #0


Watch for these lines,
* Server auth using Basic with user ''
* Server auth using Basic with user 'th'
* Server auth using Basic with user ''
* Server auth using Basic with user 'th'
* Server auth using Basic with user 'thin???'

Looks like the user string getting passed to curl is varying for some reason, notice after the last Server auth with user 'thin???' it is followed by a HTTP/1.1 200 OK.  I guess in that case lib curl is masking the user/pass info with '???' ?  Could it be that the string used to create the username/pass combo is having it's memory stomped on or some other weird memory thing?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 21, 2011, 02:05:35 AM
I think this is confirmed....it seems like lib curl should copy your userpass string into its own internal buffer, but I don't think that it is doing that.  You have a local variable defined for userpass and are calling curl_easy_setopt(curl,CURLOPT_USERPWD,userpass.c_str());

that local variable is getting blown away after it leaves the scope.  I defined userpass as a global variable for a test and then the curl debug always has the correct username rather than the varying "garbage".  Also, I get < HTTP/1.1 200 OK everytime and it is performing ~ 1500 khash/sec

I also get
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff
not sure if this is good or not,

basically I'm using your software asis, but I made userpass a global variable, not sure how best to do that or if this is a correct fix yet.  I wanted to get your opinion

Any ideas?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 21, 2011, 02:55:38 AM
It just found a hash

Code:
1572 khash/s
1574 khash/s
2011-02-21 02:46:50 Found Hash!
Sending to server: {"method":"getwork","params":["0000000142498aa12b8b82781a47fd4ed555cdb61f11b0d24d7e53ad00016ce4000000001dacebd09c567c35f299336b03020ab8a6af00398a40bb423b3557749f5ceb9a4d61d2171b01cc2629420600000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000"],"id":1}
Server sent: {"result": true, "id": "1", "error": null}
1584 khash/s
1577 khash/s
2011-02-21 02:47:16 Found Hash!
Sending to server: {"method":"getwork","params":["0000000142498aa12b8b82781a47fd4ed555cdb61f11b0d24d7e53ad00016ce400000000525e3f84c2d8f38145363ff68ef5ae5bff6ba2951d45fb93503c96f5d69a1b414d61d2271b01cc2611c64c00000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000"],"id":1}
Server sent: {"result": true, "id": "1", "error": null}
1568 khash/s


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 21, 2011, 04:02:48 AM
I just got rpcminer working with cuda as well.  Puddinpop is awesome!  Thanks for making your software opensource and being so patient with people :)  I'm using the 8600m gt gpu in my macbook pro, osx 10.5.8 leopard.  I'm getting about 3600khash/s with just the gpu.  If anyone needs help with linux or mac, feel free to ask!

Code:
3583 khash/s
3543 khash/s
2011-02-21 04:01:07 Found Hash!
Sending to server: {"method":"getwork","params":["000000011547005097397526c56d1062895102170ae1d8f7a3039112000091d900000000b698719b56b688cad527b7276586e1d59a341455b7dc11fbe91323bc806870804d61e37b1b01cc260290e900000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000"],"id":1}
Server sent: {"result": true, "id": "1", "error": null}
3598 khash/s
3559 khash/s


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: aahzmundus on February 22, 2011, 02:43:57 AM
Trying to run the opencl client and I get this...

Client will start 1 miner threads
Work will be refreshed every 4000 ms
Target = 000000000001cc260000000000000000000000000000000000000000000000
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_exte
nded_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_d
evice_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_
sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s

running with -user=xxxxx -password=xxxxx -gpu -url=http://127.0.0.1:8332

I tried all the suggestions listed so far in this topic and feel like I am missing something.

The one thing I havent done is:
Quote
As I said before, if you don't see a line that says "Build program rval=0" the kernel didn't get built successfully and you're not going to be doing any hashing.  You can try this kernel.  If that doesn't work you'll have to edit the kernel and find out what's causing it not to build.

I tried the other kernel, no luck... and i have no idea where I would start with editing the kernel, but if someone could point me in the right direction... or has an idea... I would appreciate it!

Windows 7 x64
ATI HD5700
Catalyst vs 11.2


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: flags8192 on February 22, 2011, 04:45:58 AM
who can give a binary for ubuntu x64?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: aistto on February 23, 2011, 06:37:06 PM
does this miner work with crossfire?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: os008 on February 24, 2011, 09:27:38 AM
Hi,
If i try to run any of the exe's of this program on my Windows XP SP3 machine, I get "this application has failed to start because the application configuration is incorrect", it runs fine on my Windows 7 machine though. Am i missing something? Thanks.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on February 25, 2011, 06:05:48 PM
I'm not familiar with miner source, but does it support long live http connections, "keep-alive"?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: pla on February 25, 2011, 06:22:50 PM
If i try to run any of the exe's of this program on my Windows XP SP3 machine, I get "this application has failed to start because the application configuration is incorrect", it runs fine on my Windows 7 machine though. Am i missing something? Thanks.

On XP, you need the MSVC80 redistributable to run Puddin's miners:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en).


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: yomi on February 25, 2011, 06:44:48 PM
I just got rpcminer working with cuda as well.  Puddinpop is awesome!  Thanks for making your software opensource and being so patient with people :)  I'm using the 8600m gt gpu in my macbook pro, osx 10.5.8 leopard.  I'm getting about 3600khash/s with just the gpu.  If anyone needs help with linux or mac, feel free to ask!

Code:
3583 khash/s
3543 khash/s
2011-02-21 04:01:07 Found Hash!
Sending to server: {"method":"getwork","params":["000000011547005097397526c56d1062895102170ae1d8f7a3039112000091d900000000b698719b56b688cad527b7276586e1d59a341455b7dc11fbe91323bc806870804d61e37b1b01cc260290e900000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000"],"id":1}
Server sent: {"result": true, "id": "1", "error": null}
3598 khash/s
3559 khash/s

Can you please give details on how you compiled rpcminer and rpcminer-cuda on Mac OS? I am running Snow Leopard and have installed boost and cmake via hombrew, but I keep getting compilation errors.

Thanks.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: NicholasBell on February 27, 2011, 03:28:34 AM
Is there any particular reason that the CUDA miner would only perform at maximum khash/s if its CLI status window were the foreground window? I'm seeing consistent drops from 16000khash/s to 6000-9000 khash/s when the window is not in the foreground, even if absolutely nothing is happening in whatever window is the foreground (even away from the computer).

System: Windows 7 Enterprise 32 bit, 2.9ghz Core2Duo, Geforce 9600GT, 3gb RAM.


I'm another person that has issues with the CUDA miner speed dropping significantly if it isn't the currently highlighted window (109000 khash/s down to around 16000 khash/s). I really like this miner, but I pay ~100khash/s opportunity cost to actually use my PC. I run the 4way miner at the same time and see no slowdown when it isn't the active window.

I have W7 Professional 64-bit, mining on a gtx 480.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 27, 2011, 04:56:46 AM
I just got rpcminer working with cuda as well.  Puddinpop is awesome!  Thanks for making your software opensource and being so patient with people :)  I'm using the 8600m gt gpu in my macbook pro, osx 10.5.8 leopard.  I'm getting about 3600khash/s with just the gpu.  If anyone needs help with linux or mac, feel free to ask!

Code:
3583 khash/s
3543 khash/s
2011-02-21 04:01:07 Found Hash!
Sending to server: {"method":"getwork","params":["000000011547005097397526c56d1062895102170ae1d8f7a3039112000091d900000000b698719b56b688cad527b7276586e1d59a341455b7dc11fbe91323bc806870804d61e37b1b01cc260290e900000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000"],"id":1}
Server sent: {"result": true, "id": "1", "error": null}
3598 khash/s
3559 khash/s

Can you please give details on how you compiled rpcminer and rpcminer-cuda on Mac OS? I am running Snow Leopard and have installed boost and cmake via hombrew, but I keep getting compilation errors.

Thanks.

What's your build error?  What cmake command line did you use?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: os008 on February 27, 2011, 11:52:48 AM
On XP, you need the MSVC80 redistributable to run Puddin's miners:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en).

Thank you; that worked. I think i installed the 2010 package before.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on February 27, 2011, 03:35:48 PM
Update first post with latest release.  The connection to the RPC server will now be kept open if the server supports it instead of opening a new connection for each request.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on February 27, 2011, 04:05:09 PM
Update first post with latest release.  The connection to the RPC server will now be kept open if the server supports it instead of opening a new connection for each request.

Thanks a lot! All users of this miner & my pool, please update!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JoeGTN1 on February 27, 2011, 05:50:57 PM
I'm getting compilation errors on Linux:

Code:
OPTION(BITCOIN_ENABLE_CUDA "Enable CUDA miner" ON)
OPTION(BITCOIN_ENABLE_OPENCL "Enable OpenCL miner" OFF)
OPTION(BITCOIN_ENABLE_REMOTE_SERVER "Enable remote miner server" OFF)
OPTION(BITCOIN_BUILD_GUI "Build Server GUI (bitcoin)" OFF)
OPTION(BITCOIN_BUILD_DAEMON "Build Server Daemon (bitcoind)" OFF)
OPTION(BITCOIN_BUILD_REMOTE_MINER "Build remote miner (bitcoinr)" OFF)
OPTION(BITCOIN_BUILD_RPC_MINER "Build RPC miner (rpcminer)" ON)
Code:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2>&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:579:31: error: ‘get’ was not declared in this scope
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2>&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:588:19: error: ‘get’ was not declared in this scope
...

"get" is a pretty hard search term to figure out what templated function I'm looking for.

I'm also not exactly sure which pieces I'm supposed to be building, but with the other "BITCOIN_BUILD" options I get other errors, some with WX (no target set), others with json_spirit (int64 isn't a valid type for some reason, I got it to keep going once by changing them all to int64_t).

Thoughts?  Different place I should be asking?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 27, 2011, 05:59:02 PM
I'm getting compilation errors on Linux:

Code:
OPTION(BITCOIN_ENABLE_CUDA "Enable CUDA miner" ON)
OPTION(BITCOIN_ENABLE_OPENCL "Enable OpenCL miner" OFF)
OPTION(BITCOIN_ENABLE_REMOTE_SERVER "Enable remote miner server" OFF)
OPTION(BITCOIN_BUILD_GUI "Build Server GUI (bitcoin)" OFF)
OPTION(BITCOIN_BUILD_DAEMON "Build Server Daemon (bitcoind)" OFF)
OPTION(BITCOIN_BUILD_REMOTE_MINER "Build remote miner (bitcoinr)" OFF)
OPTION(BITCOIN_BUILD_RPC_MINER "Build RPC miner (rpcminer)" ON)
Code:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2>&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:579:31: error: ‘get’ was not declared in this scope
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2>&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:588:19: error: ‘get’ was not declared in this scope
...

"get" is a pretty hard search term to figure out what templated function I'm looking for.

I'm also not exactly sure which pieces I'm supposed to be building, but with the other "BITCOIN_BUILD" options I get other errors, some with WX (no target set), others with json_spirit (int64 isn't a valid type for some reason, I got it to keep going once by changing them all to int64_t).

Thoughts?  Different place I should be asking?

I solved this build error by adding "using namespace boost;" just after the boost include files in "serialize.h".


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: yomi on February 27, 2011, 11:51:19 PM
I'm getting compilation errors on Linux:

Code:
OPTION(BITCOIN_ENABLE_CUDA "Enable CUDA miner" ON)
OPTION(BITCOIN_ENABLE_OPENCL "Enable OpenCL miner" OFF)
OPTION(BITCOIN_ENABLE_REMOTE_SERVER "Enable remote miner server" OFF)
OPTION(BITCOIN_BUILD_GUI "Build Server GUI (bitcoin)" OFF)
OPTION(BITCOIN_BUILD_DAEMON "Build Server Daemon (bitcoind)" OFF)
OPTION(BITCOIN_BUILD_REMOTE_MINER "Build remote miner (bitcoinr)" OFF)
OPTION(BITCOIN_BUILD_RPC_MINER "Build RPC miner (rpcminer)" ON)
Code:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2>&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:579:31: error: ‘get’ was not declared in this scope
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2>&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:588:19: error: ‘get’ was not declared in this scope
...

"get" is a pretty hard search term to figure out what templated function I'm looking for.

I'm also not exactly sure which pieces I'm supposed to be building, but with the other "BITCOIN_BUILD" options I get other errors, some with WX (no target set), others with json_spirit (int64 isn't a valid type for some reason, I got it to keep going once by changing them all to int64_t).

Thoughts?  Different place I should be asking?

I solved this build error by adding "using namespace boost;" just after the boost include files in "serialize.h".

Thanks! Adding that line I managed to compile the rpcminer using CUDA.

Now I am stuck with the cubin problem:

Code:

$ ./rpcminer -url=http://mining.bitcoin.cz:8332 -user=xxxx -password=yyyy -gpu
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to load CUDA module


I also tried to generate the cubin file with:

nvcc -cubin ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_11,code=sm_11 -o bitcoinminercuda_11.cubin

But I still get the same error when I start the miner.

How did you do it? :-)

Thank you.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: JollyGreen on February 28, 2011, 12:07:29 AM
There are a couple ways around the .cubin issue.

I found if I do the original "cmake -i", eventually it will prompt you asking if you want to generate a cubin file.  You say "yes" and then it builds a cubin file with a ".txt" extension for whatever reason.

If you take the cubin.txt file and copy it to bitcoinminercuda_11.cubin rpcminer with cuda will work

the other option is to run nvcc and generate your own cubin from the ".cu" file

"nvcc ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,\"code=sm_10,compute_10\" -gencode arch=compute_11,\"code=sm_11,compute_11\" --keep"

this will generate .cubin files, copy the one you want to bitcoinminercuda_11.cubin and then run rpcminer


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: edric on February 28, 2011, 11:12:53 PM
I'm having a problem getting the RPC Cuda miner set up on a secondary PC on my LAN. I've got it all set up on my main computer and running fine, but trying to run the miner on my other pc is giving me trouble. I've tried with -server=192.168.0.7 -user=xxx -password=xxx -port=8333 -rpcport =8333 and am getting CURL return value = 7
I've also tried with -url=192.168.0.7:8333 with user and pass, I'm getting no errors, but after it loads up CUDA it does absolutely nothing, not even 0 khash. Any insight on what I'm doing wrong?

edit: I figured out how to (supposedly)enable the server to accept rpc connections from other computers but I'm still getting CURL return value = 7. Seems that using rpcallowip=x.x.x.x in the .conf file is being ignored because I still cannot get the rpc miner on my other computer to connect. I've even tried specifying a port (8332) but it does not matter. Am I missing something??


EDIT AGAIN: Fixed. A faulty network cable causing extremely unstable connections. I knew I was missing something, lol. By the way, for some reason it only worked if I used -url but not -server.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: ddod on March 02, 2011, 03:54:00 PM
So what am I doing wrong?  I downloaded the pre-compiled binaries for windows yesterday.  I have tried them on two machines (both with win7 64).  

Once machine has 2 Radeon HD 5770s (not in crossfire) and I am getting 0 K/hash/s not matter which GPU I try to select (although from the output it appears to only be finding one GPU anyway)
Quote
c:\bitminer>rpcminer-opencl.exe -gpu -url=http://localhost:8332 -user=uname -password=pass
Client will start 1 miner threads
Work will be refreshed every 4000 ms
Target = 0000000000012dcd0000000000000000000000000000000000000000000000
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_exte
nded_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_d
evice_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_
sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s

I get similar output with opencl on the other machine which has an Nvidia 8800gts in it.  When trying the CUDA option on that machine I get better results.  However with the default optionsit was getting about 1000khash/s which seemed a little low.  With tweaking (I now have the gpugrid set to 512) it is now getting between 10000 and 15000.  Is that still too low?

Thanks for this tool.  I look forward to getting it to work.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: edric on March 03, 2011, 09:42:51 AM
So what am I doing wrong?  I downloaded the pre-compiled binaries for windows yesterday.  I have tried them on two machines (both with win7 64).  

Once machine has 2 Radeon HD 5770s (not in crossfire) and I am getting 0 K/hash/s not matter which GPU I try to select (although from the output it appears to only be finding one GPU anyway)
Quote
c:\bitminer>rpcminer-opencl.exe -gpu -url=http://localhost:8332 -user=uname -password=pass
Client will start 1 miner threads
Work will be refreshed every 4000 ms
Target = 0000000000012dcd0000000000000000000000000000000000000000000000
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_exte
nded_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_d
evice_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_
sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s

I get similar output with opencl on the other machine which has an Nvidia 8800gts in it.  When trying the CUDA option on that machine I get better results.  However with the default optionsit was getting about 1000khash/s which seemed a little low.  With tweaking (I now have the gpugrid set to 512) it is now getting between 10000 and 15000.  Is that still too low?

Thanks for this tool.  I look forward to getting it to work.


I'm having the same problem with the new build. 0 khash trying to use openCL. On my other machine, it just spams the window with text at warp speed, but that's using the earlier version.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: jkminkov on March 05, 2011, 01:40:20 PM
hello, I have win7 x64 and Nvidia GTX560 Ti, factory overclocked to 900/1800/2000

last night another application caused conhost.exe to crash and thus ending rpcminer-cuda.exe

the problem is that afterwards your program uses at most 95% of the card, something like 95% throttling, instead of 99%, causing my hash/s to drop from previously average 86700 to 81500

any ideas how to correct that?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: edric on March 07, 2011, 08:19:09 AM
hello, I have win7 x64 and Nvidia GTX560 Ti, factory overclocked to 900/1800/2000

last night another application caused conhost.exe to crash and thus ending rpcminer-cuda.exe

the problem is that afterwards your program uses at most 95% of the card, something like 95% throttling, instead of 99%, causing my hash/s to drop from previously average 86700 to 81500

any ideas how to correct that?

I've had some sort of mixed results similar to yours, using the same miner. My usual thing is to run it with aggression=6 while I'm at work and my wife is watching movies on the projector. It's not a problem and everything runs well but usage usually sits at %96 and even after VLC and everything is shut off, it stays the same and hashes will sit around 89. When I run my miner, I always set its priority to Above Normal. Sometimes it seems to keep this trend, even after other activities have stopped, of running 96% and giving me low hashes. I've found if I just shut it off, for a few minutes, then start it back up again, it seems to work just fine. Ask me why, I dunno, but it does. It'll go up to 99% just fine. Could possibly be a driver thing.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: jkminkov on March 07, 2011, 10:43:08 AM
I found that when initial allocation of resources shows something different from 128,256(speed benchmark?), gpu is not used @ 100% happens mostly after using 3D/Cuda resources and launching miner in less than 1 minute


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TurboK on March 11, 2011, 02:36:53 PM
Hi.
I'm running rpcminer-opencl.exe (20110227), and all is going right... except for one rather nasty problem. If I open any video file (local using MPC-HC with EVR renderer and ffdshow, or online on Youtube), or open Gpu-Z, my computer hangs up completely. This only happens while running the rpcminer.
I'm using a Radeon 6950 with Catalyst 11.2 on Win7 x64, GA-P35-DS3 motherboard and E6550 cpu. Upgrading to 11.4 preview made no difference. Switching from RPC Miner to poclbm made no difference, it still hangs up.

In the past, I had similar problems with another GPU accelerated app on my previous videocard - a Radeon 5850, it hanged up the whole system the exact same way when using ighashgpu + opening any video file. This was later fixed in one of the Catalyst updates.

Overheating etc. cannot be an issue, as I have adequate cooling and a good power supply (corsair hx520w).

Is there anything I can try (some setting in rpc miner), or am I limited to waiting a catalyst update that fixes this issue?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: jkminkov on March 11, 2011, 05:18:29 PM
for radeon use SDK 2.2
run poclbm with -f120 -v -w128
lower priority of poclbm with task manager to low

if you play youtube clips, expect hashrate to drop by 50%
if still lags, rise value to -f150 or more


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TurboK on March 11, 2011, 06:55:18 PM
The problem isn't performance. My computer flat-out hangs. No BSOD, no error message, no trace of anything in the event log. The screen will just freeze permanently. Only a hard reset will revive it.

I've tried various -f switches for poclbm-mod, and I've tried Stream SDK 2.1 to 2.4. All of them hang.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: jkminkov on March 11, 2011, 07:34:00 PM
try with updating codecs or use another player? VLC?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TurboK on March 11, 2011, 07:52:28 PM
It's not a question of codecs or players. Alternate players will work if I set them to full software mode (so they don't use VMR9 or EVR). But I can't set anything like that for Youtube (no video settings in CCC make a difference, neither does disabling hardware acceleration in Flash).

Moreover, GPU-Z triggers this as well, but only on startup. Load poclbm-mod first, then gpu-z = hangs. Load gpu-z first, then poclbm-mod = runs fine. Since all gpu-z does is poll the functions of the card, that makes me think that the cause of the hang is when Stream functions + UVD functions are accessed at the same time.

Like I said, I've been plagued by the same issue back with my 5850, using vista x86. That was fixed in Catalyst 10.3. Now, on Win7 x64 and a 6950, the problem persists with catalyst 10.12 to 11.4p.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: andr on March 13, 2011, 01:09:49 AM
Hi. Thanks for the miner. Until I update my video drivers, trying out the CPU miner, and it doesn't post work to http://mining.bitcoin.cz/

It receives work and calculates hashes, but no shares are ever reflected in the profile. How to fix this?

Running command: C:\...\bitcoin-rpcminer-20110227-win32bin\rpcminer-cpu.exe -url=http://mining.bitcoin.cz:8332/ -user=xxx.xxx -password=xxx -threads=1 -statsurl=http://mining.bitcoin.cz/stats/json/


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on March 13, 2011, 01:53:51 AM
It receives work and calculates hashes, but no shares are ever reflected in the profile. How to fix this?

Depends on your hashrate, it can take a hour to find a share. It is very approximately 1 share/hour for every 1 Mhash/s in average.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on March 14, 2011, 12:21:45 PM
is -workrefreshms=xxxx the same as askrate ?
fairuser demands an ask rate of 10 sec to use his pool but refuses to answer what he's talking about


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: geebus on March 14, 2011, 12:35:03 PM
is -workrefreshms=xxxx the same as askrate ?
fairuser demands an ask rate of 10 sec to use his pool but refuses to answer what he's talking about

Use the following command to connect and run on bitcoinpool.com:
Code:
rpcminer-cpu.exe -url=http://bitcoinpool.com:8334 -user=USERNAME -password=PASSWORD -workrefreshms=20000

Replace USERNAME and PASSWORD with your own credentials.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on March 14, 2011, 01:18:03 PM
is -workrefreshms=xxxx the same as askrate ?
fairuser demands an ask rate of 10 sec to use his pool but refuses to answer what he's talking about

Use the following command to connect and run on bitcoinpool.com:
Code:
rpcminer-cpu.exe -url=http://bitcoinpool.com:8334 -user=USERNAME -password=PASSWORD -workrefreshms=20000

Replace USERNAME and PASSWORD with your own credentials.

Would have been nice to just say that in your own thread
And I would not have had to bother to ask here


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: electrotime on March 27, 2011, 09:29:33 PM
Is rpc-cuda supporting long polling? If not, will be implemented?

Thanks!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on March 27, 2011, 10:21:32 PM
I'd like to see you support long pole
I use your miner because it was the only one I could get to work as a newbee
only prob I've had with it  is with fairuser and his askrate that he could not explain
... funny later it was answered here
... he couldn't understand it before I asked you
if askrate was workrefresh ... and then they changed their instructions

anyway
I support you
keep up the good work
 


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FnuGk on March 28, 2011, 04:59:54 PM
Hi

i got this far trying to compile on OS X 10.6.7
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:1128 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:79 (FIND_PACKAGE)


-- Found wxWidgets: TRUE
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
CMake Error at cmake-modules/FindCUDA.cmake:465 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:117 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
Jespers-MacBook-Pro:build jepper_broge$

i am a complete novice and have never compiled my own source before so it would be of great help if someone could spell it out what is going wrong and how do i fix it?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on March 28, 2011, 05:13:09 PM
Quote
 
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.

apparently you don't have "BOOST" installed or it is not installed in the proper location
I don't know if boost works with osx  boost is a C++ addon enhancement for linux/unix


Hi

i got this far trying to compile on OS X 10.6.7
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:1128 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:79 (FIND_PACKAGE)


-- Found wxWidgets: TRUE
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
CMake Error at cmake-modules/FindCUDA.cmake:465 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:117 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
Jespers-MacBook-Pro:build jepper_broge$

i am a complete novice and have never compiled my own source before so it would be of great help if someone could spell it out what is going wrong and how do i fix it?



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FnuGk on March 28, 2011, 05:25:39 PM
Quote
 
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.

apparently you don't have "BOOST" installed or it is not installed in the proper location
I don't know is it works with osx  boost is a C++ addon enhancement for linux/unix


Hi

i got this far trying to compile on OS X 10.6.7
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /Applications/CMake 2.8-4.app/Contents/share/cmake-2.8/Modules/FindBoost.cmake:1128 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:79 (FIND_PACKAGE)


-- Found wxWidgets: TRUE
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
CMake Error at cmake-modules/FindCUDA.cmake:465 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:117 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
Jespers-MacBook-Pro:build jepper_broge$

i am a complete novice and have never compiled my own source before so it would be of great help if someone could spell it out what is going wrong and how do i fix it?


downloaded boost from here: http://www.boost.org/users/download/ and im lost again


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LMGTFY on March 28, 2011, 05:36:25 PM
downloaded boost from here: http://www.boost.org/users/download/ and im lost again
If it helps (and it may not, I'm not a regular OSX person) Boost is in MacPorts. May make life easier, you should just be able to...
Code:
sudo port install boost

Obviously this relies on you having MacPorts installed, but I assume that that's a regular OSX install, no compilation required.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on March 28, 2011, 05:38:18 PM
unzip the download
noting where it unzips to

you may have to tell make where it is

or check the make to see where it wants boost and make sure it goes there


Better is follow the instruction of the last post


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Blackasaurus on March 28, 2011, 09:35:42 PM
Can't get it to work (opencl miner), but the CPU miner works fine
Same for the screensavers
Heres what it gives me
Code:
C:\mining\Screensavers>rpcminer-opencl.exe -url=http://deepbit.net:8332 -user=xxxx -password=xxxx
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_khr_global_int32_base_atomics cl_khr_global_int32_exte
nded_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics
 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_d
evice_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_
sharing
Defining AMDMEDIAOPS
Create context rval=0
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS
0 khash/s
0 khash/s
0 khash/s


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: urizane on March 28, 2011, 10:55:57 PM
Can't get it to work (opencl miner), but the CPU miner works fine
Same for the screensavers
Heres what it gives me

Looking elsewhere in this thread, the issue is you're not seeing 'Build program rval=0'.  Download the binary package from the first post and look for a BitcoinMiner.cl file.  This is apparently what you're missing.

EDIT: Also, puddinpop.  Is it possible to get a check in there to see if the file exists or can be loaded?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Blackasaurus on March 29, 2011, 12:12:37 AM

Looking elsewhere in this thread, the issue is you're not seeing 'Build program rval=0'.  Download the binary package from the first post and look for a BitcoinMiner.cl file.  This is apparently what you're missing.

EDIT: Also, puddinpop.  Is it possible to get a check in there to see if the file exists or can be loaded?

No file with that name in here, theres a bitcoinmineropencl.cl but i already have that in the folder


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: urizane on March 29, 2011, 09:07:51 AM
No file with that name in here, theres a bitcoinmineropencl.cl but i already have that in the folder

Oh yeah, you're right.  I was looking at poclbm mistakenly.  Well, for some reason, it's still not loading the .cl file.  As far as the screensaver goes, both the .scr file and the .cl file have to be in system32 (32-bit Windows) or syswow64 (64-bit Windows) in order for it to work.  As far as the standard OpenCL miner not working, I'm kind of lost there.  There might be some possible issues, though.

Are you starting it from a shortcut?  If so, make sure the "Start in" field is set to the miner directory.

Are you starting from a batch file?  If so, either the batch file has to execute from the same directory as the miner or the batch file has to manually change paths to the same directory as the miner.

The main point is, the miner doesn't go looking around your drive for the .cl file.  It just hopes that it's in the current working directory.

EDIT: The point about the batch file also applies to the command line.  If you type the full path in front of the miner executable and you're not in that directory when you type it, it won't find the .cl file.  Just to give you an idea what I mean, here's what I'm using for the CUDA miner:
Code:
cd /D E:\bitcoin-0.3.20.2\bitcoin-rpcminer-20110227-win32bin
rpcminer-cuda.exe -url=http://mining.bitcoin.cz:8332 -user=user.worker -password=password -workrefreshms=8000 -gpu=0 -gpugrid=128 -gputhreads=128


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FnuGk on March 29, 2011, 01:32:32 PM
downloaded boost from here: http://www.boost.org/users/download/ and im lost again
If it helps (and it may not, I'm not a regular OSX person) Boost is in MacPorts. May make life easier, you should just be able to...
Code:
sudo port install boost

Obviously this relies on you having MacPorts installed, but I assume that that's a regular OSX install, no compilation required.

okay installing boost with macports worked. Also had to install the cuda toolkit from here: http://developer.nvidia.com/object/cuda_3_2_downloads.html#MacOS

after running cmake i get this:
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found wxWidgets: TRUE
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
-- Found CUDA: /usr/local/cuda
-- Found CURL: /usr/lib/libcurl.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
Jespers-MacBook-Pro:build jepper_broge$ ls
CMakeCache.txt cmake-bitcoin cmake-rpcminer
CMakeFiles cmake-bitcoind cmake_install.cmake
Makefile cmake-bitcoinr
Jespers-MacBook-Pro:build jepper_broge$

What do i do now? i though running the initial cmake would start compiling the source but just created what you see in the ls. Remember i am completely new to this so what exactly should i do from here to get some working binaries?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on March 29, 2011, 02:25:33 PM
downloaded boost from here: http://www.boost.org/users/download/ and im lost again
If it helps (and it may not, I'm not a regular OSX person) Boost is in MacPorts. May make life easier, you should just be able to...
Code:
sudo port install boost

Obviously this relies on you having MacPorts installed, but I assume that that's a regular OSX install, no compilation required.

okay installing boost with macports worked. Also had to install the cuda toolkit from here: http://developer.nvidia.com/object/cuda_3_2_downloads.html#MacOS

after running cmake i get this:
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found wxWidgets: TRUE
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
-- Found CUDA: /usr/local/cuda
-- Found CURL: /usr/lib/libcurl.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
Jespers-MacBook-Pro:build jepper_broge$ ls
CMakeCache.txt cmake-bitcoin cmake-rpcminer
CMakeFiles cmake-bitcoind cmake_install.cmake
Makefile cmake-bitcoinr
Jespers-MacBook-Pro:build jepper_broge$

What do i do now? i though running the initial cmake would start compiling the source but just created what you see in the ls. Remember i am completely new to this so what exactly should i do from here to get some working binaries?

run cmake in the ls directory    then cmake cmake_install


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FnuGk on March 29, 2011, 02:33:35 PM
downloaded boost from here: http://www.boost.org/users/download/ and im lost again
If it helps (and it may not, I'm not a regular OSX person) Boost is in MacPorts. May make life easier, you should just be able to...
Code:
sudo port install boost

Obviously this relies on you having MacPorts installed, but I assume that that's a regular OSX install, no compilation required.

okay installing boost with macports worked. Also had to install the cuda toolkit from here: http://developer.nvidia.com/object/cuda_3_2_downloads.html#MacOS

after running cmake i get this:
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found wxWidgets: TRUE
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
-- Found CUDA: /usr/local/cuda
-- Found CURL: /usr/lib/libcurl.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
Jespers-MacBook-Pro:build jepper_broge$ ls
CMakeCache.txt cmake-bitcoin cmake-rpcminer
CMakeFiles cmake-bitcoind cmake_install.cmake
Makefile cmake-bitcoinr
Jespers-MacBook-Pro:build jepper_broge$

What do i do now? i though running the initial cmake would start compiling the source but just created what you see in the ls. Remember i am completely new to this so what exactly should i do from here to get some working binaries?

run cmake in the ls directory    then cmake cmake_install

gives me this error:
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
Jespers-MacBook-Pro:build jepper_broge$ cmake cmake_install
CMake Error: The source directory "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake_install" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Jespers-MacBook-Pro:build jepper_broge$ cmake cmake_install.cmake
CMake Error: The source directory "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake_install.cmake" is a file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.
Jespers-MacBook-Pro:build jepper_broge$



seems like i am doing something wrong


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on March 29, 2011, 04:45:52 PM
Quote
Quote

run cmake in the ls directory    then cmake cmake_install

gives me this error:
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
Jespers-MacBook-Pro:build jepper_broge$ cmake cmake_install
CMake Error: The source directory "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake_install" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Jespers-MacBook-Pro:build jepper_broge$ cmake cmake_install.cmake
CMake Error: The source directory "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake_install.cmake" is a file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.
Jespers-MacBook-Pro:build jepper_broge$



seems like i am doing something wrong




It's been a while since I compiled something in Linux
I may be the build command in that directory


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FnuGk on March 29, 2011, 05:22:36 PM
simply using make in the build directory seems to be working at first but then gives a gazzilion errors. The output is too much to be able to post here so i will just post the the first lines around where the first errors appear. This is it running in verbose mode:
Code:
Jespers-MacBook-Pro:build jepper_broge$ VERBOSE=1 make
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -H/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src -B/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_start /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f cmake-bitcoin/CMakeFiles/bitcoin.dir/build.make cmake-bitcoin/CMakeFiles/bitcoin.dir/depend
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles 22
[  1%] Building NVCC (Device) object cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E make_directory /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/.
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -D verbose:BOOL=1 -D build_configuration:STRING= -D generated_file:STRING=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o -D generated_cubin_file:STRING=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o.cubin.txt -P /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.cmake
-- Removing /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E remove /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
-- Generating dependency file: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.NVCC-depend
/usr/local/cuda/bin/nvcc -M -D__CUDACC__ /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/cuda/bitcoinminercuda.cu -o /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.NVCC-depend -m64 -DGUI -D_BITCOIN_MINER_CUDA_ -Xcompiler ,\"-g\" -DNVCC -I/usr/local/cuda/include -I/opt/local/include -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -I/usr/include -I/usr/local/cuda/include
-- Generating temporary cmake readable file: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend.tmp
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -D input_file:FILEPATH=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.NVCC-depend -D output_file:FILEPATH=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend.tmp -P /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/cmake-modules/FindCUDA/make2cmake.cmake
-- Copy if different /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend.tmp to /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E copy_if_different /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend.tmp /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend
-- Removing /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend.tmp and /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.NVCC-depend
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E remove /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.depend.tmp /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin_generated_bitcoinminercuda.cu.o.NVCC-depend
-- Generating /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o
/usr/local/cuda/bin/nvcc /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/cuda/bitcoinminercuda.cu -c -o /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o -m64 -DGUI -D_BITCOIN_MINER_CUDA_ -Xcompiler ,\"-g\" -DNVCC -I/usr/local/cuda/include -I/opt/local/include -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -I/usr/include -I/usr/local/cuda/include
Generated /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/./bitcoin_generated_bitcoinminercuda.cu.o successfully.
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/cmake-bitcoin /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin.dir/DependInfo.cmake --color=
Dependee "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin.dir/DependInfo.cmake" is newer than depender "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin.dir/depend.internal".
Dependee "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin/CMakeFiles/bitcoin.dir/depend.internal".
Scanning dependencies of target bitcoin
make -f cmake-bitcoin/CMakeFiles/bitcoin.dir/build.make cmake-bitcoin/CMakeFiles/bitcoin.dir/build
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles 1
[  2%] Building CXX object cmake-bitcoin/CMakeFiles/bitcoin.dir/__/src/db.cpp.o
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-bitcoin && /usr/bin/c++   -DGUI -D_BITCOIN_MINER_CUDA_ -D_BITCOIN_MINER_REMOTE_ -I/opt/local/include -I/usr/lib/wx/include/mac-unicode-debug-2.8 -I/usr/include/wx-2.8 -I/usr/local/cuda/include   -o CMakeFiles/bitcoin.dir/__/src/db.cpp.o -c /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp
In file included from /usr/include/wx-2.8/wx/wx.h:15,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/headers.h:33,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp:5:
/usr/include/wx-2.8/wx/defs.h:42:13: error: #error "No Target! You should use wx-config program for compilation flags!"
In file included from /usr/include/wx-2.8/wx/cmndata.h:17,
                 from /usr/include/wx-2.8/wx/wx.h:65,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/headers.h:33,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp:5:
/usr/include/wx-2.8/wx/encinfo.h:64:6: error: #error "Unsupported toolkit"
In file included from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp:5:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/headers.h:46:20: error: db_cxx.h: No such file or directory
In file included from /usr/include/wx-2.8/wx/event.h:22,
                 from /usr/include/wx-2.8/wx/wx.h:25,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/headers.h:33,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp:5:
/usr/include/wx-2.8/wx/cursor.h: In destructor ‘wxBusyCursorSuspender::~wxBusyCursorSuspender()’:
/usr/include/wx-2.8/wx/cursor.h:74: error: invalid use of incomplete type ‘const struct wxCursor’
/usr/include/wx-2.8/wx/gdicmn.h:33: error: forward declaration of ‘const struct wxCursor’
In file included from /usr/include/wx-2.8/wx/wx.h:25,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/headers.h:33,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp:5:
/usr/include/wx-2.8/wx/event.h: At global scope:
/usr/include/wx-2.8/wx/event.h:921: error: field ‘m_cursor’ has incomplete type
/usr/include/wx-2.8/wx/event.h: In constructor ‘wxSetCursorEvent::wxSetCursorEvent(wxCoord, wxCoord)’:
/usr/include/wx-2.8/wx/event.h:900: error: class ‘wxSetCursorEvent’ does not have any field named ‘m_cursor’
/usr/include/wx-2.8/wx/event.h: In copy constructor ‘wxSetCursorEvent::wxSetCursorEvent(const wxSetCursorEvent&)’:
/usr/include/wx-2.8/wx/event.h:907: error: class ‘wxSetCursorEvent’ does not have any field named ‘m_cursor’
/usr/include/wx-2.8/wx/event.h:907: error: ‘const class wxSetCursorEvent’ has no member named ‘m_cursor’
/usr/include/wx-2.8/wx/event.h: In member function ‘void wxSetCursorEvent::SetCursor(const wxCursor&)’:
/usr/include/wx-2.8/wx/event.h:913: error: ‘m_cursor’ was not declared in this scope
/usr/include/wx-2.8/wx/event.h: In member function ‘const wxCursor& wxSetCursorEvent::GetCursor() const’:
/usr/include/wx-2.8/wx/event.h:914: error: ‘m_cursor’ was not declared in this scope
/usr/include/wx-2.8/wx/event.h: In member function ‘bool wxSetCursorEvent::HasCursor() const’:
/usr/include/wx-2.8/wx/event.h:915: error: ‘m_cursor’ was not declared in this scope
In file included from /usr/include/wx-2.8/wx/wx.h:26,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/headers.h:33,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp:5:
/usr/include/wx-2.8/wx/app.h: In constructor ‘wxAppInitializer::wxAppInitializer(wxAppConsole* (*)())’:
/usr/include/wx-2.8/wx/app.h:637: error: ‘wxApp’ has not been declared
In file included from /usr/include/wx-2.8/wx/window.h:26,
                 from /usr/include/wx-2.8/wx/wx.h:36,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/headers.h:33,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/db.cpp:5:
/usr/include/wx-2.8/wx/region.h: In member function ‘bool wxRegionBase::Intersect(const wxRect&)’:
/usr/include/wx-2.8/wx/region.h:251: error: invalid use of incomplete type ‘struct wxRegion’

this is just not my day :/


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: urizane on March 29, 2011, 06:34:46 PM
wxWidgets stuff is tied to a GUI in this package if I remember correctly.  Check out CMakeLists.txt in the root directory you unpacked the ZIP file to.  You probably only want CUDA and rpcminer turned on.  Re-do CMake stuff as necessary.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FnuGk on March 29, 2011, 07:07:28 PM
wxWidgets stuff is tied to a GUI in this package if I remember correctly.  Check out CMakeLists.txt in the root directory you unpacked the ZIP file to.  You probably only want CUDA and rpcminer turned on.  Re-do CMake stuff as necessary.

setting only CUDA and rpcminer to ON gives this:
Code:
Jespers-MacBook-Pro:build jepper_broge$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.46.1
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib
-- Found CUDA: /usr/local/cuda
-- Found CURL: /usr/lib/libcurl.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build
Jespers-MacBook-Pro:build jepper_broge$ VERBOSE=1 make
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -H/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src -B/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build --check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_start /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f cmake-rpcminer/CMakeFiles/rpcminer.dir/build.make cmake-rpcminer/CMakeFiles/rpcminer.dir/depend
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles 16
[  6%] Building NVCC (Device) object cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E make_directory /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/.
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -D verbose:BOOL=1 -D build_configuration:STRING= -D generated_file:STRING=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o -D generated_cubin_file:STRING=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o.cubin.txt -P /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.cmake
-- Removing /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E remove /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o
-- Generating dependency file: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.NVCC-depend
/usr/local/cuda/bin/nvcc -M -D__CUDACC__ /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/cuda/bitcoinminercuda.cu -o /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.NVCC-depend -m64 -D_BITCOIN_MINER_CUDA_ -Xcompiler ,\"-g\" -DNVCC -I/usr/local/cuda/include -I/opt/local/include -I/usr/include -I/usr/local/cuda/include
-- Generating temporary cmake readable file: /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend.tmp
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -D input_file:FILEPATH=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.NVCC-depend -D output_file:FILEPATH=/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend.tmp -P /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/cmake-modules/FindCUDA/make2cmake.cmake
-- Copy if different /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend.tmp to /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E copy_if_different /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend.tmp /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend
-- Removing /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend.tmp and /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.NVCC-depend
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E remove /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.depend.tmp /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer_generated_bitcoinminercuda.cu.o.NVCC-depend
-- Generating /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o
/usr/local/cuda/bin/nvcc /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/cuda/bitcoinminercuda.cu -c -o /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o -m64 -D_BITCOIN_MINER_CUDA_ -Xcompiler ,\"-g\" -DNVCC -I/usr/local/cuda/include -I/opt/local/include -I/usr/include -I/usr/local/cuda/include
Generated /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o successfully.
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build && "/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_depends "Unix Makefiles" /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/cmake-rpcminer /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer.dir/DependInfo.cmake --color=
Dependee "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer.dir/DependInfo.cmake" is newer than depender "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer.dir/depend.internal".
Dependee "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer/CMakeFiles/rpcminer.dir/depend.internal".
Scanning dependencies of target rpcminer
make -f cmake-rpcminer/CMakeFiles/rpcminer.dir/build.make cmake-rpcminer/CMakeFiles/rpcminer.dir/build
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles 1
[ 12%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/sha256.cpp.o
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer && /usr/bin/c++   -D_BITCOIN_MINER_CUDA_ -I/opt/local/include -I/usr/local/cuda/include   -o CMakeFiles/rpcminer.dir/__/src/sha256.cpp.o -c /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/sha256.cpp
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles 2
[ 18%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/hex.cpp.o
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer && /usr/bin/c++   -D_BITCOIN_MINER_CUDA_ -I/opt/local/include -I/usr/local/cuda/include   -o CMakeFiles/rpcminer.dir/__/src/rpcminer/hex.cpp.o -c /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/hex.cpp
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles 3
[ 25%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer && /usr/bin/c++   -D_BITCOIN_MINER_CUDA_ -I/opt/local/include -I/usr/local/cuda/include   -o CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o -c /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/httprequest.cpp
"/Applications/CMake 2.8-4.app/Contents/bin/cmake" -E cmake_progress_report /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/CMakeFiles 4
[ 31%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
cd /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/build/cmake-rpcminer && /usr/bin/c++   -D_BITCOIN_MINER_CUDA_ -I/opt/local/include -I/usr/local/cuda/include   -o CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o -c /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/rpcminerclient.cpp
In file included from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/minerheaders.h:58,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/rpcminerclient.h:26,
                 from /Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/rpcminerclient.cpp:19:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)’:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h:579: error: ‘get’ was not declared in this scope
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h: In function ‘void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)’:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h:588: error: ‘get’ was not declared in this scope
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h: In function ‘void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)’:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h:596: error: ‘get’ was not declared in this scope
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)’:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h:610: error: ‘get’ was not declared in this scope
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h: In function ‘void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)’:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h:620: error: ‘get’ was not declared in this scope
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h: In function ‘void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)’:
/Users/jepper_broge/Downloads/bitcoin-remote-rpc-20110227-src/src/rpcminer/../minercommon/../serialize.h:629: error: ‘get’ was not declared in this scope
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o] Error 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make: *** [all] Error 2
Jespers-MacBook-Pro:build jepper_broge$


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: urizane on March 29, 2011, 08:30:00 PM
Well, you got a ton further than where you were before.  I found this post in this thread where JollyGreen got stuck in a similar place you did.  Here's the message:

Hello All,

I've been working on compiling the rpcminer for mac osx leopard 10.5.8.  I've gotten really far and think I'm almost there, but I'm running into an issue related to boost, I believe.  It seems the function "get" is not resolving.  I'm using macports and I've done a "sudo ports -dv install boost", it seems to be finding the boost headers, because it doesn't complain about those, but it can't resolve the "get" function for some reason.

I would like to hear your 2 cents about the issue if you have some spare time.  I would really appreciate it.  I'm willing to donate some bit coins, but at this point I only have 0.07 :)

Code:
make rpcminer
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/turkylurky/opt/src/latestrpc
[  6%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
In file included from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.cpp:22:
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/hex.h:33:8: warning: extra tokens at end of #endif directive
In file included from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/minerheaders.h:57,
                 from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.h:26,
                 from /Users/turkylurky/opt/src/latestrpc/src/rpcminer/rpcminerclient.cpp:19:
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:579: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:588: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:596: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:610: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:620: error: 'get' was not declared in this scope
/Users/turkylurky/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, T3, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>&, int, int)':
/Users/jtflemturkylurkying/opt/src/latestrpc/src/rpcminer/../minercommon/../serialize.h:629: error: 'get' was not declared in this scope
make[3]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o] Error 1
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/rule] Error 2
make: *** [rpcminer] Error 2

I was able to resolve this issue by adding "using namespace boost;" after the boost headers are included in "serialize.h"!  Working on next compile issue, now :)

There are a couple more posts from JollyGreen a few posts down from there.  Look that up and see if there's some insights for you.  You might also try to message JollyGreen and see if there's something the two of you could work out.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on April 01, 2011, 05:31:35 PM
Guess you quit
we need LONGPOLE


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on April 01, 2011, 08:32:48 PM
is POLE= POLL = POOL ?????


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on April 01, 2011, 08:49:36 PM
is POLE= POLL = POOL ?????

PISS  OFF  TROLL
that should be clear

You F**in troll disrag

POLE ON THIS


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on April 01, 2011, 09:28:24 PM
ok, i understand now why u getting angry unnecessarily.
I feel sorry for you loosing your POLE.
Did dog bite it or your mama?
you better go to dr, if not you may die with infection.

Damn, its very bad to hear that bobR lost his POLE, hereafter he is "No POLE bobR mining in pool with long poll"


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FnuGk on April 02, 2011, 10:43:39 AM
Guess you quit
we need LONGPOLE

i have no idea what "using namespace boost;" after the boost headers are included in "serialize.h"! or how to do it. I feel that every time i get one thing to work something else is broken.

i dont understand when releasing source code like this why is everything needed not included so it actually works?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: puddinpop on April 03, 2011, 06:06:08 PM
i have no idea what "using namespace boost;" after the boost headers are included in "serialize.h"! or how to do it. I feel that every time i get one thing to work something else is broken.

It means you edit the serialize.h file in a text editor, and add the line
Code:
using namespace boost;
after the #include lines.

Quote
i dont understand when releasing source code like this why is everything needed not included so it actually works?

Because not everyone has the same version or configurations of the necessary libraries and compile tools, and it would be next to impossible to test all possible configurations.  This is released free and open source.  This means that while it may not work out of the box, you are free to modify it to make it work.  This does not mean you can or should expect it to work out of the box with your particular configuration.

we need LONGPOLE
Maybe I'll add long poll support if I'm incentivized enough to do so.


I have given a significant amount of my time to develop this and release it for anyone to use.  A few good words from a few people and a bunch of complaints from others isn't really enough to provide motivation to continue to enhance this.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bitlock on April 04, 2011, 01:55:44 AM
Just setup bitcoin - pretty cool....

Using AMD x4 955 MB getting about 6100 khash/s on standard cpu
Getting 16K on Nvidia GeForce Gt430 using rpcminer-cuda with default gpu settings

Does this sound about right?



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TehRainbowGuy on April 04, 2011, 06:56:56 PM
I keep getting this error when trying to compile, any ideas?
Code:
Scanning dependencies of target bitcoind
[  2%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/db.cpp.o
[  4%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/init.cpp.o
[  7%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/irc.cpp.o
[  9%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/main.cpp.o
[ 12%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/net.cpp.o
[ 14%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/rpc.cpp.o
[ 17%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/script.cpp.o
[ 19%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/sha256.cpp.o
[ 21%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/util.cpp.o
[ 24%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/cryptopp/cpu.cpp.o
[ 26%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/cryptopp/sha.cpp.o
[ 29%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/gpucommon/gpucommon.cpp.o
[ 31%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/json/json_spirit_reader.cpp.o
[ 34%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/json/json_spirit_value.cpp.o
[ 36%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/json/json_spirit_writer.cpp.o
[ 39%] Building C object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/minercommon/base64.c.o
[ 41%] Building CXX object cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/remote/remoteminer.cpp.o
/home/tehrainbowguy/bit/src/remote/remoteminer.cpp: In member function 'const unsigned int BitcoinMinerRemoteServer::GetReceiveRate(int)':
/home/tehrainbowguy/bit/src/remote/remoteminer.cpp:751:27: error: no match for 'operator=' in 'i = ((BitcoinMinerRemoteServer*)this)->BitcoinMinerRemoteServer::m_receiverate.std::map<_Key, _Tp, _Compare, _Alloc>::erase [with _Key = long int, _Tp = unsigned int, _Compare = std::less<long int>, _Alloc = std::allocator<std::pair<const long int, unsigned int> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >](i)'
/home/tehrainbowguy/bit/src/remote/remoteminer.cpp:751:27: note: candidate is:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_tree.h:156:12: note: std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >& std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >::operator=(const std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >&)
/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_tree.h:156:12: note:   no known conversion for argument 1 from 'void' to 'const std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >&'
/home/tehrainbowguy/bit/src/remote/remoteminer.cpp: In member function 'const unsigned int BitcoinMinerRemoteServer::GetSendRate(int)':
/home/tehrainbowguy/bit/src/remote/remoteminer.cpp:770:24: error: no match for 'operator=' in 'i = ((BitcoinMinerRemoteServer*)this)->BitcoinMinerRemoteServer::m_sendrate.std::map<_Key, _Tp, _Compare, _Alloc>::erase [with _Key = long int, _Tp = unsigned int, _Compare = std::less<long int>, _Alloc = std::allocator<std::pair<const long int, unsigned int> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >](i)'
/home/tehrainbowguy/bit/src/remote/remoteminer.cpp:770:24: note: candidate is:
/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_tree.h:156:12: note: std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >& std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >::operator=(const std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >&)
/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_tree.h:156:12: note:   no known conversion for argument 1 from 'void' to 'const std::_Rb_tree_iterator<std::pair<const long int, unsigned int> >&'
make[2]: *** [cmake-bitcoind/CMakeFiles/bitcoind.dir/__/src/remote/remoteminer.cpp.o] Error 1
make[1]: *** [cmake-bitcoind/CMakeFiles/bitcoind.dir/all] Error 2
make: *** [all] Error 2


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: urizane on April 04, 2011, 11:23:41 PM
Maybe I'll add long poll support if I'm incentivized enough to do so.


I have given a significant amount of my time to develop this and release it for anyone to use.  A few good words from a few people and a bunch of complaints from others isn't really enough to provide motivation to continue to enhance this.

Well, I've got 5 BTC that I can send you from my mining efforts thus far.  I'll go ahead and send that now.  I was intending to send a larger sum, but mining on nVidia hardware hasn't really paid off.  I may send more later.

Kiv intends to support your collection of RPC miners in some fashion in his mining GUI which may open up your miners to more people who would like to use a GUI with these miners.  As far as Long Polling goes, it may be useful for pools that appreciate such a connection method.

Just setup bitcoin - pretty cool....

Using AMD x4 955 MB getting about 6100 khash/s on standard cpu
Getting 16K on Nvidia GeForce Gt430 using rpcminer-cuda with default gpu settings

Does this sound about right?

You could get more out of that CPU.  Try the -4way miner.
The GPU speed you're getting sounds about right.

I keep getting this error when trying to compile, any ideas?

Compiling the remote miner server is giving you some troubles.  Which parts do you really need?  If you're compiling only RPC miners, just turn on the relevant portions and leave the rest off.  (CMakeLists.txt)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TehRainbowGuy on April 05, 2011, 04:01:40 AM
Quote
I keep getting this error when trying to compile, any ideas?

Compiling the remote miner server is giving you some troubles.  Which parts do you really need?  If you're compiling only RPC miners, just turn on the relevant portions and leave the rest off.  (CMakeLists.txt)

That gives me :
Code:
[  7%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
In file included from /home/tehrainbowguy/bit/src/rpcminer/rpcminerclient.cpp:22:0:
/home/tehrainbowguy/bit/src/rpcminer/hex.h:34:8: warning: extra tokens at end of #endif directive [enabled by default]
In file included from /home/tehrainbowguy/bit/src/rpcminer/../minercommon/minerheaders.h:58:0,
                 from /home/tehrainbowguy/bit/src/rpcminer/rpcminerclient.h:26,
                 from /home/tehrainbowguy/bit/src/rpcminer/rpcminerclient.cpp:19:
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2>&, int, int)':
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:579:31: error: 'get' was not declared in this scope
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:579:31: note: suggested alternatives:
/usr/include/boost/tuple/detail/tuple_basic.hpp:211:68: note:   'boost::tuples::get'
/usr/include/boost/tuple/detail/tuple_basic.hpp:225:74: note:   'boost::tuples::get'
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2>&, int, int)':
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:588:19: error: 'get' was not declared in this scope
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:588:19: note: suggested alternatives:
/usr/include/boost/tuple/detail/tuple_basic.hpp:211:68: note:   'boost::tuples::get'
/usr/include/boost/tuple/detail/tuple_basic.hpp:225:74: note:   'boost::tuples::get'
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2>&, int, int)':
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:596:21: error: 'get' was not declared in this scope
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:596:21: note: suggested alternatives:
/usr/include/boost/tuple/detail/tuple_basic.hpp:211:68: note:   'boost::tuples::get'
/usr/include/boost/tuple/detail/tuple_basic.hpp:225:74: note:   'boost::tuples::get'
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h: In function 'unsigned int GetSerializeSize(const boost::tuples::tuple<T0, T1, T2, T3>&, int, int)':
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:610:31: error: 'get' was not declared in this scope
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:610:31: note: suggested alternatives:
/usr/include/boost/tuple/detail/tuple_basic.hpp:211:68: note:   'boost::tuples::get'
/usr/include/boost/tuple/detail/tuple_basic.hpp:225:74: note:   'boost::tuples::get'
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h: In function 'void Serialize(Stream&, const boost::tuples::tuple<T0, T1, T2, T3>&, int, int)':
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:620:19: error: 'get' was not declared in this scope
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:620:19: note: suggested alternatives:
/usr/include/boost/tuple/detail/tuple_basic.hpp:211:68: note:   'boost::tuples::get'
/usr/include/boost/tuple/detail/tuple_basic.hpp:225:74: note:   'boost::tuples::get'
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h: In function 'void Unserialize(Stream&, boost::tuples::tuple<T0, T1, T2, T3>&, int, int)':
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:629:21: error: 'get' was not declared in this scope
/home/tehrainbowguy/bit/src/rpcminer/../minercommon/../serialize.h:629:21: note: suggested alternatives:
/usr/include/boost/tuple/detail/tuple_basic.hpp:211:68: note:   'boost::tuples::get'
/usr/include/boost/tuple/detail/tuple_basic.hpp:225:74: note:   'boost::tuples::get'
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o] Error 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make: *** [all] Error 2

##EDIT##

Ignore the above, adding
Code:
using namespace boost;
to serialize.h seems to fix it.

Thanks urizane


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: nayrB16 on April 09, 2011, 11:53:48 PM
I just got my OpenCL GPU mining running for my ATI card pushing out around 20.1 Mhash/s as you can see http://i.imgur.com/VVTWd.jpg. The mining drives my GPU temp to around 82 C and the ratio between total network hash's and mine is about 1:32226 up from 1:350140 when i was getting about 1850 Khash/s doing only CPU mining. the necessary steps to get it to work was getting the right ATI Stream SDK driver installed (I used V2.3 for Windows 7 64bit) downloading and installing poclbm (which installs as guiminer) and creating the proper bitcoin.conf file. post this in the .conf file and edit the rpc username and rpcpassword

# bitcoin.conf configuration file. Lines beginning with # are comments.


# Network-related settings:

# Run on the test network instead of the real bitcoin network.
#testnet=1

# Connect via a socks4 proxy
#proxy=127.0.0.1:9050

# Use as many addnode= settings as you like to connect to specific peers
#addnode=69.164.218.197
#addnode=10.0.0.2:8333

# ... or use as many connect= settings as you like to connect ONLY
# to specific peers:
#connect=69.164.218.197
#connect=10.0.0.1:8333

# Do not use Internet Relay Chat (irc.lfnet.org #bitcoin channel) to
# find other peers.
#noirc=1

# Maximum number of inbound+outbound connections.
#maxconnections=


# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)

# server=1 tells Bitcoin to accept JSON-RPC commands.
server=1

# You must set rpcuser and rpcpassword to secure the JSON-RPC api
rpcuser=What ever you want
rpcpassword=What ever you want

# How many seconds bitcoin will wait for a complete RPC HTTP request.
# after the HTTP connection is established.
rpctimeout=30

# By default, only RPC connections from localhost are allowed.  Specify
# as many rpcallowip= settings as you like to allow connections from
# other hosts (and you may use * as a wildcard character):
#rpcallowip=10.1.1.34
#rpcallowip=192.168.1.*

# Listen for RPC connections on this TCP port:
rpcport=8332

# You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind
# running on another host using this option:
rpcconnect=127.0.0.1

# Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate
# with Bitcoin -server or bitcoind
#rpcssl=1

# OpenSSL settings used when rpcssl=1
rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH
rpcsslcertificatechainfile=server.cert
rpcsslprivatekeyfile=server.pem


# Miscellaneous options

# Set gen=1 to attempt to generate bitcoins
gen=0

# Use SSE instructions to try to generate bitcoins faster.
#4way=1

# Pre-generate this many public/private key pairs, so wallet backups will be valid for
# both prior transactions and several dozen future transactions.
keypool=100

# Pay an optional transaction fee every time you send bitcoins.  Transactions with fees
# are more likely than free transactions to be included in generated blocks, so may
# be validated sooner.
paytxfee=0.00

# Allow direct connections for the 'pay via IP address' feature.
#allowreceivebyip=1


# User interface options

# Start Bitcoin minimized
min=1

# Minimize to the system tray
#minimizetotray=1


And that is all there was to it for me
If this helped you out donations are accepted and much appreciated. 1HjtErSHNEHtY347LouvsFq5KesHkEZLAV


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LightRider on April 10, 2011, 08:48:55 AM
RPC-4way does not appear to return or display JSON status requests from btcmine.com's API (http://btcmine.com/page/api/). Does the program expect a certain JSON structure that is incompatible with btcmine's or could something else be wrong?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: lon85 on April 13, 2011, 10:29:27 AM
 :o
What are the best settings for a  ATI 5850m ?

Ps: Your program is running fine good job  :D

Play with the -aggression, -gputhreads, and -gpugrid parameters. :o 8)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: commlinx on April 18, 2011, 06:37:06 AM
I've just got an HD 5970 today and have been playing around with the various parameters, previously I'd been running with an Nvidia. Anyway it's all generally OK however after spending quite a while treaking the parameters the best I've been able to achieve is to go from 175 to 270 M/hashes, which looking at the GPU hardware comparison looks like around half what I should be getting.

I thought maybe only one GPU was being used, so I tried starting one with -gpu=0 and another with -gpu=1 but they both started with about half the hash rate as before (about the same overall). I've put my best attempt below, any ideas? Being new to ATI cards I just thought to check Catalyst and it does appear only one GPU is being used, one is 93% and other is 0%. I just checked again and it was the same with two instances running with -gpu.

Edit - after looking further I see my problem is the card isn't using the 3D clocks so it's set to 400MHz. I'll start a new thread as it's not specific to this miner.

Edit 2 - if looks like the above was just a reporting problem fixed by a reboot, after that it now reports 750MHz but performance is the same. However if I increase the clock rate to 850MHz I get the 13% odd performance increase expected so I now think my card is running at full speed but hash rates are below what I was expecting for some reason.

E:\Temp>rpcminer-opencl -url=http://127.0.0.1:8332 -user=xxx -password=xxx -aggression=10 -gpugrid=1024 -gputhreads=256 
Client will start 1 miner threads
Work will be refreshed every 4000 ms
Target = 000000000000cbbd0000000000000000000000000000000000000000000000
1 OpenCL platforms found
2 OpenCL GPU devices found on platform 0
Setting OpenCL device to first device found
Available extensions : cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt cl_khr_d3d10_sharing
Defining AMDMEDIAOPS
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D AMDMEDIAOPS -D WORKGROUPSIZE=256
Build program rval=0
build STATUS:
build LOG:
Create kernel rval=0
Done allocating OpenCL resources for (1024,256)
Finding best configuration step end (1024,256) 541ms  prev best=9223372036854775807ms
Done allocating OpenCL resources for (1024,256)
120278 khash/s
254377 khash/s


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: alexandrz on April 20, 2011, 11:22:11 AM
I want to install this miner as a service in windows 7. Is it possible? I tried to create a service using Sc.exe (http://support.microsoft.com/kb/251192) but the service didn't started up.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on April 20, 2011, 11:54:05 AM
I want to install this miner as a service in windows 7. Is it possible? I tried to create a service using Sc.exe (http://support.microsoft.com/kb/251192) but the service didn't started up.

I'm using it with Win7 64 bit
Win 7 is fussy about what it runs as a service
you could run it as a scheduled task at startup


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: alexandrz on April 20, 2011, 12:18:13 PM
I want to install this miner as a service in windows 7. Is it possible? I tried to create a service using Sc.exe (http://support.microsoft.com/kb/251192) but the service didn't started up.

I'm using it with Win7 64 bit
Win 7 is fussy about what it runs as a service
you could run it as a scheduled task at startup

Thanks. I will try. Can I make a scheduled task invisible for user?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on April 20, 2011, 12:26:52 PM
I want to install this miner as a service in windows 7. Is it possible? I tried to create a service using Sc.exe (http://support.microsoft.com/kb/251192) but the service didn't started up.

I'm using it with Win7 64 bit
Win 7 is fussy about what it runs as a service
you could run it as a scheduled task at startup

Thanks. I will try. Can I make a scheduled task invisible for user?

the running miner wont be visable
you can even hide the scheduled task that starts the miner


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: alexandrz on April 20, 2011, 05:53:31 PM
I want to install this miner as a service in windows 7. Is it possible? I tried to create a service using Sc.exe (http://support.microsoft.com/kb/251192) but the service didn't started up.

I'm using it with Win7 64 bit
Win 7 is fussy about what it runs as a service
you could run it as a scheduled task at startup

Thanks. I will try. Can I make a scheduled task invisible for user?

the running miner wont be visable
you can even hide the scheduled task that starts the miner

Thanks!

I hid it using this utility http://www.ntwind.com/software/utilities/hstart.html


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bobR on April 20, 2011, 10:18:32 PM
I want to install this miner as a service in windows 7. Is it possible? I tried to create a service using Sc.exe (http://support.microsoft.com/kb/251192) but the service didn't started up.

I'm using it with Win7 64 bit
Win 7 is fussy about what it runs as a service
you could run it as a scheduled task at startup

Thanks. I will try. Can I make a scheduled task invisible for user?

the running miner wont be visable
you can even hide the scheduled task that starts the miner

Thanks!

I hid it using this utility http://www.ntwind.com/software/utilities/hstart.html

done that too
but in win7 it's not nessary


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: maykelmoya on April 22, 2011, 04:17:13 PM
Ok, I did a make rpcminer, and it builds the kernel and everything fine, but fails on linking (undefined reference to `cuInit').  I have added the cuda lib directory to the ld config file and ran ldconfig as root.  I also tried setting the LD_LIBRARY_PATH with no success.  Perhaps there's a -lcuda missing somewhere, but I've never worked with CMake, so I have no idea where look.  Any ideas?

I'm facing the same problem. I manually added -lcuda to cmake-rpcminer/CMakeFiles/rpcminer.dir/link.txt but linker can not find '-lcuda'. libcuda.so is present in ldconfig -v.

Did you manage to solve it?



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: thesebastian on April 23, 2011, 01:33:08 AM
When i stop the cuda miner my gpu starts to work at less than 40% Usage. (Like 450mhz). It's a 560 ti.

Currently i'm not using parameters with the cuda miner, do you any suggestion? (currently using vga at 39% fan speed and 68şC maximum).


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LightRider on April 24, 2011, 12:24:43 AM
Is it possible to modify the thread priority on RPC4Way to idle? It's causing difficulties with other programs trying to run at the same time while it is using all available cycles at normal priority.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TheShoura on April 27, 2011, 10:15:12 AM
So I'm trying to use this Cuda miner on my nvidia GTX 460 as I'm curious if its faster than poclbm.... however i cant get it to work.

I'm getting CURL return value = 22, couldn't retreive work from RPC server.... how do I correct this.... I'm using this parameters:

rpcminer-cuda.exe -host=http://deepbit.net -port=8332 -user=XXXXXXXXX@gmail.com -pass=XXXXXXXX -gpu

currently poclbm runs at ~60 khash/s according to deepbit, the window itself though reads 48,350 khash/s... not sure for the variance but oh well

Help testing the cuda miner?

I have poclbm working with deepbit before anyone tries to suggest arbitrary "make sure your info is good". Unless I need to make a second worker?


edit1; tweaked the startup command a bit, still not working, added info


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: commlinx on April 27, 2011, 10:32:18 AM
So I'm trying to use this Cuda miner on my nvidia GTX 460 as I'm curious if its faster than poclbm.... however i cant get it to work.

I'm getting CURL return value = 22, couldn't retreive work from RPC server.... how do I correct this.... I'm using this parameters:

rpcminer-cuda.exe -host=http://deepbit.net -port=8332 -user=XXXXXXXXX@gmail.com -pass=XXXXXXXX -gpu

currently poclbm runs at ~60 khash/s according to deepbit, the window itself though reads 48,350 khash/s... not sure for the variance but oh well

Help testing the cuda miner?

I have poclbm working with deepbit before anyone tries to suggest arbitrary "make sure your info is good". Unless I need to make a second worker?


edit1; tweaked the startup command a bit, still not working, added info
Try the following syntax, it's what I was using on deepbit fairly recently:

rpcminer-cuda.exe -url=http://deepbit.net:8332 -user=XXXXXXXXX@gmail.com -password=XXXXXXXX

The deepbit speeds are an approximation over time as it doesn't know the true speeds, what poclbm was reporting will be a more accurate number.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TheShoura on April 27, 2011, 10:42:22 AM
So I'm trying to use this Cuda miner on my nvidia GTX 460 as I'm curious if its faster than poclbm.... however i cant get it to work.

I'm getting CURL return value = 22, couldn't retreive work from RPC server.... how do I correct this.... I'm using this parameters:

rpcminer-cuda.exe -host=http://deepbit.net -port=8332 -user=XXXXXXXXX@gmail.com -pass=XXXXXXXX -gpu

currently poclbm runs at ~60 khash/s according to deepbit, the window itself though reads 48,350 khash/s... not sure for the variance but oh well

Help testing the cuda miner?

I have poclbm working with deepbit before anyone tries to suggest arbitrary "make sure your info is good". Unless I need to make a second worker?


edit1; tweaked the startup command a bit, still not working, added info
Try the following syntax, it's what I was using on deepbit fairly recently:

rpcminer-cuda.exe -url=http://deepbit.net:8332 -user=XXXXXXXXX@gmail.com -password=XXXXXXXX

The deepbit speeds are an approximation over time as it doesn't know the true speeds, what poclbm was reporting will be a more accurate number.


rpcminer-cuda.exe start -url=http://deepbit.net:8332 -user=XXXX@gmail.com -password=XXXX -gpu
Not working still
could not retrieve work from rpc server CURL return value = 22

also says 'no blocks being hashed right now. this can happen if the application is still starting up, you supplied incorrect parameters, or there is a communications error connecting to the server

I dont run anti virus/firewall other than what comes with windows 7 (defender/firewall).


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: commlinx on April 27, 2011, 12:25:22 PM
rpcminer-cuda.exe start -url=http://deepbit.net:8332 -user=XXXX@gmail.com -password=XXXX -gpu
Not working still
could not retrieve work from rpc server CURL return value = 22
If it was working with poclbm I guess your network settings should be OK. CURL return code is a fairly generic code that means the HTTP response was >= 400, that can include not found, internal server errors etc and I'm not sure what deepbit would return if the authentication failed for some reason.

I can see you have "start" in the command line though and don't see a mention of that in readme.txt, so that would be worth removing in case it's trying to use the first parameter by default as a URL. Also I guess it wouldn't cause a problem but -gpu shouldn't be required, according to the documentation it should select the first GPU but I didn't have to use it for that version, I guess it's implied you want to use a GPU because you're running the CUDA version.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TheShoura on April 27, 2011, 05:58:38 PM
rpcminer-cuda.exe start -url=http://deepbit.net:8332 -user=XXXX@gmail.com -password=XXXX -gpu
Not working still
could not retrieve work from rpc server CURL return value = 22
If it was working with poclbm I guess your network settings should be OK. CURL return code is a fairly generic code that means the HTTP response was >= 400, that can include not found, internal server errors etc and I'm not sure what deepbit would return if the authentication failed for some reason.

I can see you have "start" in the command line though and don't see a mention of that in readme.txt, so that would be worth removing in case it's trying to use the first parameter by default as a URL. Also I guess it wouldn't cause a problem but -gpu shouldn't be required, according to the documentation it should select the first GPU but I didn't have to use it for that version, I guess it's implied you want to use a GPU because you're running the CUDA version.

Yeah, I removed the start flag and its working fine now lol... 60khash/s which is better than poclbm at 50kash/s :D  yay

would i be better off with proportional payout or pps in mining pool?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TheShoura on April 27, 2011, 06:22:15 PM
edit: different question

the client reports 60Mhash/s but the site, deepbit.net, is now reporting a significantly less average hash/s

any idea for this?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on April 27, 2011, 07:14:09 PM
edit: different question

the client reports 60Mhash/s but the site, deepbit.net, is now reporting a significantly less average hash/s

any idea for this?
Its normal. The site reports taking in to account of how much share u requested & how much u solved.....
What your client reports is the correct hash/s you get.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Empire10 on April 28, 2011, 06:54:02 PM
Hello, I've installed all the dependencies and whatnot, but get an error when trying to make. Can anyone help me out?

craig@aspire5930:~/RpcMiner/src$ make -f makefile.unix
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/util.o util.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/script.o script.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/db.o db.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/net.o net.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/irc.o irc.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/main.o main.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/rpc.o rpc.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -DGUI -o obj/init.o init.cpp
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -O3 -o cryptopp/obj/sha.o cryptopp/sha.cpp
Assembler messages:
Fatal error: can't create cryptopp/obj/sha.o: Not a directory
make: *** [cryptopp/obj/sha.o] Error 1


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: disq on April 28, 2011, 08:14:25 PM
OSX - I was able to compile but linking fails with undefined symbols (_cu*) in bitcoinminercuda.cpp.o.
I'm only trying to compile a rpc cuda miner, so BITCOIN_ENABLE_CUDA and BITCOIN_BUILD_RPC_MINER options are on and others are off.

Code:
Linking CXX executable rpcminer
Undefined symbols:
  "_cuMemcpyDtoH_v2", referenced from:
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
  "_cuCtxDestroy", referenced from:
      CUDARunner::~CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::~CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::~CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuMemAlloc_v2", referenced from:
      CUDARunner::AllocateResources(int, int)in bitcoinminercuda.cpp.o
      CUDARunner::AllocateResources(int, int)in bitcoinminercuda.cpp.o
  "_cuParamSeti", referenced from:
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
  "_cuParamSetv", referenced from:
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
  "_cuDeviceGetCount", referenced from:
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuCtxCreate_v2", referenced from:
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuInit", referenced from:
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuLaunchGrid", referenced from:
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
  "_cuModuleUnload", referenced from:
      CUDARunner::~CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::~CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::~CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuParamSetSize", referenced from:
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
  "_cuMemcpyHtoD_v2", referenced from:
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
  "_cuMemFree_v2", referenced from:
      CUDARunner::DeallocateResources()       in bitcoinminercuda.cpp.o
      CUDARunner::DeallocateResources()       in bitcoinminercuda.cpp.o
  "_cuDeviceComputeCapability", referenced from:
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuDeviceGet", referenced from:
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuModuleGetFunction", referenced from:
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
  "_cuFuncSetBlockShape", referenced from:
      CUDARunner::RunStep()      in bitcoinminercuda.cpp.o
      CUDARunner::FindBestConfiguration()       in bitcoinminercuda.cpp.o
  "_cuModuleLoad", referenced from:
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
      CUDARunner::CUDARunner()in bitcoinminercuda.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [cmake-rpcminer/rpcminer] Error 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make: *** [all] Error 2

here's what the linker runs (contents of cmake-rpcminer/CMakeFiles/rpcminer.dir/link.txt)
Code:
/usr/bin/c++    -Wl,-search_paths_first -headerpad_max_install_names  CMakeFiles/rpcminer.dir/__/sha256.cpp.o CMakeFiles/rpcminer.dir/__/rpcminer/hex.cpp.o CMakeFiles/rpcminer.dir/__/rpcminer/httprequest.cpp.o CMakeFiles/rpcminer.dir/__/rpcminer/rpcminerclient.cpp.o CMakeFiles/rpcminer.dir/__/rpcminer/rpcminermain.cpp.o CMakeFiles/rpcminer.dir/__/rpcminer/rpcminerthreadcpu.cpp.o CMakeFiles/rpcminer.dir/__/rpcminer/rpcrequest.cpp.o CMakeFiles/rpcminer.dir/__/json/json_spirit_reader.cpp.o CMakeFiles/rpcminer.dir/__/json/json_spirit_value.cpp.o CMakeFiles/rpcminer.dir/__/json/json_spirit_writer.cpp.o CMakeFiles/rpcminer.dir/__/minercommon/base64.c.o CMakeFiles/rpcminer.dir/__/cryptopp/cpu.cpp.o CMakeFiles/rpcminer.dir/__/cryptopp/sha.cpp.o CMakeFiles/rpcminer.dir/__/rpcminer/rpcminerthreadgpu.cpp.o CMakeFiles/rpcminer.dir/__/cuda/bitcoinminercuda.cpp.o ./rpcminer_generated_bitcoinminercuda.cu.o  -o rpcminer  /usr/local/cuda/lib/libcudart.dylib -Wl,-rpath -Wl,/usr/local/cuda/lib /opt/local/lib/libboost_date_time-mt.a /opt/local/lib/libboost_filesystem-mt.a /opt/local/lib/libboost_program_options-mt.a /opt/local/lib/libboost_regex-mt.a /opt/local/lib/libboost_system-mt.a /opt/local/lib/libboost_thread-mt.a /usr/lib/libssl.dylib /usr/lib/libcrypto.dylib /usr/lib/libcurl.dylib -lpthread /usr/local/cuda/lib/libcudart.dylib -Wl,-rpath -Wl,/usr/local/cuda/lib /opt/local/lib/libboost_date_time-mt.a /opt/local/lib/libboost_filesystem-mt.a /opt/local/lib/libboost_program_options-mt.a /opt/local/lib/libboost_regex-mt.a /opt/local/lib/libboost_system-mt.a /opt/local/lib/libboost_thread-mt.a /usr/lib/libssl.dylib /usr/lib/libcrypto.dylib /usr/lib/libcurl.dylib -lpthread

I tried with various options, even reoganized the linker line but no success so far. Tried with both cuda sdk 3.2 and cuda sdk 4.0rc2.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: error on April 28, 2011, 09:36:53 PM
OSX - I was able to compile but linking fails with undefined symbols (_cu*) in bitcoinminercuda.cpp.o.
I'm only trying to compile a rpc cuda miner, so BITCOIN_ENABLE_CUDA and BITCOIN_BUILD_RPC_MINER options are on and others are off.

I tried with various options, even reoganized the linker line but no success so far. Tried with both cuda sdk 3.2 and cuda sdk 4.0rc2.

The same error occurs for me on Fedora 15 Beta 64-bit with CUDA 3.2:

Code:
error@underground ~/Desktop/rpcminer $ make rpcminer
Linking CXX executable rpcminer
CMakeFiles/rpcminer.dir/__/src/cuda/bitcoinminercuda.cpp.o: In function `CUDARunner::CUDARunner()':
bitcoinminercuda.cpp:(.text+0x9a): undefined reference to `cuInit'
bitcoinminercuda.cpp:(.text+0xb7): undefined reference to `cuDeviceGetCount'
bitcoinminercuda.cpp:(.text+0x12f): undefined reference to `cuDeviceGet'
bitcoinminercuda.cpp:(.text+0x171): undefined reference to `cuDeviceGet'
bitcoinminercuda.cpp:(.text+0x19e): undefined reference to `cuDeviceComputeCapability'
bitcoinminercuda.cpp:(.text+0x1bc): undefined reference to `cuCtxCreate_v2'
bitcoinminercuda.cpp:(.text+0x271): undefined reference to `cuModuleLoad'
bitcoinminercuda.cpp:(.text+0x299): undefined reference to `cuCtxDestroy'
bitcoinminercuda.cpp:(.text+0x2c3): undefined reference to `cuModuleGetFunction'
bitcoinminercuda.cpp:(.text+0x2f0): undefined reference to `cuModuleUnload'
bitcoinminercuda.cpp:(.text+0x300): undefined reference to `cuCtxDestroy'
CMakeFiles/rpcminer.dir/__/src/cuda/bitcoinminercuda.cpp.o: In function `CUDARunner::~CUDARunner()':
bitcoinminercuda.cpp:(.text+0x3d2): undefined reference to `cuModuleUnload'
bitcoinminercuda.cpp:(.text+0x3e2): undefined reference to `cuCtxDestroy'
CMakeFiles/rpcminer.dir/__/src/cuda/bitcoinminercuda.cpp.o: In function `CUDARunner::AllocateResources(int, int)':
bitcoinminercuda.cpp:(.text+0x4c7): undefined reference to `cuMemAlloc_v2'
bitcoinminercuda.cpp:(.text+0x518): undefined reference to `cuMemAlloc_v2'
CMakeFiles/rpcminer.dir/__/src/cuda/bitcoinminercuda.cpp.o: In function `CUDARunner::DeallocateResources()':
bitcoinminercuda.cpp:(.text+0x5b4): undefined reference to `cuMemFree_v2'
bitcoinminercuda.cpp:(.text+0x606): undefined reference to `cuMemFree_v2'
CMakeFiles/rpcminer.dir/__/src/cuda/bitcoinminercuda.cpp.o: In function `CUDARunner::FindBestConfiguration()':
bitcoinminercuda.cpp:(.text+0x74e): undefined reference to `cuMemcpyHtoD_v2'
bitcoinminercuda.cpp:(.text+0x797): undefined reference to `cuParamSetv'
bitcoinminercuda.cpp:(.text+0x7d4): undefined reference to `cuParamSetv'
bitcoinminercuda.cpp:(.text+0x801): undefined reference to `cuParamSeti'
bitcoinminercuda.cpp:(.text+0x82e): undefined reference to `cuParamSeti'
bitcoinminercuda.cpp:(.text+0x84c): undefined reference to `cuParamSetSize'
bitcoinminercuda.cpp:(.text+0x869): undefined reference to `cuFuncSetBlockShape'
bitcoinminercuda.cpp:(.text+0x8a2): undefined reference to `cuLaunchGrid'
bitcoinminercuda.cpp:(.text+0x8ed): undefined reference to `cuMemcpyDtoH_v2'
CMakeFiles/rpcminer.dir/__/src/cuda/bitcoinminercuda.cpp.o: In function `CUDARunner::RunStep()':
bitcoinminercuda.cpp:(.text+0xac0): undefined reference to `cuMemcpyHtoD_v2'
bitcoinminercuda.cpp:(.text+0xb15): undefined reference to `cuParamSetv'
bitcoinminercuda.cpp:(.text+0xb52): undefined reference to `cuParamSetv'
bitcoinminercuda.cpp:(.text+0xb7f): undefined reference to `cuParamSeti'
bitcoinminercuda.cpp:(.text+0xbac): undefined reference to `cuParamSeti'
bitcoinminercuda.cpp:(.text+0xbca): undefined reference to `cuParamSetSize'
bitcoinminercuda.cpp:(.text+0xbee): undefined reference to `cuFuncSetBlockShape'
bitcoinminercuda.cpp:(.text+0xc0f): undefined reference to `cuLaunchGrid'
bitcoinminercuda.cpp:(.text+0xc46): undefined reference to `cuMemcpyDtoH_v2'
collect2: ld returned 1 exit status
make[3]: *** [cmake-rpcminer/rpcminer] Error 1
make[2]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/rule] Error 2
make: *** [rpcminer] Error 2

Some Google searching turned up a lot of people having similar problems compiling NVIDIA's sample code but no actual solutions.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TheShoura on April 28, 2011, 09:41:51 PM
Ok I have a 5970 (dual gpu) card as a secondary, GTX 460 (for games) as primary adapter

I want to mine on both GPU for 5970


rpcminer-opencl.exe -url=http://deepbit.net:8332 -user=XXX@gmail.com -password=XXX-gpu

I have not tested it at all, how would I get this going on both GPUs for a secondary card?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: greenlander on April 29, 2011, 03:48:02 AM
I'm new to all this.

I just got my first working binary for rpcminer working for CUDA on Ubuntu 10.10 after screwing around with the source for half a day.  I wanted to roughly document the steps for anyone trying to follow in my footsteps.  Many of the problems were discussed in this thread but I wanted to put them together in one place.

1.  Open up the CMakeLists.txt.  There's a group of seven options (lines 5-11 in my version of the file for me).  I set "Enable CUDA miner" and "Build RPC miner" to ON and everythign else to OFF.
2.  Ran cmake .
3.  Cleaned up some compile errors:
3A.  Added "#include <limits.h>" to serialize.h after the rest of the #includes
3B.  Added "using namespace boost;" just after the includes
3C.  Modified bitcoinminercuda.cu to "#define _BITCOIN_MINER_CUDA_" right above the #ifdef that checks for it.
4.  Ran make
5.  Got .cubin files by running
nvcc ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,\"code=sm_10,compute_10\" -gencode arch=compute_11,\"code=sm_11,compute_11\" --keep -gencode arch=compute_20,\"code=sm_20,compute_20\" --keep
6.  Ran the rpcminer binary from step 4.  It will complain about not being able to run.  Take one of the three .cubin files and put it in your target directory.  You'll have to rename it to the file that rpcminer is looking for.  (in my case, I renamed bitcoinminercuda.compute_20.sm_20.cubin to bitcoinminercuda_20.cubin")
7.  Opened an account on deepbit.net and then ran
./rpcminer -user=foo@bar.com -password=my_password -url=http://deepbit.net:8332/
(of course I changed user and password to whatever I registered with)

Hopefully I didn't leave anything out.
There may be better ways to solve some of those issues, but that's how I solved them and I got a working binary that does hashes using CUDA.

Good luck and happy bitmining.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LightRider on April 30, 2011, 08:06:52 AM
Need to follow this thread for update news. I was a month behind on the other clients.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TheShoura on April 30, 2011, 08:08:47 AM
I'm new to all this.

I just got my first working binary for rpcminer working for CUDA on Ubuntu 10.10 after screwing around with the source for half a day.  I wanted to roughly document the steps for anyone trying to follow in my footsteps.  Many of the problems were discussed in this thread but I wanted to put them together in one place.

1.  Open up the CMakeLists.txt.  There's a group of seven options (lines 5-11 in my version of the file for me).  I set "Enable CUDA miner" and "Build RPC miner" to ON and everythign else to OFF.
2.  Ran cmake .
3.  Cleaned up some compile errors:
3A.  Added "#include <limits.h>" to serialize.h after the rest of the #includes
3B.  Added "using namespace boost;" just after the includes
3C.  Modified bitcoinminercuda.cu to "#define _BITCOIN_MINER_CUDA_" right above the #ifdef that checks for it.
4.  Ran make
5.  Got .cubin files by running
nvcc ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,\"code=sm_10,compute_10\" -gencode arch=compute_11,\"code=sm_11,compute_11\" --keep -gencode arch=compute_20,\"code=sm_20,compute_20\" --keep
6.  Ran the rpcminer binary from step 4.  It will complain about not being able to run.  Take one of the three .cubin files and put it in your target directory.  You'll have to rename it to the file that rpcminer is looking for.  (in my case, I renamed bitcoinminercuda.compute_20.sm_20.cubin to bitcoinminercuda_20.cubin")
7.  Opened an account on deepbit.net and then ran
./rpcminer -user=foo@bar.com -password=my_password -url=http://deepbit.net:8332/
(of course I changed user and password to whatever I registered with)

Hopefully I didn't leave anything out.
There may be better ways to solve some of those issues, but that's how I solved them and I got a working binary that does hashes using CUDA.

Good luck and happy bitmining.

Man its not even work using CUDA... I'm getting 30x more on an AMD Radeon GPU using the same mount of power on OpenCL


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: thisisharsh on May 01, 2011, 11:31:32 PM
Man its not even work using CUDA... I'm getting 30x more on an AMD Radeon GPU using the same mount of power on OpenCL

I have to say the same.  With my Nvidia 9800GT, poclbm OpenCL maxes at 25 MH (30 if I use -f 0), whereas rpcminer-cuda gives 18 MH if I'm lucky - and I've played with the settings a lot.

[oh and rpcminer-opencl doesn't work for me at all.  It never actually connects after initialising.  In windows task manager I just see rpc-opencl use more and more RAM, until eventually it crashes(!)]

This to me doesn't make sense - CUDA is more low-level and optimized for Nvidia, is it not? Surely it should run faster than OpenCL?


P.S. hello all - first time poster, long time lurker


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: subotai on May 02, 2011, 09:31:23 AM
GTX460@800MHz
rpcminer-cuda 70Mhash/s

phoenix or poclbm gives 59Mhash/s



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on May 02, 2011, 11:38:25 AM
GTX460@800MHz
rpcminer-cuda 70Mhash/s

phoenix or poclbm gives 59Mhash/s

rpcminer-cuda.exe is for Nvidia cards
poclbm is for opencl, AMD cards.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: thisisharsh on May 02, 2011, 06:44:06 PM
GTX460@800MHz
rpcminer-cuda 70Mhash/s

phoenix or poclbm gives 59Mhash/s

What settings do you use?  CUDA is much worse on both Quadro FX 5800 and Geforce 9800GT for me.  On the Quadro FX 5800 (still a rather high end card) I only get 50 Mh! - surely that's not right?



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: subotai on May 02, 2011, 07:47:19 PM
I use these settings for maximum speed  -aggression=8 -gpugrid=256 -gputhreads=512

Unfortunately we will not see  optimized CUDA miner as OpenCL


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: LightRider on May 02, 2011, 09:09:41 PM
I have a 9600GT and a 8600GT. When I run cuda on the 9600, I get 15mh, but when I start it up on the 8600, I get 15mh split between them. What gives?

Edit: Nevermind! I used incorrect arguments.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: SleepMachine on May 07, 2011, 09:12:00 AM
Ok, i have some more problems with an NVIDIA card (which i'm not physically at atm). At first, all the miners I tried (phoenix, poclbm-mod, rpcminer-cuda) would crash with something like "Import Error - LoadMemoryBlah - failed to import /_pyocl.py", basically OpenCL and CUDA didn't work.

Once I updated the NVIDIA drivers from nvidia.com (auto-detect function), the miners ran.
The miners detected
#1 - The CUDA platform
#2 - One cuda device. The NVIDIA 8600 GS card

I tried different settings with these 3 miners, but never got the speed above 1.5 Mhash ?!
What the heck is wrong?

Finally, in an act of desperation, i tried the rpcminer-cpu using 4 threads on the "Intel Core2 Quad" or something like that and got speeds of 4.4 Mhash.

How the heck can the CPU be faster than the GPU? Something must be seriously wrong, right?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: error on May 07, 2011, 04:22:59 PM
What's wrong is you have an 8600GS. Sorry, you aren't going to get much out of that.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: TheShoura on May 07, 2011, 05:13:51 PM
What are the performance arguements with this miner? I loaded up the rpcminer-opencl on Radeon 6870's and its only giving 200Mh/s where as poclbm did ~260

Also, how do i dictate which GPU the device runs on so I can run multiple instantces. Right now it only runs on the first GPU out of four


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Clockworker on May 07, 2011, 07:02:31 PM
Hello, I'm new at this.

I want to use the CPU, since my computer is shit.

However, when I run the CPU one, I get the following:

Quote
Client will start 1 miner threads
Work will be refreshed every 4000 ms
Could not retrieve work from RPC server.
CURL return value = 7
Could not retrieve work from RPC server.
CURL return value = 7

Clearly, I know I need some stuff to do pooled mining, but I haven't the foggiest clue what to do. I'm not a very technical person, I'm afraid. If someone could baby me through this, I'd be very grateful.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: dishwara on May 10, 2011, 06:08:19 AM
9100 is not CUDA or OPENCL supported. So u can't use it to mine.
http://en.wikipedia.org/wiki/CUDA
http://www.nvidia.com/object/cuda_gpus.html
Only 9100M supports & thats for notebook not desktop pc.
 


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: walidzohair on May 10, 2011, 11:40:34 AM
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 (http://bitcointalk.org/index.php?topic=3030.0).

Downloads (Updated 2011-02-27)
RPC Miner Windows Binaries (http://www.mediafire.com/file/hduqoqdf3onqrod/bitcoin-rpcminer-20110227-win32bin.zip)
RPC Miner Source (http://www.mediafire.com/file/ve608cl5mk1ka3l/bitcoin-remote-rpc-20110227-src.zip)

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.

anyway to support sse2 on ubuntu ?


Title: rpcminer binary for Mac ‘Snow Leopard’
Post by: MacCompiler on May 10, 2011, 09:25:15 PM
I compiled a binary of rpcminer for Mac OS 10.6 ‘Snow Leopard’. This binary distribution is built from the source code distribution from 2011-02-27. There are three necessary platform modifications to the original source to make it compile and run on Mac OS.

Download rpcminer for Mac [binary] (http://www.megaupload.com/?d=J6V99GYS) (1.244 MiB) at MegaUpload.

Update: easy-run variant (http://forum.bitcoin.org/index.php?topic=8994.0)

I hope someone will find it useful. :) Donations: 14V7RiwD3joqDF2Jv6zst3ZnQsR686u9iH ;)  

It’s been tested on a MacBook Air running Mac OS 10.6.5 and a Mac Mini running 10.6.7 against the mining.bitcoin.cz pool.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: michaelmclees on May 16, 2011, 10:19:31 PM
You and I have the exact same problem.


Title: Re: rpcminer binary for Mac ‘Snow Leopard’
Post by: Tachikoma on May 17, 2011, 02:11:51 PM
I compiled a binary of rpcminer for Mac OS 10.6 ‘Snow Leopard’. This binary distribution is built from the source code distribution from 2011-02-27. There are three necessary platform modifications to the original source to make it compile and run on Mac OS.

Download rpcminer for Mac [binary] (http://www.megaupload.com/?d=J6V99GYS) (1.244 MiB) at MegaUpload.

I hope someone will find it useful. :) Donations: 14V7RiwD3joqDF2Jv6zst3ZnQsR686u9iH ;)  

It’s been tested on a MacBook Air running Mac OS 10.6.5 and a Mac Mini running 10.6.7 against the mining.bitcoin.cz pool.

Thanks for taking the time to compile a binary for other OSx users. I've tried it on 10.6.6 but it wouldn't run,  "cannot execute binary file". Are there any prerequisites I might be missing or could I screw up something otherwise?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: buro9 on May 19, 2011, 05:37:30 AM
Hi all, I've just started mining and am getting what would appear to be some strange numbers given what others are posting, I just want to validate that it's not some bug or something is wrong and that it's actually working as desired.

A dump from the command line:
Code:


>rpcminer-cuda.
exe -user=xxxx -password=xxxx -gpu -aggression=14
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Target = xxxx
Loading module bitcoinminercuda_11.cubin
CUDA initialized
Done allocating CUDA resources for (16,16)
Finding best configuration step end (16,16) 1813ms  prev best=9223372036854775807ms
Done allocating CUDA resources for (16,32)
Finding best configuration step end (16,32) 914ms  prev best=1813ms
Done allocating CUDA resources for (16,64)
Finding best configuration step end (16,64) 490ms  prev best=914ms
Done allocating CUDA resources for (16,128)
Finding best configuration step end (16,128) 335ms  prev best=490ms
Done allocating CUDA resources for (16,256)
Finding best configuration step end (16,256) 331ms  prev best=335ms
Done allocating CUDA resources for (32,16)
Finding best configuration step end (32,16) 956ms  prev best=331ms
Done allocating CUDA resources for (32,32)
Finding best configuration step end (32,32) 490ms  prev best=331ms
Done allocating CUDA resources for (32,64)
Finding best configuration step end (32,64) 334ms  prev best=331ms
Done allocating CUDA resources for (32,128)
Finding best configuration step end (32,128) 331ms  prev best=331ms
Done allocating CUDA resources for (32,256)
Finding best configuration step end (32,256) 330ms  prev best=331ms
Done allocating CUDA resources for (64,16)
Finding best configuration step end (64,16) 939ms  prev best=330ms
Done allocating CUDA resources for (64,32)
Finding best configuration step end (64,32) 483ms  prev best=330ms
Done allocating CUDA resources for (64,64)
Finding best configuration step end (64,64) 332ms  prev best=330ms
Done allocating CUDA resources for (64,128)
Finding best configuration step end (64,128) 329ms  prev best=330ms
Done allocating CUDA resources for (64,256)
Finding best configuration step end (64,256) 328ms  prev best=329ms
Done allocating CUDA resources for (128,16)
Finding best configuration step end (128,16) 933ms  prev best=328ms
Done allocating CUDA resources for (128,32)
Finding best configuration step end (128,32) 483ms  prev best=328ms
Done allocating CUDA resources for (128,64)
Finding best configuration step end (128,64) 329ms  prev best=328ms
Done allocating CUDA resources for (128,128)
Finding best configuration step end (128,128) 329ms  prev best=328ms
Done allocating CUDA resources for (128,256)
Finding best configuration step end (128,256) 327ms  prev best=328ms
Done allocating CUDA resources for (128,256)
6759605144 khash/s
11503132515 khash/s
12118605140 khash/s
11352202147 khash/s
10592490938 khash/s
11374405002 khash/s
12092100194 khash/s
10122935165 khash/s
12085704851 khash/s
10960440978 khash/s
12213746319 khash/s
12179113316 khash/s
11705168381 khash/s
12204549939 khash/s
12103577788 khash/s
10324611659 khash/s
10190482336 khash/s
11422309222 khash/s


I've got an Nvidia Quadro FX 1800, so figured it was safe to try the high aggression. Prior to adding the aggression I was only getting avg. 12000 khash/s, but now I'm getting those ridiculously high numbers.

It's only pegging 1 CPU core too, so I'm averaging 12% load there and the system is as responsive as if I were doing nothing.

Is this all for real? Are those numbers real?

And if it is for real, how long would it take to calculate a block?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: zazabar on May 19, 2011, 11:06:56 AM
Only time I got numbers like that on the CUDA miner was when my graphics drivers crashed.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: ryepdx on May 19, 2011, 12:12:00 PM
Yeah... 11Gh/s from an Nvidia card... actually, from any card... is unheard of. You're likely seeing a bug. That's a little less than 10 times what a dual 5970 setup gets.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Robmonster on May 23, 2011, 12:27:56 PM
Please forgive this very stupid question, but how do I actually compile this to run a command line miner under Ubuntu 8.04 ..? I've never compiled directly before, but installed form the repositories.

I'#e extracted the source code, but am struggling with the right command to end up with a runnable CPU miner that I can connect to a pool. Can someone please take pity on a noob and help me with some commands to compile?

R


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: AntiAntagonist on May 26, 2011, 05:46:31 AM
Newbie miner here.  I'm having trouble getting -cuda working.  Pretty sure that it's now connecting (used to get a CURL 22 error, don't anymore).

I'm running with an Nvidia 280M and Win7 64-Bit Pro.

Code:
rpcminer-cuda.exe -url=http://deepbit.net:8332 -user=user -password=pass -threads=1 -aggression=6
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
CUDA initialized
Done allocating CUDA resources for (16,16)
Finding best configuration step end (16,16) 1804ms  prev best=9223372036854775807ms
Done allocating CUDA resources for (16,32)
Finding best configuration step end (16,32) 904ms  prev best=1804ms
Done allocating CUDA resources for (16,64)
Finding best configuration step end (16,64) 455ms  prev best=904ms
Done allocating CUDA resources for (16,128)
Finding best configuration step end (16,128) 245ms  prev best=455ms
Done allocating CUDA resources for (16,256)
Finding best configuration step end (16,256) 167ms  prev best=245ms
Done allocating CUDA resources for (32,16)
Finding best configuration step end (32,16) 930ms  prev best=167ms
Done allocating CUDA resources for (32,32)
Finding best configuration step end (32,32) 455ms  prev best=167ms
Done allocating CUDA resources for (32,64)
Finding best configuration step end (32,64) 245ms  prev best=167ms
Done allocating CUDA resources for (32,128)
Finding best configuration step end (32,128) 166ms  prev best=167ms
Done allocating CUDA resources for (32,256)
Finding best configuration step end (32,256) 162ms  prev best=166ms
Done allocating CUDA resources for (64,16)
Finding best configuration step end (64,16) 476ms  prev best=162ms
Done allocating CUDA resources for (64,32)
Finding best configuration step end (64,32) 245ms  prev best=162ms
Done allocating CUDA resources for (64,64)
Finding best configuration step end (64,64) 167ms  prev best=162ms
Done allocating CUDA resources for (64,128)
Finding best configuration step end (64,128) 162ms  prev best=162ms
Done allocating CUDA resources for (64,256)
Finding best configuration step end (64,256) 160ms  prev best=162ms
Done allocating CUDA resources for (128,16)
Finding best configuration step end (128,16) 461ms  prev best=160ms
Done allocating CUDA resources for (128,32)
Finding best configuration step end (128,32) 236ms  prev best=160ms
Done allocating CUDA resources for (128,64)
Finding best configuration step end (128,64) 162ms  prev best=160ms
Done allocating CUDA resources for (128,128)
Finding best configuration step end (128,128) 161ms  prev best=160ms
Done allocating CUDA resources for (128,256)
Finding best configuration step end (128,256) 160ms  prev best=160ms
Done allocating CUDA resources for (64,256)
No blocks are being hashed right now.  This can happen if the application is still starting up, you supplied incorrect parameters, or there is a communications error connecting to the RPC server.

The matrix location varies before it ends.  Sometimes it stops at (128, 128), (128, 256), etc.  From what I've read from Nvidia's site there should be 128 CUDA cores for my card, but I'm not finding any solution with/without the gputhread or gpugrid arguments.

Any suggestions?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: gcardinal on May 27, 2011, 03:18:06 PM
I am running 2600k at 4.8Ghz and getting 7000 khash/s
How is it compared to lets say ATI 5870 ?

In other words, is there a point of mining on CPU ?..


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Ignatius on May 27, 2011, 07:32:42 PM
I am running 2600k at 4.8Ghz and getting 7000 khash/s
How is it compared to lets say ATI 5870 ?

In other words, is there a point of mining on CPU ?..

https://en.bitcoin.it/wiki/Mining_Hardware_Comparison


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: rahl on May 28, 2011, 04:46:38 PM
Sorry if this has already been answered but it is a very long tread.

Can I use GPU and CPU on the same worker or do I need to run booth cuda and cpu. cuda with -gpu does very little to my cpu usage rate and starting rpcminer-cpu also as a seperate worker does not seem to do anything to the hashrate in cuda. So is running cuda and cpu on 2 different workers for mining.bitcoin.cz a sensible thing or no? Only time I got a negative result to hashrates on gpu was when i set the cpu process to higher priority then the gpu process...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: mathx on May 29, 2011, 06:42:24 AM
I'm new to all this.
[..]
4.  Ran make

This didnt work. I had to 'make rpcminer' specifically and only, or I got errors. But doing this ONLY, worked. I got an rpcminer binary in the cmake-rpcminer dir.

5.  Got .cubin files by running
nvcc ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,\"code=sm_10,compute_10\" -gencode arch=compute_11,\"code=sm_11,compute_11\" --keep -gencode arch=compute_20,\"code=sm_20,compute_20\" --keep

This didnt work. I assume you ran it from the cmake-rpcminer dir (where make made the rcpminer binary).  I had to forcefully include all the libs and headers, it
coudlnt find them (?!?!).

I ran:
Code:
$ nvcc --verbose -L /usr/lib -I /usr/include,/usr/include/crt --pre-include /usr/include/crt/host_runtime.h -l cudart -l cufft -l curand -l cublas -l cusparse ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,\"code=sm_10,compute_10\" -gencode arch=compute_11,\"code=sm_11,compute_11\" --keep -gencode arch=compute_20,\"code=sm_20,compute_20\" --keep

which gives, from -verbose, last couple lines output before fail:

Code:
#$ g++ -m64 -o "a.out" -Wl,--start-group "bitcoinminercuda.o" -L"/usr/lib" -lcudart -lcufft -lcurand -lcublas -lcusparse  -Wl,--end-group
/usr/lib/gcc/x86_64-linux-gnu/4.3.4/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

not finding main() is pretty serious, Im guessing :(

Any help? Thanks. I'll post a detailed summary of how to get this working if you can get me thru the last few steps.

thanx.

-- mathx - 1BTFUtEscdizVPGiqrKhpy5s6QiQ4nNemC


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Yunu on May 29, 2011, 12:05:44 PM
Hi, i get this error:


Quote
C:\Users\anonymi\Desktop\btc\rpcminer-cuda.exe -url=http://deepbit.net:8332 -user=*********** -password=****** -gpu
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to load CUDA module


using NVIDIA GeForce 9600M GT with updated official driver.


edit: i found a answere to the problem but i dosnt understand it...
http://forum.bitcoin.org/index.php?topic=2444.msg56347#msg56347

anyone can upload such a file for me? i cant create it...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Chefnet on May 31, 2011, 02:47:23 PM
Hi,

I have the 0 khash/s problem with ATI HD 5850 4way and cpu are okay. What should their be wrong??

Code:
C:\Users\mm\Downloads\bitcoin-rpcminer-20110227-win32bin>rpcminer-opencl.exe -ur
l=http://mining.bitcoin.cz:8332 -user=XXX.XXX -password=XXX -statsu
rl=http://mining.bitcoin.cz/stats/json -workrefreshms=8000 -gpu=0 -gpugrid=128 -
gputhreads=128
Client will start 1 miner threads
Work will be refreshed every 8000 ms
1 OpenCL platforms found
1 OpenCL GPU devices found on platform 0
Setting OpenCL device to device 0
Available extensions : cl_amd_fp64 cl_khr_gl_sharing cl_amd_device_attribute_que
ry cl_khr_d3d10_sharing
Create context rval=0
Create command queue rval=0
Creating program with source
Building program with options -D WORKGROUPSIZE=128
Target = 00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffff
0 khash/s
0 khash/s
0 khash/s


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: mrmuk8 on June 01, 2011, 03:18:54 AM
I just discovered this miner a few days ago and it worked perfectly, without any setup!  Used the GUIMiner.  Great work!  Props from a fellow CUDA developer :-)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: rahl on June 02, 2011, 05:50:59 PM
I run this on a Nvidia GT240 on Windows 7 and about 8/10 times i close the miner I get a bluescreen error (that I can't see because the display output dies) ...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: trackpantsboner on June 05, 2011, 06:57:11 AM
Im new to mining, have just signed up to slush's bitcoin pooled mining and downloaded puddinpops miner software. on bpm it says i now need to 'run my miner and connect it to this url http://mining.bitcoin.cz:8332'... how do i run the miner and how do i connect it to that url?

thanks for any replies


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: 2weiX on June 07, 2011, 06:21:43 PM
outing myself as a dumb windows user.
i do have a pretty decent pc at work (iQ9300 quadcore).
i am, however, behind a firewall, so the bitcoin client connected via a SOCKS4 proxy.

so i have realized that it's no use cpu-mining on my own... so i'd like to get in on some pool mining since the thing basically just sits there all day.

can someone just "real quick" give me a command line that would invoke the CPU-miner with my (potential http://mining.bitcoin.cz/ account)? It'd be much appreciated. Since I do not currently OWN any BTCs, I can't pledge one.

I will, however, give my first 0.1 BTC to the bitcoinfaucet, if someone can make this work for me.


thanks in advance!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: AntiAntagonist on June 08, 2011, 10:51:42 PM
Newbie miner here.  I'm having trouble getting -cuda working.  Pretty sure that it's now connecting (used to get a CURL 22 error, don't anymore).

I'm running with an Nvidia 280M and Win7 64-Bit Pro.

Code:
rpcminer-cuda.exe -url=http://deepbit.net:8332 -user=user -password=pass -threads=1 -aggression=6
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
CUDA initialized
Done allocating CUDA resources for (16,16)
Finding best configuration step end (16,16) 1804ms  prev best=9223372036854775807ms
Done allocating CUDA resources for (16,32)
Finding best configuration step end (16,32) 904ms  prev best=1804ms
Done allocating CUDA resources for (16,64)
Finding best configuration step end (16,64) 455ms  prev best=904ms
Done allocating CUDA resources for (16,128)
Finding best configuration step end (16,128) 245ms  prev best=455ms
Done allocating CUDA resources for (16,256)
Finding best configuration step end (16,256) 167ms  prev best=245ms
Done allocating CUDA resources for (32,16)
Finding best configuration step end (32,16) 930ms  prev best=167ms
Done allocating CUDA resources for (32,32)
Finding best configuration step end (32,32) 455ms  prev best=167ms
Done allocating CUDA resources for (32,64)
Finding best configuration step end (32,64) 245ms  prev best=167ms
Done allocating CUDA resources for (32,128)
Finding best configuration step end (32,128) 166ms  prev best=167ms
Done allocating CUDA resources for (32,256)
Finding best configuration step end (32,256) 162ms  prev best=166ms
Done allocating CUDA resources for (64,16)
Finding best configuration step end (64,16) 476ms  prev best=162ms
Done allocating CUDA resources for (64,32)
Finding best configuration step end (64,32) 245ms  prev best=162ms
Done allocating CUDA resources for (64,64)
Finding best configuration step end (64,64) 167ms  prev best=162ms
Done allocating CUDA resources for (64,128)
Finding best configuration step end (64,128) 162ms  prev best=162ms
Done allocating CUDA resources for (64,256)
Finding best configuration step end (64,256) 160ms  prev best=162ms
Done allocating CUDA resources for (128,16)
Finding best configuration step end (128,16) 461ms  prev best=160ms
Done allocating CUDA resources for (128,32)
Finding best configuration step end (128,32) 236ms  prev best=160ms
Done allocating CUDA resources for (128,64)
Finding best configuration step end (128,64) 162ms  prev best=160ms
Done allocating CUDA resources for (128,128)
Finding best configuration step end (128,128) 161ms  prev best=160ms
Done allocating CUDA resources for (128,256)
Finding best configuration step end (128,256) 160ms  prev best=160ms
Done allocating CUDA resources for (64,256)
No blocks are being hashed right now.  This can happen if the application is still starting up, you supplied incorrect parameters, or there is a communications error connecting to the RPC server.

The matrix location varies before it ends.  Sometimes it stops at (128, 128), (128, 256), etc.  From what I've read from Nvidia's site there should be 128 CUDA cores for my card, but I'm not finding any solution with/without the gputhread or gpugrid arguments.

Any suggestions?

Can anyone give me some advice?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: MoonBuggy on June 09, 2011, 01:20:31 PM
I'm having some trouble compiling on a remote system; the build gets as far as the linker step without problems, but then gives an error "/usr/bin/ld: cannot find -lcudart". I've already had to add the boost path to LIBRARY_PATH to prevent a previous linker error, but adding the CUDA lib64 path to either LIBRARY_PATH or LD_LIBRARY_PATH doesn't seem to help (the latter does nothing, the former goes back to giving the same boost linker error).

Any suggestions would be greatly appreciated!

[Edit] Problem solved - just added -L/usr/local/cuda-2.3/lib64 to Link.txt in ./cmake-rpcminer/CMakeFiles/rpcminer.dir


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: MoonBuggy on June 09, 2011, 04:47:23 PM
OK, next question (and I'm sure I'll be kicking myself when I get an answer, because it can't be particularly complicated): how do I get the miner running on two GPUs? I'm working on a remote machine over SSH, and it sees two cards (and can select either one), but there doesn't seem to be an option to select 'both'.

[Edit] By the lack of response, I guess two separate instances is the only option, then?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: geesgees on June 10, 2011, 10:53:23 AM
hi all, as a complete newby it all seems very complicated and i'm more confused now than i was when i first started  :'(

I understand i need a miner to mine with and have to have a wallet for the coins but i can't figure out how to get the miner to work. I've downloaded the file for the miner but can't get my head around what to do with it. Do I have to build it? or does it come already built and is ready to use? Is there an idiots guide somewhere that i can follow? There were basic instructions of some sort with the download but i just don't understand it.

Any info. or guidance anybody can give me would be greatly appreciated.

thanks in advance.

g.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Bleak Morn on June 10, 2011, 03:29:48 PM
Got rcpminer-cuda.exe working fine on one machine (from the extracted folder on my desktop surprisingly).

Tried the same set-up on another machine and I was getting an error so I moved the files under C:\Windows\system32 to alleviate any PATH issues and now I get the following System Error from rcpminer-cuda.exe:

"The program can't start because curllib.dll is missing from your computer. Try reinstalling the program to fix this problem."

Well... I see curllib.dll in the extracted folder, and I see it in C:\Windows\system32.

Also, I didn't really *install* the software - just extracted the ZIP. Seems like it'd be pointless to do that again.

Did a search in the forums and didn't see any curllib.dll issues, and seems odd that everything worked fine on my other system.

Both are running Windows 7 64-bit with Nvidia GPUs.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Madstudios30620 on June 11, 2011, 03:34:31 PM
The 4wayminer screensaver seems to be working, giving me about 4100khash/s on
my 2.9Mhz AMD dual core cpu. Ive got a Radeon4200 that seems to be openCL
capable, and Ive got version 1.3 of the latest updates for it, but the openCL
miner which did not work at all before, after the updates, works for a few seconds
and then crashes. The GPU options settings for both screensavers would not
accept input before, and now do, what sort of options should I be trying in the
GPU section? aggression, gpu, threads, etc.

I really want to know. If you'd rather email me, Im madstudios30620@gmail.com


And if anyone wants to be kind and generous enough to give me my first
bitcoin dollar(or a few) it's 1KASaeM4cLYQnrY1Qyz28fr3pj9hx1TPWx

I also think my ATI RADEON 4200 is capable of SSE2, whatever that is, and Ive
heard there is some way to use this to make mining even faster.

And yes, I am BitCoin clueless. But if you have a website you want to add bitcoin
to Id say www.bitp.it is the place to go. I have the code on my website, (you do read, right?)
at: http://www.freescottwalsh.info/reader.html

EVERYONE WHO READS THIS - Set that page in a browser window and leave it running
TUESDAY JUNE 14TH and Ill let you know if it has any effect.

And I do my pool mining at bitcoin.cz - is this the best pool for an occasional screensaver miner?

I dont really feel guilty of money laundering, yet I still get an illicit thrill. Am I crazy or what?


the openCL
miner which did not work at all before, after the updates, works for a few seconds
and then crashes. The GPU options settings for both screensavers would not
accept input before, and now does, what sort of options should I be trying in the
GPU section?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: hobo on June 18, 2011, 11:23:26 AM
any possibility to run this software under 64 bit operative system ? like win server 2003


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Schleicher on June 18, 2011, 08:04:48 PM
any possibility to run this software under 64 bit operative system ? like win server 2003

It's running fine with Win 7 64Bit, it shouldn't be a problem running it with Server 2003.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: hobo on June 19, 2011, 10:09:42 AM
i asked this because in windows server 2003 x64 edition this program not work

maybe i need a library, but i dont know what ( c++ redistributable, net framework  or what ? what version ? )

the program says to me : "the application has failed to start because the application configuration is incorrect. reinstalling the application may fix this problemi"

this is the same error message i get when i try to start every executable in the folder of rpc miners

anyone have a solution ?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Schleicher on June 19, 2011, 04:49:43 PM
Yes, you probably need to install the redistributable package.
I don't know what compiler has been used, maybe you need this:
Microsoft Visual C++ 2010 Redistributable Package (x86) (http://www.microsoft.com/downloads/en/details.aspx?familyid=a7b7a05e-6de6-4d3a-a423-37bf0912db84)
or this:
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) (http://www.microsoft.com/downloads/en/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: hobo on June 20, 2011, 08:27:12 AM
thanks schleicher !  i tryed at leat every version ( decrescent ) of c++ and finally ive found what they need !

visual c+ 2005 sp1 redistributable : http://download.chip.eu/it/Microsoft-Visual-C-2005-sp1-redistributable-8.0.50727.762_1789178.html

and this : visual c++ 2008 sp1 redistributable : http://www.microsoft.com/downloads/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2&DisplayLang=it


thanks for the help :)


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: m3ta on June 30, 2011, 02:28:10 AM
These miners are a PITA to compile in *nix, and support has been scarse.
Safe to say, this is dead and buried...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: burger on June 30, 2011, 10:18:32 AM
any possibility to run this software under 64 bit operative system ? like win server 2003

I would also like a 64-bit compiled version to test if it is more efficient.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: gigica viteazu` on July 28, 2011, 12:01:43 PM
is there any chance to add a statistics line like the others miners have ?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bitlane on July 29, 2011, 06:58:45 AM
When using the CUDA miner in Guiminer, I am quite happy with the performance, although, when attempting to STOP the miner, it locks up my machine(s) SOLID......requiring the use of the RESET button.

Is this something unique to my situation ?

I have experienced this on a few machines, all running Windows 7 Ultimate x64 using the Guiminer front end.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: FalconFour on September 30, 2011, 07:02:12 PM
When using the CUDA miner in Guiminer, I am quite happy with the performance, although, when attempting to STOP the miner, it locks up my machine(s) SOLID......requiring the use of the RESET button.

Is this something unique to my situation ?

I have experienced this on a few machines, all running Windows 7 Ultimate x64 using the Guiminer front end.
Just came here to ask the same question. I get that on and off, when I try to Ctrl+C the miner, it instantly crashes the whole GPU - screen goes blank, fan roars, never recovers. Very frustrating and considerably dangerous (idly closing a program, WTF, there go all my open programs, thanks!), I don't know why more hasn't been made of this nor why CUDA mining - doing 12Mhash/sec on a mediocre mid-low-end '220 card - has been completely neglected by miner devs... rpcminer-cuda is the only true CUDA miner out there and it hardly even works right :/


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: 4EverMaAT on July 04, 2012, 05:58:20 PM
with CUDA (or any of the puddinpop miners), is there an argument/parameter to force the GPU/CPU to sleep between cycles?  my GPU on my laptop (Nvidia geforce gt 525m) gets fairly hot when I attempt to run guiminer.  I think the first time I ran it (with the default guiminer miner), laptop shut down after 20 minutes of so (overheat protection I think).

Did a lot of googling, but no luck.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: senseless on September 14, 2012, 06:18:10 PM
Was able to recompile the code on windows for support for revision 1.2, 1.3 and 3.0 devices (2xx and 6xx cards). (Note: It uses cubin 2.0 for 2.1 devices.. I expected a different cubin would be necessary but it looks like they're similar enough that it's not required; You can't even compile a 2.1 specific cubin with nvcc as far as I know.)

Contained in zip is rpcminer-cuda.exe along with the necessary cubin files.

I only changed the cubin file detection code in bitcoinminercuda.cpp and compiled the 3 new cubin files under their respective archs.

Code:
if(major==3)
{
cubin="bitcoinminercuda_30.cubin";
}
else if (major==2)
{
cubin="bitcoinminercuda_20.cubin";
}
else if (major==1 && minor==0)
{
cubin="bitcoinminercuda_10.cubin";
}
else if (major==1 && minor==1)
{
cubin="bitcoinminercuda_11.cubin";
}
else if (major==1 && minor==2)
{
cubin="bitcoinminercuda_12.cubin";
}
else if (major==1 && minor==3)
{
cubin="bitcoinminercuda_13.cubin";
}


Download for Win32: http://www.qfpost.com/file/d?g=mwrLcmBsL

Installation: Unzip and use rpcminer-cuda.exe with the default command params from post #1 of this thread.

...


I don't normally do this; but it took me half a day to get the compile environment working for rpcminer. If you'd like to toss me a tip: 136HdE3wxyfxFsuAHYZTLTHDopXYxRJej1




Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: philips on September 15, 2012, 06:45:44 AM
Do you know if rpcminer could still be compiled in Linux?

Took a shot at it but although cmake went fine, got a bunch of errors at make.

Tried also Ang3lus rpcminer mod which gives me the same error:
Code:
[root@localhost Ang3lus-rpcminer-mod-7696388]# mkdir build
[root@localhost Ang3lus-rpcminer-mod-7696388]# cd build
[root@localhost build]# cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/share/colorgcc/gcc
-- Check for working C compiler: /usr/share/colorgcc/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/share/colorgcc/c++
-- Check for working CXX compiler: /usr/share/colorgcc/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.44.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Found CUDA: /usr
-- Found CURL: /usr/lib/libcurl.so
-- Configuring done
-- Generating done
-- Build files have been written to: /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build
[root@localhost build]# make
[  6%] Building NVCC (Device) object cmake-rpcminer/./rpcminer_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/rpcminer_generated_bitcoinminercuda.cu.o.cmake:249 (message):
  Error generating file
  /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o


make[2]: *** [cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o] Error 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make: *** [all] Error 2
[root@localhost build]#


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: senseless on September 15, 2012, 11:35:54 PM
Do you know if rpcminer could still be compiled in Linux?

Took a shot at it but although cmake went fine, got a bunch of errors at make.

Tried also Ang3lus rpcminer mod which gives me the same error:
Code:
[root@localhost Ang3lus-rpcminer-mod-7696388]# mkdir build
[root@localhost Ang3lus-rpcminer-mod-7696388]# cd build
[root@localhost build]# cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/share/colorgcc/gcc
-- Check for working C compiler: /usr/share/colorgcc/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/share/colorgcc/c++
-- Check for working CXX compiler: /usr/share/colorgcc/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.44.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Found CUDA: /usr
-- Found CURL: /usr/lib/libcurl.so
-- Configuring done
-- Generating done
-- Build files have been written to: /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build
[root@localhost build]# make
[  6%] Building NVCC (Device) object cmake-rpcminer/./rpcminer_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/rpcminer_generated_bitcoinminercuda.cu.o.cmake:249 (message):
  Error generating file
  /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build/cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o


make[2]: *** [cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o] Error 1
make[1]: *** [cmake-rpcminer/CMakeFiles/rpcminer.dir/all] Error 2
make: *** [all] Error 2
[root@localhost build]#


What distribution are you running? What version of cmake?



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: philips on September 15, 2012, 11:40:53 PM
Mageia 1 (32Bit)
cmake 2.8.4


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: senseless on September 15, 2012, 11:48:02 PM
Mageia 1 (32Bit)
cmake 2.8.4

Erm, the only thing I might suggest is try cmake 2.8.9.. I vaguely remember there's some reason I needed .9??



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: philips on September 16, 2012, 08:33:23 PM
The errors persisted even with latest cmake and eventually I updated the CUDA toolkit and was able to compile both original rpcminer from this thread and Ang3lus rpcminer mod:

Code:
[root@localhost Ang3lus-rpcminer-mod-7696388]# mkdir build
[root@localhost Ang3lus-rpcminer-mod-7696388]# cd build
[root@localhost build]# cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/share/colorgcc/gcc
-- Check for working C compiler: /usr/share/colorgcc/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/share/colorgcc/c++
-- Check for working CXX compiler: /usr/share/colorgcc/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.44.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   program_options
--   regex
--   system
--   thread
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- Found CUDA: /usr/local/cuda
-- Found CURL: /usr/lib/libcurl.so
-- Configuring done
-- Generating done
-- Build files have been written to: /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build
[root@localhost build]# make
[  6%] Building NVCC (Device) object cmake-rpcminer/./rpcminer_generated_bitcoinminercuda.cu.o
Scanning dependencies of target rpcminer
[ 13%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/sha256.cpp.o
[ 20%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/hex.cpp.o
[ 26%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/httprequest.cpp.o
[ 33%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerclient.cpp.o
[ 40%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminermain.cpp.o
[ 46%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcrequest.cpp.o
[ 53%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_reader.cpp.o
[ 60%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_value.cpp.o
[ 66%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/json/json_spirit_writer.cpp.o
[ 73%] Building C object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/minercommon/base64.c.o
[ 80%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/cryptopp/cpu.cpp.o
[ 86%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/cryptopp/sha.cpp.o
[ 93%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/rpcminer/rpcminerthreadgpu.cpp.o
[100%] Building CXX object cmake-rpcminer/CMakeFiles/rpcminer.dir/__/src/cuda/bitcoinminercuda.cpp.o
Linking CXX executable rpcminer
[100%] Built target rpcminer
[root@localhost build]# make install
-- Configuring done
-- Generating done
-- Build files have been written to: /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build
Linking CXX executable rpcminer
[100%] Built target rpcminer
Install the project...
-- Install configuration: "Release"
-- Installing: /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build/cmake-rpcminer/rpcminer-cuda/bitcoinminercuda.ptx
-- Installing: /media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build/cmake-rpcminer/rpcminer-cuda/rpcminer
-- Removed runtime path from "/media/NEWREZERVA/WORK/Ang3lus-rpcminer-mod-7696388/build/cmake-rpcminer/rpcminer-cuda/rpcminer"
[root@localhost build]#

However original rpcminer gives:
Code:
[root@localhost cmake-rpcminer]# ./rpcminer -url=http://pool.coinlab.com:8332 -user=protected_mofo -password=fofo
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_20.cubin
Unable to get function cuda_process 500
[root@localhost cmake-rpcminer]#

While Ang3lus mod goes a bit further but segfaults:

Code:
[root@localhost rpcminer-cuda]# ./rpcminer -url=http://pool.coinlab.com:8332 -user=protected_mofo -password=lofo
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda.ptx
Target = 00000000ffff00000000000000000000000000000000000000000000000000
CUDA initialized
Done allocating CUDA resources for (16,16)
Finding best configuration step end (16,16) 661ms  prev best=9223372036854775807ms
Done allocating CUDA resources for (16,32)
Finding best configuration step end (16,32) 338ms  prev best=661ms
Done allocating CUDA resources for (16,64)
.................................................
................................................
Finding best configuration step end (128,256) 48ms  prev best=47ms
Done allocating CUDA resources for (64,256)
Segmentation fault
[root@localhost rpcminer-cuda]#


Could be the card (GeForce GTX 470) unsupported ?





Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: senseless on September 17, 2012, 12:42:38 AM

Could be the card (GeForce GTX 470) unsupported ?


http://en.wikipedia.org/wiki/CUDA

The GTX 470 is arch 2.0 and should work just fine. I myself have a 460 and it works fine. But I've not tried to use it on linux.

Do you have the cubin files in the directory?

Specifically, bitcoinminercuda_20.cubin

You can download my most recent version a couple posts up to get compiled cubin files for archs 1.0-3.0



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: philips on September 17, 2012, 03:43:45 AM
No, I thought maybe the app itself doesn't support 470...I see.

Anyway, talking about this original rpcminer:
After compilation I have the necessary 20.cubin (created with nvcc, and then renamed etc) file but gives me that Unable to get function cuda_process 500 error.

Using your compiled 20.cubin file rpcminer goes further, but in the end also segfaults, exactly like Ang3lus-rpcminer-mod described above.

I also compiled a openCL only version and is behaving the same, starting apparently fine and segfaults in the end.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: senseless on September 17, 2012, 07:40:59 AM
No, I thought maybe the app itself doesn't support 470...I see.

Anyway, talking about this original rpcminer:
After compilation I have the necessary 20.cubin (created with nvcc, and then renamed etc) file but gives me that Unable to get function cuda_process 500 error.

Using your compiled 20.cubin file rpcminer goes further, but in the end also segfaults, exactly like Ang3lus-rpcminer-mod described above.

I also compiled a openCL only version and is behaving the same, starting apparently fine and segfaults in the end.

I'm not sure what to tell you. I know the Ang3lus has linux specific functions in it. I couldn't get it to compile under windows. I gave up fairly quick.

Do you have any gdbs on the segfaults?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: philips on September 17, 2012, 07:57:07 AM
Thought about it (gdb) but in the end I gotta ask: is it worth it?

I mean (other than pure curiosity which drives me so far) is using this CUDA miner gonna bring me some gain in speed, so much that it would turn an Nvida card in something efficient for mining?

So you have an 460 and I suppose you have done some tests openCL vs Cuda with it...is there any significant improvement?   


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: crazyates on September 17, 2012, 02:57:34 PM
Thought about it (gdb) but in the end I gotta ask: is it worth it?

I mean (other than pure curiosity which drives me so far) is using this CUDA miner gonna bring me some gain in speed, so much that it would turn an Nvida card in something efficient for mining?

So you have an 460 and I suppose you have done some tests openCL vs Cuda with it...is there any significant improvement?   

Obv being optimized for your hardware will help, but it really depends on the number of cores you have, and at what speeds they're running at. A 460 has 336 cores, at 675MHz. The closest comparison I can come up with is a 5570, with 400 SPU at 650MHz.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: senseless on September 17, 2012, 11:23:29 PM
Thought about it (gdb) but in the end I gotta ask: is it worth it?

I mean (other than pure curiosity which drives me so far) is using this CUDA miner gonna bring me some gain in speed, so much that it would turn an Nvida card in something efficient for mining?

So you have an 460 and I suppose you have done some tests openCL vs Cuda with it...is there any significant improvement?  

The only improvement in cuda vs opencl is not having the miner use 100% cpu of 1 core. Which is the entire reason I updated the code for this one to support newer gpus. If there is any performance difference; It's insignificant at best.







Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: philips on September 18, 2012, 01:39:49 PM
No point then...

A 470 has 448 cores so that would be close to a 5670 perhaps?....still weak.
I can bring it with cgminer to 150MH/s and I was curious to see if CUDA would push that limit even higher...

Thanks


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: yzfzfcex on January 22, 2013, 11:41:12 AM
Hello everyone. I would like to know if there is still someone interested in trying to compile this in Linux.

I'm having trouble to compile in Ubuntu 10.04. I am preparing a little script in Bash based on previous posts so that others benefit from it as well, but I can't get pass the issue with nvcc (I'm using gcc and g++ version 4.4). I also attach the characteristics of my video card. Let me know if you need more information:

The error is this:
Code:
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

The script is this
Code:
#!/bin/bash

# Script to modify the source to build rpcminer with CUDA support

echo "Make sure to have installed the CUDA drivers and toolkit";
echo "You can go to https://developer.nvidia.com/cuda-downloads";
echo "and https://help.ubuntu.com/community/Cuda";
sleep 3;

# 0.  Prepare the environment
Unpack the zip file with the source and go into the folder
unzip -q -d rpcminer `ls bitcoin-remote-rpc-*-src.zip` && cd rpcminer

# 1.  Open up the CMakeLists.txt.  There's a group of seven options
# (lines 5-11 in my version of the file for me).  I set "Enable CUDA
# miner" and "Build RPC miner" to ON and everythign else to OFF.
sed -i 's-\(OPTION(BITCOIN_\(ENABLE\|BUILD\)_\(OPENCL\|REMOTE\|GUI\|DAEMON\).*\)ON)-\1OFF)-g;' CMakeLists.txt;

# 2. Ran cmake → go to step 4

# 3.  Cleaned up some compile errors:
# 3A.  Added "#include <limits.h>"
# and "using namespace boost;" to serialize.h after the rest of the
# #includes
# 3A-a. Find last line with #include (after the boost library;
# there is another include near line 1112)
last_line_include_boost=`sed -n '/\#include.*boost/=' ./src/serialize.h | tail -n 1`;
# 3A-b. Add both "#include <limits.h>" and "using namespace boost;"
sed -i $last_line_include_boost's-^\(.*\)$-\1\n\#include <limits.h>\nusing namespace boost\;-g' ./src/serialize.h;
# 3C.  Modified bitcoinminercuda.cu to "#define _BITCOIN_MINER_CUDA_"
# right above the #ifdef that checks for it.
# 3C-a. For every file named "bitcoinminercuda.cu", check if it does
# not have "#define _BITCOIN_MINER_CUDA_". If that is the case, find
# the line with "#ifdef _BITCOIN_MINER_CUDA_", and put
# "#define# _BITCOIN_MINER_CUDA_" before it
for i in `find ./ -iname 'bitcoinminercuda.cu'`; do
   if [[ -z `grep '#define _BITCOIN_MINER_CUDA_' "$i"` ]]; then
      sed -i '/\#ifdef _BITCOIN_MINER_CUDA_/{x;s-.*-\#define _BITCOIN_MINER_CUDA_-;p;x}' "$i";
   fi;
done;

#4.  Ran make → Ran cmake and make
cmake ./ && make

#5.  Build the appropriate ".cubin" file
fad
#5A. Ask the user to input the correct version of the compute
#capabilities for their GPU
# http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles/Building
# http://ondoc.logand.com/d/365/html
# https://en.wikipedia.org/wiki/CUDA
# http://docs.nvidia.com/cuda/cuda-c-programming-guide/
#5A-a. Print message with the link to find the right information
echo "Visit the website https://developer.nvidia.com/cuda-gpus";
echo "and look for the Compute Capability corresponding to the model";
echo "of your GPU. Then input the number and press enter";
#5A-b. Read value from standard input
read GPU_CompCap;
#5A-c. Delete the period in the version
GPU_CompCap=`echo "$GPU_CompCap" | tr -d '.'`;
#5A-d. Run nvcc to compile the cubin file
nvcc ./src/cuda/bitcoinminercuda.cu -gencode arch=compute_"$GPU_CompCap",\"code=sm_$GPU_CompCap,compute_$GPU_CompCap\" --keep

I have been using 1.3 for GPU_CompCap. I also tried with 1.2 with the same result

The specs of my card are:
Code:
Device 0: "NVS 3100M"
  CUDA Driver Version / Runtime Version          5.0 / 5.0
  CUDA Capability Major/Minor version number:    1.2
  Total amount of global memory:                 511 MBytes (536084480 bytes)
  ( 2) Multiprocessors x (  8) CUDA Cores/MP:    16 CUDA Cores
  GPU Clock rate:                                1468 MHz (1.47 GHz)
  Memory Clock rate:                             790 Mhz
  Memory Bus Width:                              64-bit
  Max Texture Dimension Size (x,y,z)             1D=(8192), 2D=(65536,32768), 3D=(2048,2048,2048)
  Max Layered Texture Size (dim) x layers        1D=(8192) x 512, 2D=(8192,8192) x 512
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       16384 bytes
  Total number of registers available per block: 16384
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  1024
  Maximum number of threads per block:           512
  Maximum sizes of each dimension of a block:    512 x 512 x 64
  Maximum sizes of each dimension of a grid:     65535 x 65535 x 1
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             256 bytes
  Concurrent copy and kernel execution:          Yes with 1 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  Device supports Unified Addressing (UVA):      No
  Device PCI Bus ID / PCI location ID:           1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 5.0, CUDA Runtime Version = 5.0, NumDevs = 1, Device0 = NVS 3100M

If someone can help me with the optimal parameters, that would be greatly appreciated :D


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: philips on January 22, 2013, 01:39:39 PM
I might be interested out of curiosity but I no longer have a working Nvidia card. I fried mine while playing Amnesia.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Bernd33-1 on January 22, 2013, 08:04:10 PM
Hi,

I try to work with remote miner server and remote miner client but with no success. Maybe one can help?

My PC with Internetconnection (IP=192.168.0.113) starts with:
rpcminer-cuda.exe -url=http://port80.btcguild.com:80 -user=USER -password=PASSWORD -threads=1 -aggression=8 -remoteserver -remotebindaddr=192.168.0.113 -remotepassword=banana -distributiontype=contributed

A second PC in my network (192.168.0.110) starts with:
rpcminer-opencl.exe -server=192.168.0.113 -password=banana -aggression=6

But the Client says always "Could nit retreive work from RPC Server. Curl return Value 7"

Maybe someone knews what I'm doing wrong?

Thangs, Bernd


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: yzfzfcex on January 23, 2013, 03:12:10 PM
I might be interested out of curiosity but I no longer have a working Nvidia card. I fried mine while playing Amnesia.

HAHA Well, I hope we don't do the same thing with this one. Let me know if you come up with some ideas. I am willing to try...


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: 420 on January 31, 2013, 03:59:47 AM
is there potential to damage a card?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on February 16, 2013, 10:54:55 AM
Is this miner still in development? If so, there's one bug report: https://bitcointalk.org/index.php?topic=144016.0


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: slush on March 03, 2013, 06:34:47 PM
Many people reported problems while using RPCminer with Stratum proxy. I just released Stratum proxy 1.5.1 with workaround especially for RPCminer. If you have RPCminer and want to mine over Stratum, please use proxy with --old-target parameter and let me know if it fixed your issues!


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Clock Loop on April 11, 2013, 09:59:29 AM
I have dual gtx460's watercooled & oclocked to 851mhz and they hash at about 145 Mhash/sec (70Mhash/sec each)
This is the norm for nvidia.
 

I use two rpcminer-cuda.exe instances like so:
-gpu=0 -gpugrid=320 -gputhreads=320 -aggression=7 -workrefreshms=1000
-gpu=1 -gpugrid=320 -gputhreads=320 -aggression=7 -workrefreshms=1000

Guiminer Messages about "lost connection" are normal, its from the pool servers reply time.  

Every server has different reply times, if your miner tries to query the server too soon, guiminer will say you have connection problems.
You need to find the refresh rate your pool allows and change -workrefreshms=XXXX to the servers limit.
Default for  -workrefreshms=4000


Most virus scanners and firewall programs hate "coin" miners and call them viruses, so make sure your virus scanner and firewall allow rpcminer-cuda.exe, and guiminer.

I use p2pool as my pool server.
https://bitcointalk.org/index.php?topic=18313.0

DO NOT USE rpcminer-mod-cuda.exe
This MOD also uses up all of 1 cpu, so i think its using the cpu to do hash also, perhaps tricking users into thinking its better than original.  It uses all cpu, and no hashes are accepted in GUIMINER, even tho it says its hashing, and p2pool says almost all are DOA...
DO NOT USE THIS MOD-->hxxps://github.com/cdmackie/rpcminer-mod/tree/master/bin
 USE ORIGINAL RPCMINER

Original RPCMINER: https://bitcointalk.org/index.php?topic=2444.0

If your RPCMINER program uses 100% of any cpu, and GUIminer shows 0(0) under "Accepted"
 (if you are only doing gpu mining) then you have the modified broken rpcminer-cuda.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Lacan82 on April 15, 2013, 03:42:45 AM
I'm attempting to use NVCC to get rid of the Unable to Load CUDA module error. I'm getting this after I run the command to compile.

LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main reference
d in function ___tmainCRTStartup
a.exe : fatal error LNK1120: 1 unresolved externals


Anyone able to help?:)



Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: owenprescott on April 15, 2013, 06:22:14 PM
Noob question? How do I set this up, the readme.txt does not have any instructions, I have a NVidia GPU. So far I have copied the rar files into a folder in the program files. When I start up the rcpminer-cuda.exe I get this message...
http://fc01.deviantart.net/fs70/f/2013/105/a/9/rcpmining_by_architekogp-d61u1h4.jpg

If I remember correctly I would need to join a pool or something?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Krako on April 21, 2013, 09:15:59 AM
Hi
I trying to use the rpcminer.cuda.exe with guiminer (geforce gtx660)

Quote
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to load CUDA module

I get the above error but few pages back I found this answer

Quote
You need to compile the .cu file targeting the 1.1, 1.2, and 2.0 CUDA architecture, and give the resulting cubin the appropriate name, and place it in the working directory before you start the miner.

Please can some one teachme how to doing this? I am absolutely ignorant about and I have no Idea what is this and how to make it work.

Thanks a lot in advance


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Aggrophobia on April 21, 2013, 02:23:12 PM
is anyone able to compile the cudafiles with cuda 5.0 for windows 7 x64?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: milazi on April 24, 2013, 04:34:24 AM
windows


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Stoneysilence on April 26, 2013, 04:07:50 AM
I tried to download the Windows Binaries and got a warning from ESET NOD32 that it was a virus they coined BitcoinMiner.M


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: 420 on May 04, 2013, 01:07:52 AM
with a cuda mod miner I get 185Khash with litecoin on GTX 680


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Eli0t on May 28, 2013, 03:38:23 AM
for anyone wondering if this app will give you a faster hash rate than newer CUDA miners the answer is no

after some tweaking for best performance i was able to get the same hash rate (maybe even 1% less) as i get by default with ufasoft Coins CUDA implementation and there i get a much better readout and stratum support into the bargain.

560ti(no OC) ~83 MH/s with -aggression=9 -gpugrid=128 -gputhreads=384


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: Tritonio on September 22, 2013, 05:16:52 PM
Avira started detecting the rcpminer-cpu.exe as a Security or Private Risk (SPR/BitCoin.djh.1). Also if you search the file's hash on google you'll find that it's known as winvnc86.exe and wininiit.exe. I suppose someone used it in a botnet or other trojan?


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: bernard75 on September 26, 2013, 06:13:38 AM
Avira started detecting the rcpminer-cpu.exe as a Security or Private Risk (SPR/BitCoin.djh.1). Also if you search the file's hash on google you'll find that it's known as winvnc86.exe and wininiit.exe. I suppose someone used it in a botnet or other trojan?
Same for ESET NOD32.


Title: Re: RPC Miners (CPU/4way/CUDA/OpenCL)
Post by: 420 on September 30, 2013, 12:48:40 AM
who has the highest hashrate with a gtx titan?