Author Topic: Open source OpenCL GPU miner by girino - Binaries for win, linux, osx (1% fee)  (Read 51283 times)

0 Members and 1 Guest are viewing this topic.

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #74 on: January 23, 2014, 01:58:14 am »
listen, what you IDE you use for debug?
possible use something with cygwin? I want make some debug too, but right now I no have linux ( I have good experience with c++ and linux but no experience with opencl, I'm very interested)

I use Eclipse for editing code, but no debugging IDE. Just a bunch of "#ifdef" and "printf" all over the code. I Am new to opencl too. as of today, i have exactly 3 weeks of experience with it ;)

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #73 on: January 22, 2014, 02:38:16 pm »
listen, what you IDE you use for debug?
possible use something with cygwin? I want make some debug too, but right now I no have linux ( I have good experience with c++ and linux but no experience with opencl, I'm very interested)

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #72 on: January 22, 2014, 02:34:30 pm »
hi. another cygwin make error.
g++   -o ptsminer  obj/cpuid.o obj/sha512_avx.o obj/sha512_sse4.o obj/sha512.o obj/sph_sha2.o obj/sph_sha2big.o obj/CProtoshareProcessor.o obj/AbstractMomentum.o obj/OpenCLMomentum2.o obj/OpenCLMomentumV3.o obj/OpenCLMomentumV4.o obj/OpenCLMomentumV5.o obj/OpenCLMomentumV4_AMD.o obj/OpenCLMomentumV3_AMD.o obj/OpenCLObjects.o obj/sha_utils.o obj/fileutils.o obj/sha2.o obj/main_poolminer.o  -Wl,-Bdynamic  -Wl,-Bdynamic -l z -l dl -l pthread -L/opt/AMD_SDK/lib/x86_64 -lOpenCL
obj/CProtoshareProcessor.o:CProtoshareProcessor.cpp:(.text$_ZN5boost4asio6detail20posix_tss_ptr_createERP15__pthread_key_t[_ZN5boost4asio6detail20posix_tss_ptr_createERP15__pthread_key_t]+0xf): undefined reference to `boost::system::system_category()'
obj/CProtoshareProcessor.o:CProtoshareProcessor.cpp:(.text$_ZN5boost4asio6detail20posix_tss_ptr_createERP15__pthread_key_t[_ZN5boost4asio6detail20posix_tss_ptr_createERP15__pthread_key_t]+0xf): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `boost::system::system_category()'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: obj/CProtoshareProcessor.o: неправильный адрес перемещения 0x28 в разделе «.text$_ZN5boost4asio6detail20posix_tss_ptr_createERP15__pthread_key_t[_ZN5boost4asio6detail20posix_tss_ptr_createERP15__pthread_key_t]»
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
makefile.cygwin:159: ошибка выполнения рецепта для цели «ptsminer»
make: *** [ptsminer] Ошибка 1

Offline dwrjones87

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #71 on: January 22, 2014, 11:41:37 am »
Tried it a few times with both ypool username and password and my PTS address for beeeeer. Same

It does not work on ypool. for ypool try my other miner: https://bitsharestalk.org/index.php?topic=2460.0

About beeeeer.org, please can you post or private message me the exact command line parameters you are using?

I think I should pay more attention to what I'm typing in in the future. It is working now thanks :) Now I've just got to get a decent graphics card.....

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #70 on: January 21, 2014, 05:21:30 am »
I do understand
you going great work. if you need test something, add debug info and I will send to you output.

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #69 on: January 21, 2014, 04:59:57 am »
unfortunately, that not working.
./ptsminer.exe -u x -m 28 -a gpuv4amd ( I have 3+ GB gpu memory)
Starting OpenCLMomentum V4 AMD Optimized
Device 00: Tahiti
Max work group size: 256
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_INVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE value specified in the table of allowed values for param_name for clGetDeviceInfo for all devices in context.
assertion "_MY_ERR_X == CL_SUCCESS" failed: file "OpenCLObjects.cpp", line 379, function: OpenCLBuffer* OpenCLContext::createBuffer(size_t, cl_mem_flags, void*)
Aborted (core dumped)

with ./ptsminer.exe -u x -m 27 -a gpuv4amd
show around 17k cpm

Warning: found more candidate collisions than storage space available
[WORKER] collision found: 17088 <-> 16407 #28 @ 1390279937 by 0
[WORKER] collision found: 36544 <-> 35863 #82 @ 1390279937 by 0
[WORKER] collision found: 56000 <-> 55319 #96 @ 1390279937 by 0
[WORKER] collision found: 57399 <-> 58352 #126 @ 1390279937 by 0
[WORKER] collision found: 91992 <-> 91175 #142 @ 1390279937 by 0
[WORKER] collision found: 123888 <-> 122935 #154 @ 1390279937 by 0
[WORKER] collision found: 99160 <-> 98343 #164 @ 1390279937 by 0
[WORKER] collision found: 79552 <-> 78871 #196 @ 1390279937 by 0
[MASTER] submitted share -> REJECTED
[STATS] 2014-Jan-21 11:52:16 | 17280.0 c/m | 480.0 sh/m | VL: 0 (0.0%), RJ: 10 (100.0%), ST: 0 (0.0%)
[MASTER] submitted share -> REJECTED
[STATS] 2014-Jan-21 11:52:16 | 17280.0 c/m | 480.0 sh/m | VL: 0 (0.0%), RJ: 11 (100.0%), ST: 0 (0.0%)
[MASTER] submitted share -> REJECTED
too many rejects (3) in a row, forcing reconnect.
[STATS] 2014-Jan-21 11:52:16 | 17280.0 c/m | 480.0 sh/m | VL: 0 (0.0%), RJ: 12 (100.0%), ST: 0 (0.0%)
no connection to the server, reconnecting in 10 seconds
Warning: found more candidate collisions than storage space available

yeah, that's the problem with not having an AMD GPU at home to test :( Probably some memory sync problem, but it will be impossible to debug without a GPU of my own :( the 17K cpm is misleading. all the hashes are probably 0 because the sha512 is not woking...

Tanks anyway. I will find a way to debug it...

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #68 on: January 21, 2014, 04:54:35 am »
unfortunately, that not working.
./ptsminer.exe -u x -m 28 -a gpuv4amd ( I have 3+ GB gpu memory)
Starting OpenCLMomentum V4 AMD Optimized
Device 00: Tahiti
Max work group size: 256
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_INVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE value specified in the table of allowed values for param_name for clGetDeviceInfo for all devices in context.
assertion "_MY_ERR_X == CL_SUCCESS" failed: file "OpenCLObjects.cpp", line 379, function: OpenCLBuffer* OpenCLContext::createBuffer(size_t, cl_mem_flags, void*)
Aborted (core dumped)

with ./ptsminer.exe -u x -m 27 -a gpuv4amd
show around 17k cpm

Warning: found more candidate collisions than storage space available
[WORKER] collision found: 17088 <-> 16407 #28 @ 1390279937 by 0
[WORKER] collision found: 36544 <-> 35863 #82 @ 1390279937 by 0
[WORKER] collision found: 56000 <-> 55319 #96 @ 1390279937 by 0
[WORKER] collision found: 57399 <-> 58352 #126 @ 1390279937 by 0
[WORKER] collision found: 91992 <-> 91175 #142 @ 1390279937 by 0
[WORKER] collision found: 123888 <-> 122935 #154 @ 1390279937 by 0
[WORKER] collision found: 99160 <-> 98343 #164 @ 1390279937 by 0
[WORKER] collision found: 79552 <-> 78871 #196 @ 1390279937 by 0
[MASTER] submitted share -> REJECTED
[STATS] 2014-Jan-21 11:52:16 | 17280.0 c/m | 480.0 sh/m | VL: 0 (0.0%), RJ: 10 (100.0%), ST: 0 (0.0%)
[MASTER] submitted share -> REJECTED
[STATS] 2014-Jan-21 11:52:16 | 17280.0 c/m | 480.0 sh/m | VL: 0 (0.0%), RJ: 11 (100.0%), ST: 0 (0.0%)
[MASTER] submitted share -> REJECTED
too many rejects (3) in a row, forcing reconnect.
[STATS] 2014-Jan-21 11:52:16 | 17280.0 c/m | 480.0 sh/m | VL: 0 (0.0%), RJ: 12 (100.0%), ST: 0 (0.0%)
no connection to the server, reconnecting in 10 seconds
Warning: found more candidate collisions than storage space available

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #67 on: January 21, 2014, 04:49:29 am »
thanks! builded.

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #66 on: January 21, 2014, 04:44:56 am »
I got error on building last version. Linking error (sorry for russian, I don't know how chage error message on cygwin)

g++   -o ptsminer  obj/cpuid.o obj/sha512_avx.o obj/sha512_sse4.o obj/sha512.o obj/sph_sha2.o obj/sph_sha2big.o obj/CProtoshareProcessor.o obj/AbstractMomentum.o obj/OpenCLMomentum2.o obj/OpenCLMomentumV3.o obj/OpenCLMomentumV4.o obj/OpenCLMomentumV5.o obj/OpenCLMomentumV4_AMD.o obj/OpenCLObjects.o obj/sha_utils.o obj/fileutils.o obj/sha2.o obj/main_poolminer.o  -Wl,-Bdynamic -l boost_system-mt -l boost_filesystem-mt -l boost_program_options-mt -l boost_thread-mt -l boost_chrono-mt -Wl,-Bdynamic -l z -l dl -l pthread -L/opt/AMD_SDK/lib/x86_64 -lOpenCL
obj/sha512.o:sha512.c:(.rdata$.refptr.sha512_transform_single_rorx[.refptr.sha512_transform_single_rorx]+0x0): undefined reference to `sha512_transform_single_rorx'
obj/sha512.o:sha512.c:(.rdata$.refptr.sha512_transform_rorx[.refptr.sha512_transform_rorx]+0x0): undefined reference to `sha512_transform_rorx'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: obj/sha512.o: неправильный адрес перемещения 0x0 в разделе «.rdata$.refptr.sha512_transform_rorx[.refptr.sha512_transform_rorx]»
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
makefile.cygwin:158: ошибка выполнения рецепта для цели «ptsminer»
make: *** [ptsminer] Ошибка 1

sorry. This was from the CPU version. commented out the code. please update the code and it should compile.

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #65 on: January 21, 2014, 04:36:26 am »
I got error on building last version. Linking error (sorry for russian, I don't know how chage error message on cygwin)

g++   -o ptsminer  obj/cpuid.o obj/sha512_avx.o obj/sha512_sse4.o obj/sha512.o obj/sph_sha2.o obj/sph_sha2big.o obj/CProtoshareProcessor.o obj/AbstractMomentum.o obj/OpenCLMomentum2.o obj/OpenCLMomentumV3.o obj/OpenCLMomentumV4.o obj/OpenCLMomentumV5.o obj/OpenCLMomentumV4_AMD.o obj/OpenCLObjects.o obj/sha_utils.o obj/fileutils.o obj/sha2.o obj/main_poolminer.o  -Wl,-Bdynamic -l boost_system-mt -l boost_filesystem-mt -l boost_program_options-mt -l boost_thread-mt -l boost_chrono-mt -Wl,-Bdynamic -l z -l dl -l pthread -L/opt/AMD_SDK/lib/x86_64 -lOpenCL
obj/sha512.o:sha512.c:(.rdata$.refptr.sha512_transform_single_rorx[.refptr.sha512_transform_single_rorx]+0x0): undefined reference to `sha512_transform_single_rorx'
obj/sha512.o:sha512.c:(.rdata$.refptr.sha512_transform_rorx[.refptr.sha512_transform_rorx]+0x0): undefined reference to `sha512_transform_rorx'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: obj/sha512.o: неправильный адрес перемещения 0x0 в разделе «.rdata$.refptr.sha512_transform_rorx[.refptr.sha512_transform_rorx]»
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
makefile.cygwin:158: ошибка выполнения рецепта для цели «ptsminer»
make: *** [ptsminer] Ошибка 1

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #64 on: January 21, 2014, 04:12:26 am »
john the ripper has sha512 code specific for AMD, but i was unable to test it since i have no AMD card. I will create a "gpuv6" that uses it instead of the generic version, and see if we get closer to them. Any other tips and tricks for tuning opencl code on AMD cards are welcome.

thanks for add gpuv6! I will test asap after adding.

Just got it ready. 80% improvement at my low end AMD at work (from 28 to 45 cpm). The options is -a gpuv4amd since it does not work on nvidia. Please test it and tell me if it improves performance for you.

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #63 on: January 20, 2014, 11:50:47 pm »
Tried it a few times with both ypool username and password and my PTS address for beeeeer. Same

It does not work on ypool. for ypool try my other miner: https://bitsharestalk.org/index.php?topic=2460.0

About beeeeer.org, please can you post or private message me the exact command line parameters you are using?

Offline dwrjones87

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #62 on: January 20, 2014, 09:10:27 pm »
Tried it a few times with both ypool username and password and my PTS address for beeeeer. Same

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #61 on: January 20, 2014, 11:37:17 am »
I've a CPU miner running that connects to both just fine, and my firewall allows outgoing connections

Comes to mind, this error happens when the server refuses the username/password. Are you sure you typed in your pts address correctly?

Offline dwrjones87

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Open source OpenCL GPU miner by girino
« Reply #60 on: January 20, 2014, 07:33:09 am »
I've a CPU miner running that connects to both just fine, and my firewall allows outgoing connections