Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - girino

Pages: 1 2 3 4 [5]
61
hi, when trying to run the make command after using cmake with cygwin i get the following error:
(im using Win7 and have an ATI graphics card)

Linking CXX executable ptsminer.exe
CMakeFiles/ptsminer.dir/src/main_poolminer.cpp.o:main_poolminer.cpp:(.text$_ZN13CWorkerThread8mineloopE7SHAMODEi[_ZN13CWorkerThread8mineloopE7SHAMODEi]+0x3b): undefined reference to `CProtoshareProcessor::CProtoshareProcessor(SHAMODE, unsigned int, unsigned int)'
CMakeFiles/ptsminer.dir/src/main_poolminer.cpp.o:main_poolminer.cpp:(.text$_ZN13CWorkerThread8mineloopE7SHAMODEi[_ZN13CWorkerThread8mineloopE7SHAMODEi]+0x3b): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `CProtoshareProcessor::CProtoshareProcessor(SHAMODE, unsigned int, unsigned int)'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: CMakeFiles/ptsminer.dir/src/main_poolminer.cpp.o: bad reloc address 0x4c in section `.text$_ZN13CWorkerThread8mineloopE7SHAMODEi[_ZN13CWorkerThread8mineloopE7SHAMODEi]'

any idea?

thx alot

P.S. you can contact me directly via mich431mail-bitshares@yahoo.com

you shouldn't use cmake. These are left over files from the original project that i failed to remove. Just choose your OS and run:

linux:
Code: [Select]
make -f makefile.unix

OSX
Code: [Select]
make -f makefile.osx

Windows with cygwin64
Code: [Select]
make -f makefile.cygwin

The other files are not currently supported.

62

(...)

I've removed the AMD card for now as I'm putting another nVidia in, but I will test again later tonight for you.

AMD Radeon HD6870, Debian 7, 4GB total RAM, Intel Core2Quad Q9550.

I did some new adjustments to the code. Now you can invoke the different versions of the algorithm from the command line by using: "-a gpuv2", "-a gpuv3" or "-a gpuv4".

gpuv2 is the less memory intensive. Try it with a small -m param ("-m 25" should do, my geforce 6400 accepts up to "-m 26").

Are you running 32 or 64 bit OS? My GeForce is on a 32bit ubuntu 12.04, and is the only GPU that complains about memory. I'm thinking maybe it's a memory addressing problem. Will try to instal a 64 bit OS there tonight.

63
I'm getting this error on Ubuntu 13.10, with AMD App SDK installed:

In file included from CProtoshareProcessor.cpp:10:0:
OpenCLMomentumV3.h:17:23: fatal error: CL/opencl.h: No such file or directory
 #include <CL/opencl.h>
                       ^
compilation terminated.
make: *** [obj/CProtoshareProcessor.o] Error 1

How do I install OpenCL SDK?

Thanks in advance.

you should install the opencl-headers packages from ubuntu:

Code: [Select]
sudo apt-get install opencl-headers

64
@r05: try compiling the older version of the algorithm, which consumes much less memory:
Code: [Select]
make clean
CFLAGS="-DDEBUG_GPUV3" make -f makefile.unix

and then try several memory amounts from -m 20 (4Mb) to -m 27 (512MB) (default).

If you're still with the same error, I'm lost :( Which graphics card are you running it on? How much RAM on your machine?

65
try downloading this compiled version (i compiled with NVidia SDK, but should work with AMD as well): http://girino.org/ptsminer/ptsminer-linux-x86_64.tgz


66
Ok, first error is easy and should be fixed on the repository. AMD SDK does not like "#pragma unroll (8)" directive. Just change all occurrences of this to just "#pragma unroll" in file opencl/OpenCLMomentumV4.cl

The second one seems like lack of memory. What did you change in order for it to happen?

67
@r05 try getting the code from the repository again. The makefile.unix was bogus and i corrected it sometime ago (yesterday i think). make sure you are building with:

Code: [Select]
make -f makefile.unix
Also, the new algorithm is almost 50% faster.

68
you need to add the SDK to the library path. try running something like:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/SDK/lib

where "/path/to/SDK/lib" is the place where the SDK installed the libOpenCL.so file. On NVidia its

/usr/local/cuda/lib/x86_64/

not sure where AMD installs it.

69

(...)

I am adapting my version of ptsminer to work with opencl. I can't get the same performance as cudapts yet (on an amazon g2.2xlarge his version gets 550 cpm and mine gets 290 cpm, so lots of room to improve). But you are welcome to try it (on AMD GPUs, for example, where there's no CUDA), and of course, suggest improvements.

https://github.com/girino/ptsminer

Got 480 CPM on amazon g2.2xlarge. Still not as good as cudapts, but getting close!

70

(...)

Edit: After researching it, looks like I need the AMD App SDK. Downloading/installing..

No joy. :(

Yup, I was about to tell you that... You need to install some OpenCL SDK. AFAIK, you can use NVidia SDK when compiling, since the work is done by the driver, and the protocols are all standard. But I never tried it.

71
Has anybody successfully mined on ptsweb.beeeeer.org on GPU?

Regards,
Pinov
Yes, I am doing it right now using the open source Linux miner from dga.

Info here: https://bitsharestalk.org/index.php?topic=2114.0
Repo here: https://github.com/dave-andersen/cudapts

Works like a charm.

I am adapting my version of ptsminer to work with opencl. I can't get the same performance as cudapts yet (on an amazon g2.2xlarge his version gets 550 cpm and mine gets 290 cpm, so lots of room to improve). But you are welcome to try it (on AMD GPUs, for example, where there's no CUDA), and of course, suggest improvements.

https://github.com/girino/ptsminer

72
BitShares PTS / Re: [ANN] ptsweb.beeeeer.org - Protoshares mining sub-pool
« on: December 30, 2013, 03:00:54 am »

@girino

Thanks! Up and running....compiled fine and getting a nice %5 bump. Appreciate your work. Donation imminent.  :D

If you're using sse4 you might try wjchen's fork. He's done some tuning to the ASM code and you can get an extra 3% (at least i did on my chromebook, not sure how it does on a "real" machine.)

https://github.com/wjchen/ptsminer

I'll check with him if his changes can be applied to avx or if it's sse4 only.

73
BitShares PTS / Re: [ANN] ptsweb.beeeeer.org - Protoshares mining sub-pool
« on: December 27, 2013, 01:10:34 am »
@xolo

ld returned 1 exit status
error 1

Just to be clear I was trying the girinio fork.

Happy Holidays and much thanks to Xolo and Beeeer!

my fork is still work in progress, this can happen sometimes. should be fixed now.

always use one of the lowercase makefiles (make -f makefile.unix, for example). The default makefile is mostly bogus (used for tests).

Pages: 1 2 3 4 [5]