Pages:
Author

Topic: [VTC] Lyra2RE Vertcoin optimized miner, NOW WITH SOURCES! - page 3. (Read 26923 times)

legendary
Activity: 1462
Merit: 1025
i love Emerald (EMD)
using bamt 1.6.2 with sgminer-5.1.1-lyra2re
about bamt -> http://bamt.wikia.com/wiki/Litecoin_BAMT

on bamt system

apt-get install libcurl4-openssl-dev pkg-config libtool libncurses5-dev
apt-get update
cd /opt/miners
git clone https://github.com/sgminer-dev/sgminer.git
cd sgminer
cp /opt/AMDADL/*h ./ADL_SDK/
git submodule init
git submodule update
autoreconf -i
CFLAGS="-O2 -Wall -march=native -std=gnu99" ./configure
make

cd ..
mv sgminer sgminer-5.1.1-lyra2re

cd /opt/bamt
vi common.pl
modify the sgminer-sph section to sgminer-lyra2re using the path /opt/miners/sgminer-5.1.1-lyra2re

cd /etc/bamt
vi bamt.conf
modify the cgminer section by adding a line with sgminer-lyra2re.conf and miner-sgminer-lyra2re: 1

copy sgminer-sph.conf to sgminer-lyra2re.conf and fit the values for your graphic card

i am currently running a sapphire 5850 xtreme with i=18, clock=775, mem=1000, volt=1.000 with about 350kh/s @ 170Watt @ 68°C

good luck !

greetings
pazor


legendary
Activity: 2716
Merit: 1094
Black Belt Developer
Updated the donation text in the OP:

If you feel you can donate to: 1H7qC5uHuGX2d5s9Kuw3k7Wm7xMQzL16SN
Or just mine a bit with the provided start.bat which loads the included lyra2re.conf:
{
"pools" : [
        {
                "name" : "NiceHash_Lyra2RE",
                "url" : "stratum+tcp://lyra2re.eu.nicehash.com:3342",
                "user" : "",
                "pass" : "d=1",
                "algorithm" : "Lyra2RE",
                "intensity" : "15",
                "gpu-engine" : "835",
                "gpu-memclock" : "1500",
                "worksize" : "128",
                "gpu-threads" : "2"
        }
]
}

because of the new nicehash urls and removal of yaamp.
zip archives updated as well: no need to update, only the conf file is changed.
sr. member
Activity: 350
Merit: 250
opencl.dll form 14.12? Where can I get the file?
C:\AMD\AMD-Catalyst-Omega-14.12-With-DOTNet45-Win8.1-64bit\Packages\Drivers\Display\WB6A_INF\B178093
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
opencl.dll form 14.12? Where can I get the file?

I believe you can extract it from the driver package, but I'm a linux guy so I never tried it myself.
member
Activity: 148
Merit: 10
opencl.dll form 14.12? Where can I get the file?  ( yes I'm on windows)
member
Activity: 148
Merit: 10
opencl.dll form 14.12? Where can I get the file?
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
But i think it's probably drivers' fault

if you are on windows, you can keep your driver and compile the opencl on 14.12 just by putting opencl.dll in the miner's folder.
member
Activity: 148
Merit: 10
But i think it's probably drivers' fault
member
Activity: 148
Merit: 10
What should I do with the bin file ( i'm newbie in mining Cheesy ) please send [email protected]
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
{
"pools" : [
        {
                "name" : "NiceHash_Lyra2RE",
                "url" : "ca.simplemulti.com:3374",
                "user" : "VpzyncgawVk3kC7Yp5M8YHVcS97bYLvQCs",
                "pass" : "x",
                "algorithm" : "Lyra2RE",
                "intensity" : "18",
                "gpu-engine" : "935",
                "gpu-memclock" : "1500",
                "worksize" : "128",
                "gpu-threads" : "2"
        },
   
}

Drivers the latest  15.4 Beta

try:
"intensity" : "15",
"gpu-engine" : "835",

I never tried compiling the opencl code using 15.4: it might need tweaking for that version.
You can try 14.12 or I can send you the precompiled bin (64 bit for hawaii).
member
Activity: 148
Merit: 10
start file:

setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100

sgminer.exe -c lyra2re.conf

pause

config:

{
"pools" : [
        {
                "name" : "NiceHash_Lyra2RE",
                "url" : "ca.simplemulti.com:3374",
                "user" : "VpzyncgawVk3kC7Yp5M8YHVcS97bYLvQCs",
                "pass" : "x",
                "algorithm" : "Lyra2RE",
                "intensity" : "18",
                "gpu-engine" : "935",
                "gpu-memclock" : "1500",
                "worksize" : "128",
                "gpu-threads" : "2"
        },
   
}


Drivers the latest  15.4 Beta
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
I'm having 800kh on my r 290 ( 3GB )  what's the problem?

Which driver version are you using?
Which settings: clocks, intensity etc.?
Please paste the full commandline or conf file.
member
Activity: 148
Merit: 10
I'm having 800kh on my r 290 ( 3GB )  what's the problem?
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
in fact its just a coding copy paste typo from cpu or ccminer code...

Originally from sph -sgminer, not a copy paste typo, just bad precompiler code ;-)
legendary
Activity: 1484
Merit: 1082
ccminer/cpuminer developer
in fact its just a coding copy paste typo from cpu or ccminer code...

OpenCL doesnt supports ULL, because UL is the same... 64bit

I guess the amd compiler "handles" it but its just wrong...
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
Just for fun: managed to run it on my gtx 750.
It gives 650 khs instead of 880khs with sp_'s ccminer. Not bad but cpu usage is huge.

In order to make it work I needed to change long long constants in Lyra2cl to unsigned long as long long is not supported in nvidia opencl

__constant static const sph_u64 blake2b_IV[8] =
{
  0x6a09e667f3bcc908UL, 0xbb67ae8584caa73bUL,
  0x3c6ef372fe94f82bUL, 0xa54ff53a5f1d36f1UL,
  0x510e527fade682d1UL, 0x9b05688c2b3e6c1fUL,
  0x1f83d9abfb41bd6bUL, 0x5be0cd19137e2179UL
};

Then it was an error in keccak1600.cl with

inline void keccak_block(ulong *s) {

I added static
inline static void keccak_block(ulong *s) {

and the problems seems to vanish.

Then it was an error with 2d array init skein256.cl

__constant static const ulong ROT256[8][4] = {
   46, 36, 19, 37,
   33, 27, 14, 42,
   17, 49, 36, 39,
   44, 9, 54, 56,
   39, 30, 34, 24,
   13, 50, 10, 17,
   25, 29, 39, 43,
   8, 35, 56, 22,
};

I've added more {} to form this

__constant static const ulong ROT256[8][4] = {
   {46, 36, 19, 37},
   {33, 27, 14, 42},
   {17, 49, 36, 39},
   {44, 9, 54, 56},
   {39, 30, 34, 24},
   {13, 50, 10, 17},
   {25, 29, 39, 43},
   {8, 35, 56, 22}
};

And it finally got compiled.
It works and receives "accepted" from the pool )))

I used "intensity" : "14",   "worksize" : "512",  "gpu-threads" : "1" to run ...
gpu_z shows 100% load for gpu engine and memory, the same is with ccminer )))

Thanks very much for testing this!
Long long is not used on amd, there is an ifdef which defines sph_u64 differently on nvidia (legacy sph stuff I didn't care to polish yet).
I will update the two archives and the post, to add intel and nvidia compatibility, later.
High cpu usage can be avoided by setting GPU_USE_SYNC_OBJECTS=1, don't know if there is an equivalent for nvidia.
legendary
Activity: 1510
Merit: 1003
Just for fun: managed to run it on my gtx 750.
It gives 650 khs instead of 880khs with sp_'s ccminer. Not bad but cpu usage is huge.

In order to make it work I needed to change long long constants in Lyra2cl to unsigned long as long long is not supported in nvidia opencl

__constant static const sph_u64 blake2b_IV[8] =
{
  0x6a09e667f3bcc908UL, 0xbb67ae8584caa73bUL,
  0x3c6ef372fe94f82bUL, 0xa54ff53a5f1d36f1UL,
  0x510e527fade682d1UL, 0x9b05688c2b3e6c1fUL,
  0x1f83d9abfb41bd6bUL, 0x5be0cd19137e2179UL
};

Then it was an error in keccak1600.cl with

inline void keccak_block(ulong *s) {

I added static
inline static void keccak_block(ulong *s) {

and the problems seems to vanish.

Then it was an error with 2d array init skein256.cl

__constant static const ulong ROT256[8][4] = {
   46, 36, 19, 37,
   33, 27, 14, 42,
   17, 49, 36, 39,
   44, 9, 54, 56,
   39, 30, 34, 24,
   13, 50, 10, 17,
   25, 29, 39, 43,
   8, 35, 56, 22,
};

I've added more {} to form this

__constant static const ulong ROT256[8][4] = {
   {46, 36, 19, 37},
   {33, 27, 14, 42},
   {17, 49, 36, 39},
   {44, 9, 54, 56},
   {39, 30, 34, 24},
   {13, 50, 10, 17},
   {25, 29, 39, 43},
   {8, 35, 56, 22}
};

And it finally got compiled.
It works and receives "accepted" from the pool )))

I used "intensity" : "14",   "worksize" : "512",  "gpu-threads" : "1" to run ...
gpu_z shows 100% load for gpu engine and memory, the same is with ccminer )))


legendary
Activity: 2716
Merit: 1094
Black Belt Developer
What speed are people getting with this miner with the omega 14.12 drivers?

I've been using omega drivers when developing it.
legendary
Activity: 2716
Merit: 1094
Black Belt Developer
Congrats Pallas

Your Miner/Kernel combination allowed me to tap into my Lenovo intel graphics for another 100Kh. I appreciate it.
Do the other kernels work I tried them multiple times but I can not get them to work on the intel graphics but the Lyra works great.

Thanks again.

Glad it works on Intel GPUs as well! :-)
About the other kernels, you can try adding the missing .cl files into the kernel folder, getting them from the stock sgminer. Not guaranteed to work....
legendary
Activity: 1092
Merit: 1004
What speed are people getting with this miner with the omega 14.12 drivers?
Pages:
Jump to: