Bitcoin Forum
May 08, 2024, 07:16:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: 1 2 3 [All]
  Print  
Author Topic: [ANN] Sia GPU Miner  (Read 10821 times)
Taek (OP)
Hero Member
*****
Offline Offline

Activity: 543
Merit: 501



View Profile
June 03, 2015, 04:25:26 PM
Last edit: June 03, 2015, 08:35:41 PM by Taek
 #1

Sia (www.siacoin.com) is a new decentralized storage platform, we're launching on June 7th. We've just completed a gpu miner for Sia. The gpu miner is incompatible with the download available at the website, so if you want to try out the gpu miner during beta, you'll have to build both Sia and the gpu miner yourself.

Sia repository here: https://github.com/NebulousLabs/Sia
GPU Miner here: https://github.com/NebulousLabs/Sia-GPU-Miner

Sia's POW algorithm is blake2b. As far as I'm aware, we have the only open source GPU blake2b implementation.

in the Sia repository, run 'make release'. Then run siad. The GPU needs to talk to siad while it is mining. To make the gpu miner, run 'make'. During the first few minutes, the GPU miner will be optimizing the number of cores in use. It should display a hashrate.

This is our first time making a GPU miner, let us know what you think. The currency launches on June 7th, we'd be excited to have you on board.
1715195814
Hero Member
*
Offline Offline

Posts: 1715195814

View Profile Personal Message (Offline)

Ignore
1715195814
Reply with quote  #2

1715195814
Report to moderator
1715195814
Hero Member
*
Offline Offline

Posts: 1715195814

View Profile Personal Message (Offline)

Ignore
1715195814
Reply with quote  #2

1715195814
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715195814
Hero Member
*
Offline Offline

Posts: 1715195814

View Profile Personal Message (Offline)

Ignore
1715195814
Reply with quote  #2

1715195814
Report to moderator
1715195814
Hero Member
*
Offline Offline

Posts: 1715195814

View Profile Personal Message (Offline)

Ignore
1715195814
Reply with quote  #2

1715195814
Report to moderator
anatolikostis
Legendary
*
Offline Offline

Activity: 2026
Merit: 1005



View Profile
June 03, 2015, 08:45:27 PM
 #2

git cloned both repo in MinGV (win7 x64 - I always compile miner in such way)
but "make" for gpu-miner/"make release" for sia - doesn`t work.
Code:
xxxx@rap ~/sia
$ make release
go install -a ./...
make: go: Command not found
make: *** [release] Error 127

Code:
xxxx@rap ~/sia-gpu-miner
$ make
gcc gpu-miner.o network.o -o gpu-miner -lOpenCL -lcurl
gpu-miner.o:gpu-miner.c:(.text+0x13e): undefined reference to `_imp__curl_easy_i
nit'
network.o:network.c:(.text+0x16a): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x18d): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1b0): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1d2): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1df): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x1f5): undefined reference to `_imp__curl_easy_strer
ror'
network.o:network.c:(.text+0x32b): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x34e): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x371): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x39a): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3bc): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3c9): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x3df): undefined reference to `_imp__curl_easy_strer
ror'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: network.o:
 bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [gpu-miner] Error 1

any suggestions?
Taek (OP)
Hero Member
*****
Offline Offline

Activity: 543
Merit: 501



View Profile
June 04, 2015, 01:14:52 AM
 #3

git cloned both repo in MinGV (win7 x64 - I always compile miner in such way)
but "make" for gpu-miner/"make release" for sia - doesn`t work.
Code:
xxxx@rap ~/sia
$ make release
go install -a ./...
make: go: Command not found
make: *** [release] Error 127

To make Sia you are going to need a golang compiler, this error means you don't have a go compiler.

Code:
xxxx@rap ~/sia-gpu-miner
$ make
gcc gpu-miner.o network.o -o gpu-miner -lOpenCL -lcurl
gpu-miner.o:gpu-miner.c:(.text+0x13e): undefined reference to `_imp__curl_easy_i
nit'
network.o:network.c:(.text+0x16a): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x18d): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1b0): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1d2): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1df): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x1f5): undefined reference to `_imp__curl_easy_strer
ror'
network.o:network.c:(.text+0x32b): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x34e): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x371): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x39a): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3bc): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3c9): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x3df): undefined reference to `_imp__curl_easy_strer
ror'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: network.o:
 bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [gpu-miner] Error 1

any suggestions?

This makes it look like you don't have libCurl, which is how the miner talks to the daemon.
cwrmyy888
Member
**
Offline Offline

Activity: 81
Merit: 10


View Profile
June 07, 2015, 12:06:38 PM
 #4

How to use Sia-GPU-Miner-master ?

NO exe ?
djm34
Legendary
*
Offline Offline

Activity: 1400
Merit: 1050


View Profile WWW
June 07, 2015, 02:27:18 PM
 #5

will it work with standard sgminer/ccminer (and getwork/stratum stuff) or is it something entirely different ?


djm34 facebook page
BTC: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze
Pledge for neoscrypt ccminer to that address: 16UoC4DmTz2pvhFvcfTQrzkPTrXkWijzXw
Taek (OP)
Hero Member
*****
Offline Offline

Activity: 543
Merit: 501



View Profile
June 08, 2015, 02:50:13 PM
 #6

will it work with standard sgminer/ccminer (and getwork/stratum stuff) or is it something entirely different ?



It's entirely different. You can find binaries here: https://github.com/NebulousLabs/Sia-GPU-Miner/releases
go6ooo1212
Legendary
*
Offline Offline

Activity: 1512
Merit: 1000


quarkchain.io


View Profile
June 08, 2015, 02:57:40 PM
 #7

will it work with standard sgminer/ccminer (and getwork/stratum stuff) or is it something entirely different ?



It's entirely different. You can find binaries here: https://github.com/NebulousLabs/Sia-GPU-Miner/releases

Its working now to me either , but the rig shows activity only on one of the cards. Speed is about 32MH/s
Rabinovitch
Legendary
*
Offline Offline

Activity: 2030
Merit: 1076


BTCLife.global participant


View Profile
June 10, 2015, 08:46:53 AM
 #8

Still can't start this new miner release "as is", Sia_GPU-Miner-v1.0.1-win64. Why does it seems that Wolf0 is smarter than developers of this miner?..

Quote
D:\Distrib\Siacoin\Sia_GPU-Miner-v1.0.1-win64>sia_GPU-Miner.exe
Initializing...failed to get Device IDs: -1

Win7 x64, 14.6 RC catalyst driver.




From Siberia with love! Hosting by Rabinovitch!
Fundraising for BOINC Farm
Пpoфeccиoнaльнo зaнимaюcь paзвёpтывaниeм фepм (ASIC, GPU, BURST, STORJ, Filecoin), oбopyдoвaниeм пoмeщeний для мaйнингa.
Taek (OP)
Hero Member
*****
Offline Offline

Activity: 543
Merit: 501



View Profile
June 14, 2015, 02:39:19 PM
 #9

Still can't start this new miner release "as is", Sia_GPU-Miner-v1.0.1-win64. Why does it seems that Wolf0 is smarter than developers of this miner?..

Because Wolf0 has been doing gpu mining for a long time, and knows his way around miners much better than we do. When it comes to mining, Wolf0 definitely knows more than we do.

On that note, the master branch of the official Sia miner has some recent changes + optimizations, some of which were made by Wolf0 himself: https://github.com/NebulousLabs/Sia-GPU-Miner
ol92
Sr. Member
****
Offline Offline

Activity: 445
Merit: 255


View Profile
June 14, 2015, 04:02:01 PM
 #10

Still can't start this new miner release "as is", Sia_GPU-Miner-v1.0.1-win64. Why does it seems that Wolf0 is smarter than developers of this miner?..

Quote
D:\Distrib\Siacoin\Sia_GPU-Miner-v1.0.1-win64>sia_GPU-Miner.exe
Initializing...failed to get Device IDs: -1

Win7 x64, 14.6 RC catalyst driver.




With the last version you can specify -p1 : the opencl platform is usually 0 but in my case it was 1 : I had the same error than you, and now it works.
chrysophylax
Legendary
*
Offline Offline

Activity: 2814
Merit: 1091


--- ChainWorks Industries ---


View Profile WWW
June 16, 2015, 11:09:40 AM
 #11

git cloned both repo in MinGV (win7 x64 - I always compile miner in such way)
but "make" for gpu-miner/"make release" for sia - doesn`t work.
Code:
xxxx@rap ~/sia
$ make release
go install -a ./...
make: go: Command not found
make: *** [release] Error 127

To make Sia you are going to need a golang compiler, this error means you don't have a go compiler.

Code:
xxxx@rap ~/sia-gpu-miner
$ make
gcc gpu-miner.o network.o -o gpu-miner -lOpenCL -lcurl
gpu-miner.o:gpu-miner.c:(.text+0x13e): undefined reference to `_imp__curl_easy_i
nit'
network.o:network.c:(.text+0x16a): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x18d): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1b0): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1d2): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1df): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x1f5): undefined reference to `_imp__curl_easy_strer
ror'
network.o:network.c:(.text+0x32b): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x34e): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x371): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x39a): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3bc): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3c9): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x3df): undefined reference to `_imp__curl_easy_strer
ror'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: network.o:
 bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [gpu-miner] Error 1

any suggestions?

This makes it look like you don't have libCurl, which is how the miner talks to the daemon.

so how is one to compile sia miner using go? ...

apart from the golang and dependencies that get installed with yum - what are the commands and procedures to compile sia gpuminer? ...

#crysx

chrysophylax
Legendary
*
Offline Offline

Activity: 2814
Merit: 1091


--- ChainWorks Industries ---


View Profile WWW
June 16, 2015, 11:22:59 AM
 #12

git cloned both repo in MinGV (win7 x64 - I always compile miner in such way)
but "make" for gpu-miner/"make release" for sia - doesn`t work.
Code:
xxxx@rap ~/sia
$ make release
go install -a ./...
make: go: Command not found
make: *** [release] Error 127

To make Sia you are going to need a golang compiler, this error means you don't have a go compiler.

Code:
xxxx@rap ~/sia-gpu-miner
$ make
gcc gpu-miner.o network.o -o gpu-miner -lOpenCL -lcurl
gpu-miner.o:gpu-miner.c:(.text+0x13e): undefined reference to `_imp__curl_easy_i
nit'
network.o:network.c:(.text+0x16a): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x18d): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1b0): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1d2): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1df): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x1f5): undefined reference to `_imp__curl_easy_strer
ror'
network.o:network.c:(.text+0x32b): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x34e): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x371): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x39a): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3bc): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3c9): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x3df): undefined reference to `_imp__curl_easy_strer
ror'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: network.o:
 bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [gpu-miner] Error 1

any suggestions?

This makes it look like you don't have libCurl, which is how the miner talks to the daemon.

so how is one to compile sia miner using go? ...

apart from the golang and dependencies that get installed with yum - what are the commands and procedures to compile sia gpuminer? ...

#crysx

Er... you don't. It's not in Go; it's in C.

well - thats what im asking wolf ...

how on earth do you compile this thing ...

it seems WAY different to any of the compiles i have had to do before ...

and reading earlier - taek was saying that you needed the golang compiler to do so ...

so now im confused as ever ...

#crysx

chrysophylax
Legendary
*
Offline Offline

Activity: 2814
Merit: 1091


--- ChainWorks Industries ---


View Profile WWW
June 16, 2015, 11:57:27 AM
 #13

git cloned both repo in MinGV (win7 x64 - I always compile miner in such way)
but "make" for gpu-miner/"make release" for sia - doesn`t work.
Code:
xxxx@rap ~/sia
$ make release
go install -a ./...
make: go: Command not found
make: *** [release] Error 127

To make Sia you are going to need a golang compiler, this error means you don't have a go compiler.

Code:
xxxx@rap ~/sia-gpu-miner
$ make
gcc gpu-miner.o network.o -o gpu-miner -lOpenCL -lcurl
gpu-miner.o:gpu-miner.c:(.text+0x13e): undefined reference to `_imp__curl_easy_i
nit'
network.o:network.c:(.text+0x16a): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x18d): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1b0): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1d2): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1df): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x1f5): undefined reference to `_imp__curl_easy_strer
ror'
network.o:network.c:(.text+0x32b): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x34e): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x371): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x39a): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3bc): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3c9): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x3df): undefined reference to `_imp__curl_easy_strer
ror'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: network.o:
 bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [gpu-miner] Error 1

any suggestions?

This makes it look like you don't have libCurl, which is how the miner talks to the daemon.

so how is one to compile sia miner using go? ...

apart from the golang and dependencies that get installed with yum - what are the commands and procedures to compile sia gpuminer? ...

#crysx

Er... you don't. It's not in Go; it's in C.

well - thats what im asking wolf ...

how on earth do you compile this thing ...

it seems WAY different to any of the compiles i have had to do before ...

and reading earlier - taek was saying that you needed the golang compiler to do so ...

so now im confused as ever ...

#crysx

On Linux? A simple make should do it. As long as libcurl and the opencl libs aren't in stupid places, it'll work.

wolf ... this is fedora ...

OF COURSE they are in stupid places! ...

-------

[root@ace-test-cm Sia-GPU-Miner] $ make
gcc -c -s -std=c11 -Wall -pedantic gpu-miner.c -o gpu-miner.o
gpu-miner.c:20:19: fatal error: CL/cl.h: No such file or directory
 #include <CL/cl.h>

-------

thats error everytime ...

#crysx

chrysophylax
Legendary
*
Offline Offline

Activity: 2814
Merit: 1091


--- ChainWorks Industries ---


View Profile WWW
June 17, 2015, 01:19:02 AM
 #14

git cloned both repo in MinGV (win7 x64 - I always compile miner in such way)
but "make" for gpu-miner/"make release" for sia - doesn`t work.
Code:
xxxx@rap ~/sia
$ make release
go install -a ./...
make: go: Command not found
make: *** [release] Error 127

To make Sia you are going to need a golang compiler, this error means you don't have a go compiler.

Code:
xxxx@rap ~/sia-gpu-miner
$ make
gcc gpu-miner.o network.o -o gpu-miner -lOpenCL -lcurl
gpu-miner.o:gpu-miner.c:(.text+0x13e): undefined reference to `_imp__curl_easy_i
nit'
network.o:network.c:(.text+0x16a): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x18d): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1b0): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1d2): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1df): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x1f5): undefined reference to `_imp__curl_easy_strer
ror'
network.o:network.c:(.text+0x32b): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x34e): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x371): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x39a): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3bc): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3c9): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x3df): undefined reference to `_imp__curl_easy_strer
ror'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: network.o:
 bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [gpu-miner] Error 1

any suggestions?

This makes it look like you don't have libCurl, which is how the miner talks to the daemon.

so how is one to compile sia miner using go? ...

apart from the golang and dependencies that get installed with yum - what are the commands and procedures to compile sia gpuminer? ...

#crysx

Er... you don't. It's not in Go; it's in C.

well - thats what im asking wolf ...

how on earth do you compile this thing ...

it seems WAY different to any of the compiles i have had to do before ...

and reading earlier - taek was saying that you needed the golang compiler to do so ...

so now im confused as ever ...

#crysx

On Linux? A simple make should do it. As long as libcurl and the opencl libs aren't in stupid places, it'll work.

wolf ... this is fedora ...

OF COURSE they are in stupid places! ...

-------

[root@ace-test-cm Sia-GPU-Miner] $ make
gcc -c -s -std=c11 -Wall -pedantic gpu-miner.c -o gpu-miner.o
gpu-miner.c:20:19: fatal error: CL/cl.h: No such file or directory
 #include <CL/cl.h>

-------

thats error everytime ...

#crysx

Right, well, you need to find it, then. If you can build SGMiner, then you will be able to build this.

You'll need to find it, though. First, if OpenCL headers aren't installed, you'll need 'em. They're only needed for building OpenCL - not running it - so you may not have it already. Install them, do a "find /usr -name cl.h", and add that to the include path in the CFLAGS var in the makefile. If you have another problem after this at the link step, it's just another find command away, then add that to the LFLAGS variable in the makefile to make the linker search there.

tanx wolf ...

all good Smiley ...

#crysx

chrysophylax
Legendary
*
Offline Offline

Activity: 2814
Merit: 1091


--- ChainWorks Industries ---


View Profile WWW
June 17, 2015, 03:56:46 AM
Last edit: June 27, 2015, 09:44:12 AM by chrysophylax
 #15

git cloned both repo in MinGV (win7 x64 - I always compile miner in such way)
but "make" for gpu-miner/"make release" for sia - doesn`t work.
Code:
xxxx@rap ~/sia
$ make release
go install -a ./...
make: go: Command not found
make: *** [release] Error 127

To make Sia you are going to need a golang compiler, this error means you don't have a go compiler.

Code:
xxxx@rap ~/sia-gpu-miner
$ make
gcc gpu-miner.o network.o -o gpu-miner -lOpenCL -lcurl
gpu-miner.o:gpu-miner.c:(.text+0x13e): undefined reference to `_imp__curl_easy_i
nit'
network.o:network.c:(.text+0x16a): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x18d): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1b0): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1d2): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x1df): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x1f5): undefined reference to `_imp__curl_easy_strer
ror'
network.o:network.c:(.text+0x32b): undefined reference to `_imp__curl_easy_reset
'
network.o:network.c:(.text+0x34e): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x371): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x39a): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3bc): undefined reference to `_imp__curl_easy_setop
t'
network.o:network.c:(.text+0x3c9): undefined reference to `_imp__curl_easy_perfo
rm'
network.o:network.c:(.text+0x3df): undefined reference to `_imp__curl_easy_strer
ror'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: network.o:
 bad reloc address 0x20 in section `.eh_frame'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
 failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make: *** [gpu-miner] Error 1

any suggestions?

This makes it look like you don't have libCurl, which is how the miner talks to the daemon.

so how is one to compile sia miner using go? ...

apart from the golang and dependencies that get installed with yum - what are the commands and procedures to compile sia gpuminer? ...

#crysx

Er... you don't. It's not in Go; it's in C.

well - thats what im asking wolf ...

how on earth do you compile this thing ...

it seems WAY different to any of the compiles i have had to do before ...

and reading earlier - taek was saying that you needed the golang compiler to do so ...

so now im confused as ever ...

#crysx

On Linux? A simple make should do it. As long as libcurl and the opencl libs aren't in stupid places, it'll work.

wolf ... this is fedora ...

OF COURSE they are in stupid places! ...

-------

[root@ace-test-cm Sia-GPU-Miner] $ make
gcc -c -s -std=c11 -Wall -pedantic gpu-miner.c -o gpu-miner.o
gpu-miner.c:20:19: fatal error: CL/cl.h: No such file or directory
 #include <CL/cl.h>

-------

thats error everytime ...

#crysx

Right, well, you need to find it, then. If you can build SGMiner, then you will be able to build this.

You'll need to find it, though. First, if OpenCL headers aren't installed, you'll need 'em. They're only needed for building OpenCL - not running it - so you may not have it already. Install them, do a "find /usr -name cl.h", and add that to the include path in the CFLAGS var in the makefile. If you have another problem after this at the link step, it's just another find command away, then add that to the LFLAGS variable in the makefile to make the linker search there.

tanx wolf ...

all good Smiley ...

#crysx

Good to hear; can be a minor pain without configure around to find stuff automatically.

exactly ...

if ./configure was there and active - it may have made the whole process a lot easier ...

eitherway - its a learning experience ...

i will be working on setting up a wallet / app on the storage server some time soon - too much on my plate at the moment ... this server will have at least 5TB of RAIDed storage for immediate use / testing ...

so i hope i wont have to go through the same compilation issues as this miner ... its a production system ( that is being decommissioned in our network ) - so i dont want to stuff around with it too much ...

scientific linux  x64 - and rock solid ...

may even setup a separate network for this storage facility altogether ...

#crysx

Taek (OP)
Hero Member
*****
Offline Offline

Activity: 543
Merit: 501



View Profile
June 22, 2015, 05:25:32 AM
 #16

Unfortunately:

A critical security vulnerability has been discovered.

This is a vulnerability that has existed in all versions prior to the current version. Even if you downloaded 0.3.3.2, you should download it again. The original download for 0.3.3.2 was still affected by the security vulnerability.

For obvious reasons, we will not be disclosing the nature of the vulnerability for the next few weeks, we wish to give everyone a chance to upgrade before opening the doors to exploitation. We will say however that it is not related to the blockchain code, it is related to the frontend code.
bitsum
Sr. Member
****
Offline Offline

Activity: 279
Merit: 250


View Profile
June 27, 2015, 07:27:24 AM
 #17

Any windows verison of the gpu miner?

mmmaybe
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile WWW
June 28, 2015, 01:05:54 AM
 #18

Unfortunately:

A critical security vulnerability has been discovered.

This is a vulnerability that has existed in all versions prior to the current version. Even if you downloaded 0.3.3.2, you should download it again. The original download for 0.3.3.2 was still affected by the security vulnerability.

For obvious reasons, we will not be disclosing the nature of the vulnerability for the next few weeks, we wish to give everyone a chance to upgrade before opening the doors to exploitation. We will say however that it is not related to the blockchain code, it is related to the frontend code.

Didn't read this until now... Hope you will not disclosing it in awhile.

May I ask how the exploit was discovered, by internal review or external usage of it?

ffman
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
July 01, 2015, 11:41:56 AM
 #19

HI Taek !
I will not compile, how to begin.
Zenitur
Sr. Member
****
Offline Offline

Activity: 362
Merit: 250


View Profile
July 13, 2015, 02:06:16 PM
 #20

Can I mine by network using few PC's? I don't want to make two wallets.
traitrkng
Newbie
*
Offline Offline

Activity: 40
Merit: 0


View Profile
April 07, 2016, 10:39:30 AM
 #21

Think it's best sto write here instead open new topic.
I downloaded the gnu-miner.exe and relative dependency.
Everything works fine (i see the Mhs and block) my question is how i can take the (eventually) sia coin for blocking reward.
Also, some instructions to install this plugin? https://github.com/droghio/Sia-GPU-Miner/releases/tag/v2-ui
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 12, 2016, 11:31:14 AM
Last edit: July 12, 2016, 02:03:16 PM by Genoil
 #22

Hey,

I got bored with ETH  Grin and decided to give this a spin. Forked the SIA GPU Miner written in C and added a few things:

- MSVC project files for those who want to hack on it using Windows.
- pool support using -Q parameter (works similar to Go Miner)
- took the cl kernel from the GO miner to improve performance (roughly +18% on a 7950)
- x64 Windows binaries zipped up in the bin folder.

Planning to improve nvidia opencl performance using some inline PTX asm. This should bring performance close(r) to the native CUDA miners around.
Perhaps improve the CL performance a bit, but that's a crowded market these days.

If you like poking around in CL, there's an undocumented command line parameter (-k filename) that allows you to provide a custom CL kernel.

https://github.com/Genoil/Sia-GPU-Miner

Have fun!

[edit]

it looks like the optimized kernel using uitn2 needs some work. the client reports found blocks, but my hashrate doesn't show any longer on nanopool. I'll wait a little while, may need to revert back and pay closer attention to what results it gives. stay tuned.

Fixed

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
Amph
Legendary
*
Offline Offline

Activity: 3206
Merit: 1069



View Profile
July 12, 2016, 11:48:23 AM
 #23

Hey,

I got bored with ETH  Grin and decided to give this a spin. Forked the SIA GPU Miner written in C and added a few things:

- MSVC project files for those who want to hack on it using Windows.
- pool support using -Q parameter (works similar to Go Miner)
- took the cl kernel from the GO miner to improve performance (roughly +18% on a 7950)
- x64 Windows binaries zipped up in the bin folder.

Planning to improve nvidia opencl performance using some inline PTX asm. This should bring performance close(r) to the native CUDA miners around.
Perhaps improve the CL performance a bit, but that's a crowded market these days.

If you like poking around in CL, there's an undocumented command line parameter (-k filename) that allows you to provide a custom CL kernel.

https://github.com/Genoil/Sia-GPU-Miner

Have fun!

[edit]

it looks like the optimized kernel using uitn2 needs some work. the client reports found blocks, but my hashrate doesn't show any longer on nanopool. I'll wait a little while, may need to revert back and pay closer attention to what results it gives. stay tuned.

is cuda that unfriendly to code with, that it's better to go with opencl first?
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 12, 2016, 11:59:40 AM
 #24

Hey,

I got bored with ETH  Grin and decided to give this a spin. Forked the SIA GPU Miner written in C and added a few things:

- MSVC project files for those who want to hack on it using Windows.
- pool support using -Q parameter (works similar to Go Miner)
- took the cl kernel from the GO miner to improve performance (roughly +18% on a 7950)
- x64 Windows binaries zipped up in the bin folder.

Planning to improve nvidia opencl performance using some inline PTX asm. This should bring performance close(r) to the native CUDA miners around.
Perhaps improve the CL performance a bit, but that's a crowded market these days.

If you like poking around in CL, there's an undocumented command line parameter (-k filename) that allows you to provide a custom CL kernel.

https://github.com/Genoil/Sia-GPU-Miner

Have fun!

[edit]

it looks like the optimized kernel using uitn2 needs some work. the client reports found blocks, but my hashrate doesn't show any longer on nanopool. I'll wait a little while, may need to revert back and pay closer attention to what results it gives. stay tuned.

is cuda that unfriendly to code with, that it's better to go with opencl first?

No quite the opposite. But I don't have any CUDA GPUs at the moment. Sold my 970 for a good price just before RX 480 hit the market, with the idea of exchanging it for a 1070. But now with 1060 coming, I'll wait for that as I'm only really interested in the architecture, not the performance.

With ethash I learned that some inline PTX assembly in OpenCL can do a lot to match Nvidia OpenCL with CUDA. It means a whole lot of host and device code less to maintain.

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
vaulter
Full Member
***
Offline Offline

Activity: 174
Merit: 100


View Profile
July 12, 2016, 12:18:33 PM
 #25

Hey,

I got bored with ETH  Grin and decided to give this a spin. Forked the SIA GPU Miner written in C and added a few things:

- MSVC project files for those who want to hack on it using Windows.
- pool support using -Q parameter (works similar to Go Miner)
- took the cl kernel from the GO miner to improve performance (roughly +18% on a 7950)
- x64 Windows binaries zipped up in the bin folder.

Planning to improve nvidia opencl performance using some inline PTX asm. This should bring performance close(r) to the native CUDA miners around.
Perhaps improve the CL performance a bit, but that's a crowded market these days.

If you like poking around in CL, there's an undocumented command line parameter (-k filename) that allows you to provide a custom CL kernel.

https://github.com/Genoil/Sia-GPU-Miner

Have fun!

[edit]

it looks like the optimized kernel using uitn2 needs some work. the client reports found blocks, but my hashrate doesn't show any longer on nanopool. I'll wait a little while, may need to revert back and pay closer attention to what results it gives. stay tuned.

is cuda that unfriendly to code with, that it's better to go with opencl first?

No quite the opposite. But I don't have any CUDA GPUs at the moment. Sold my 970 for a good price just before RX 480 hit the market, with the idea of exchanging it for a 1070. But now with 1060 coming, I'll wait for that as I'm only really interested in the architecture, not the performance.

With ethash I learned that some inline PTX assembly in OpenCL can do a lot to match Nvidia OpenCL with CUDA. It means a whole lot of host and device code less to maintain.
How about dual eth+sia on NVIDIA?
What do you think of it?
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 12, 2016, 12:22:08 PM
 #26

Hey,

I got bored with ETH  Grin and decided to give this a spin. Forked the SIA GPU Miner written in C and added a few things:

- MSVC project files for those who want to hack on it using Windows.
- pool support using -Q parameter (works similar to Go Miner)
- took the cl kernel from the GO miner to improve performance (roughly +18% on a 7950)
- x64 Windows binaries zipped up in the bin folder.

Planning to improve nvidia opencl performance using some inline PTX asm. This should bring performance close(r) to the native CUDA miners around.
Perhaps improve the CL performance a bit, but that's a crowded market these days.

If you like poking around in CL, there's an undocumented command line parameter (-k filename) that allows you to provide a custom CL kernel.

https://github.com/Genoil/Sia-GPU-Miner

Have fun!

[edit]

it looks like the optimized kernel using uitn2 needs some work. the client reports found blocks, but my hashrate doesn't show any longer on nanopool. I'll wait a little while, may need to revert back and pay closer attention to what results it gives. stay tuned.

is cuda that unfriendly to code with, that it's better to go with opencl first?

No quite the opposite. But I don't have any CUDA GPUs at the moment. Sold my 970 for a good price just before RX 480 hit the market, with the idea of exchanging it for a 1070. But now with 1060 coming, I'll wait for that as I'm only really interested in the architecture, not the performance.

With ethash I learned that some inline PTX assembly in OpenCL can do a lot to match Nvidia OpenCL with CUDA. It means a whole lot of host and device code less to maintain.
How about dual eth+sia on NVIDIA?
What do you think of it?

I *think* of it, just like everybody  Grin.

Problem with the shares seems fixed. The kernel is fine, it had something to do with the query string and ampersands...

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 12, 2016, 09:49:10 PM
 #27

I'm curious what this does on CUDA devices:

In the cl kernel, replace the ror64 with this and change the calls to ror64_2 to ror64:

Code:
static uint2 ror64(const uint2 a, const int offset) {
uint2 result;
if (offset < 32) {
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.x) : "r"(a.x), "r"(a.y), "r"(offset));
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.y) : "r"(a.y), "r"(a.x), "r"(offset));
}
else {
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.x) : "r"(a.y), "r"(a.x), "r"(offset));
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.y) : "r"(a.x), "r"(a.y), "r"(offset));
}
return result;
}

I was on AWS to try it but then realized I needs Compute 3.5 at least..

Is there any reasonably priced Maxwell in the cloud yet?

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
miningpoolhub
Legendary
*
Offline Offline

Activity: 1456
Merit: 1006

Mining Pool Hub


View Profile WWW
July 13, 2016, 12:31:47 AM
 #28

Any plan for stratum support?

miningpoolhub would like to support new stratum protocol and open siacoin pool.

Mining Pool Hub - https://miningpoolhub.com
miningpoolhub
Legendary
*
Offline Offline

Activity: 1456
Merit: 1006

Mining Pool Hub


View Profile WWW
July 13, 2016, 01:55:43 AM
 #29

Any plan for stratum support?

miningpoolhub would like to support new stratum protocol and open siacoin pool.

I just request one thing for the spec. Pass the NETWORK diff, as well as the share diff, in there.

If working miner comes out, I can test and open the pool.
Maybe can you implement that?

Mining Pool Hub - https://miningpoolhub.com
cijulangboy
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
July 13, 2016, 04:00:56 AM
 #30

will it work with standard sgminer/ccminer (and getwork/stratum stuff) or is it something entirely different ?



It's entirely different. You can find binaries here: https://github.com/NebulousLabs/Sia-GPU-Miner/releases

Its working now to me either , but the rig shows activity only on one of the cards. Speed is about 32MH/s


ok thanks for information
sp_
Legendary
*
Offline Offline

Activity: 2912
Merit: 1087

Team Black developer


View Profile
July 13, 2016, 06:59:47 AM
 #31

Klaus_t's cuda port is doing 355MHASH on the 750ti(64 bit cuda 8.0). Genoils opencl kernal does around 303MHASH.
But the klaus_t version is getting alot of reject's on the pool.

https://github.com/KlausT/Sia-CUDA-Miner


Team Black Miner (ETHB3 ETH ETC VTC KAWPOW FIROPOW MEOWPOW + dual mining + tripple mining.. https://github.com/sp-hash/TeamBlackMiner
Amph
Legendary
*
Offline Offline

Activity: 3206
Merit: 1069



View Profile
July 13, 2016, 07:04:12 AM
 #32

klaus version still need more than one instance, should be an easy fix for someone that know how to code...
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 13, 2016, 07:06:34 AM
 #33

Klaus_t's cuda port is doing 355MHASH on the 750ti(64 bit cuda 8.0). Genoils opencl kernal does around 303MHASH.
But the klaus_t version is getting alot of reject's on the pool.

https://github.com/KlausT/Sia-CUDA-Miner


What does it do with the funnel shift asm? Or did you already paste that in?

(btw it is NOT my kernel. i only provided windows build files and added pool support.)

my fork also is still single threaded. i wasn't actually planning to build a proper miner around it. just a bit of kernel play.

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
sp_
Legendary
*
Offline Offline

Activity: 2912
Merit: 1087

Team Black developer


View Profile
July 13, 2016, 07:07:00 AM
 #34

Wall timings for the 750ti.

Genoil: 60watt @ 303MHASH
Klaus_t:40watt @ 356MHASH

Team Black Miner (ETHB3 ETH ETC VTC KAWPOW FIROPOW MEOWPOW + dual mining + tripple mining.. https://github.com/sp-hash/TeamBlackMiner
sp_
Legendary
*
Offline Offline

Activity: 2912
Merit: 1087

Team Black developer


View Profile
July 13, 2016, 07:22:03 AM
 #35

Klaus_t's cuda port is doing 355MHASH on the 750ti(64 bit cuda 8.0). Genoils opencl kernal does around 303MHASH.
But the klaus_t version is getting alot of reject's on the pool.
https://github.com/KlausT/Sia-CUDA-Miner
What does it do with the funnel shift asm? Or did you already paste that in?
(btw it is NOT my kernel. i only provided windows build files and added pool support.)
my fork also is still single threaded. i wasn't actually planning to build a proper miner around it. just a bit of kernel play.

I managed to add some more hash by rewriting to uint2 like this:

Code:
#undef rotr64
#undef __byte_perm_64
#undef __swap_hilo

__inline__ __device__ uint2 rotr64(const uint2 a, const int offset)
{
uint2 result;
if (offset < 32) {
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.x) : "r"(a.x), "r"(a.y), "r"(offset));
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.y) : "r"(a.y), "r"(a.x), "r"(offset));
}
else {
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.x) : "r"(a.y), "r"(a.x), "r"(offset));
asm("shf.r.wrap.b32 %0, %1, %2, %3;" : "=r"(result.y) : "r"(a.x), "r"(a.y), "r"(offset));
}
return result;
}

__device__ __forceinline__
uint2 __byte_perm_64(const uint2 source, const uint32_t grab1, const uint32_t grab2)
{
uint2 r;
asm("prmt.b32 %0, %1, %2, %3;" : "=r"(r.x) : "r"(source.x), "r"(source.y), "r"(grab1));
asm("prmt.b32 %0, %1, %2, %3;" : "=r"(r.y) : "r"(source.x), "r"(source.y), "r"(grab2));
return r;
}

__device__ __forceinline__
uint2 __swap_hilo(const uint2 source)
{
uint2 r;

r.x = source.y;
r.y = source.x;

return r;
}


Code:
__global__ void __launch_bounds__(blocksize, 4) nonceGrind_SP(const uint2 * __restrict__ headerIn, uint2 * __restrict__ hashOut, uint2 * __restrict__ nonceOut, const uint2 * __restrict__ v1, uint32_t target)
{
uint2 header[10], h[4], v[16];

uint32_t id = (blockDim.x * blockIdx.x + threadIdx.x)*npt;

#pragma unroll
for (int i = 0; i < 10; i++)
header[i] = headerIn[i];

for (int n = id; n < id + npt; n++)
{
((uint32_t*)header)[8] = n;
v[2] = vectorize(0x5BF2CD1EF9D6B596u) + header[4]; v[14] = __swap_hilo(~vectorize(0x1f83d9abfb41bd6bu) ^ v[2]); v[10] = vectorize(0x3c6ef372fe94f82bu) + v[14]; v[6] = __byte_perm_64(vectorize(0x1f83d9abfb41bd6bu) ^ v[10], 0x6543, 0x2107);
v[2] = v[2] + v[6] + header[5]; v[14] = __byte_perm_64(v[14] ^ v[2], 0x5432, 0x1076); v[10] = v[10] + v[14]; v[6] = rotr64(v[6] ^ v[10], 63);
v[3] = vectorize(0x130C253729B586Au) + header[6]; v[15] = __swap_hilo(vectorize(0x5be0cd19137e2179u) ^ v[3]); v[11] = vectorize(0xa54ff53a5f1d36f1u) + v[15]; v[7] = __byte_perm_64(vectorize(0x5be0cd19137e2179u) ^ v[11], 0x6543, 0x2107);
v[3] = v[3] + v[7] + header[7]; v[15] = __byte_perm_64(v[15] ^ v[3], 0x5432, 0x1076); v[11] = v[11] + v[15]; v[7] = rotr64(v[7] ^ v[11], 63);
v[0] = v1[0] + v1[5] + header[8]; v[15] = __swap_hilo(v[15] ^ v[0]); v[10] = v[10] + v[15]; v[5] = __byte_perm_64(v1[5] ^ v[10], 0x6543, 0x2107);
v[0] = v[0] + v[5] + header[9]; v[15] = __byte_perm_64(v[15] ^ v[0], 0x5432, 0x1076); v[10] = v[10] + v[15]; v[5] = rotr64(v[5] ^ v[10], 63);

....

etc


You Also need to copy some functions from ccminer.

Code:

__device__ __forceinline__ uint64_t devectorize(uint2 x)
{
uint64_t result;
asm("mov.b64 %0,{%1,%2}; \n\t"
: "=l"(result) : "r"(x.x), "r"(x.y));
return result;
}


__device__ __forceinline__ uint2 vectorize(const uint64_t x)
{
uint2 result;
asm("mov.b64 {%0,%1},%2; \n\t"
: "=r"(result.x), "=r"(result.y) : "l"(x));
return result;
}

static __device__ __forceinline__ uint2 operator^ (uint2 a, uint32_t b) { return make_uint2(a.x^ b, a.y); }
static __device__ __forceinline__ uint2 operator^ (uint2 a, uint2 b) { return make_uint2(a.x ^ b.x, a.y ^ b.y); }
static __device__ __forceinline__ uint2 operator& (uint2 a, uint2 b) { return make_uint2(a.x & b.x, a.y & b.y); }
static __device__ __forceinline__ uint2 operator| (uint2 a, uint2 b) { return make_uint2(a.x | b.x, a.y | b.y); }
static __device__ __forceinline__ uint2 operator~ (uint2 a) { return make_uint2(~a.x, ~a.y); }
static __device__ __forceinline__ void operator^= (uint2 &a, uint2 b) { a = a ^ b; }
static __device__ __forceinline__ uint2 operator+ (uint2 a, uint2 b)
{
uint2 result;
asm(
"add.cc.u32 %0,%2,%4; \n\t"
"addc.u32 %1,%3,%5;   \n\t"
: "=r"(result.x), "=r"(result.y) : "r"(a.x), "r"(a.y), "r"(b.x), "r"(b.y));
return result;
}

static __device__ __forceinline__ uint2 operator+ (uint2 a, uint32_t b)
{
uint2 result;
asm("add.cc.u32 %0,%2,%4; \n\t"
"addc.u32 %1,%3,%5;   \n\t"
: "=r"(result.x), "=r"(result.y) : "r"(a.x), "r"(a.y), "r"(b), "r"(0));
return result;
}


static __device__ __forceinline__ uint2 operator- (uint2 a, uint32_t b)
{
uint2 result;
asm("sub.cc.u32 %0,%2,%4; \n\t"
"subc.u32 %1,%3,%5;   \n\t"
: "=r"(result.x), "=r"(result.y) : "r"(a.x), "r"(a.y), "r"(b), "r"(0));
return result;
}


static __device__ __forceinline__ uint2 operator- (uint2 a, uint2 b)
{
uint2 result;
asm("sub.cc.u32 %0,%2,%4; \n\t"
"subc.u32 %1,%3,%5;   \n\t"
: "=r"(result.x), "=r"(result.y) : "r"(a.x), "r"(a.y), "r"(b.x), "r"(b.y));
return result;
}

Team Black Miner (ETHB3 ETH ETC VTC KAWPOW FIROPOW MEOWPOW + dual mining + tripple mining.. https://github.com/sp-hash/TeamBlackMiner
sp_
Legendary
*
Offline Offline

Activity: 2912
Merit: 1087

Team Black developer


View Profile
July 13, 2016, 07:30:24 AM
 #36

But the klaus_t version is getting alot of reject's on the pool.

looks like the rejects are gone with this small code change.
There seems to be a bug in the multinonce retrieval. Here I only return only one solution per iteration, and it works.

Code:

if (*((uint32_t*)h) <= target)
{
int i;
/* uint64_t tmp = devectorize(header[4]);
for (i = 0; i < MAXRESULTS; i++)
{
tmp = atomicCAS(&((uint64_t *)nonceOut)[i], 0, tmp);
if (tmp == 0)
break;
}
*/
nonceOut[i] = header[4];
// uint64_t tmp = devectorize(header[4])

hashOut[i * 4] = h[0];
v[1] = v[1] + v[6] + header[0]; v[12] = __swap_hilo(v[12] ^ v[1]); v[11] = v[11] + v[12];
v[1] = v[1] + __byte_perm_64(v[6] ^ v[11], 0x6543, 0x2107) + header[2];
v[3] = v[3] + v[4] + header[5]; v[14] = __swap_hilo(v[14] ^ v[3]); v[9] = v[9] + v[14];
v[3] = v[3] + __byte_perm_64(v[4] ^ v[9], 0x6543, 0x2107) + header[3];
hashOut[i * 4 + 1] = vectorize(0xbb67ae8584caa73b) ^ v[1] ^ (v[9] + __byte_perm_64(v[14] ^ v[3], 0x5432, 0x1076));
hashOut[i * 4 + 2] = vectorize(0x3c6ef372fe94f82b) ^ v[2] ^ (v[10] + __byte_perm_64(v[15] ^ v[0], 0x5432, 0x1076));
hashOut[i * 4 + 3] = vectorize(0xa54ff53a5f1d36f1) ^ v[3] ^ (v[11] + __byte_perm_64(v[12] ^ v[1], 0x5432, 0x1076));
return;
}

Team Black Miner (ETHB3 ETH ETC VTC KAWPOW FIROPOW MEOWPOW + dual mining + tripple mining.. https://github.com/sp-hash/TeamBlackMiner
marvykkio
Hero Member
*****
Offline Offline

Activity: 798
Merit: 1000


View Profile
July 13, 2016, 01:13:23 PM
 #37

because everyone crazy for siacoin? is worth nothing

1 SC = 0.00000091 BTC
 Huh Huh
Amph
Legendary
*
Offline Offline

Activity: 3206
Merit: 1069



View Profile
July 13, 2016, 01:23:32 PM
 #38

because everyone crazy for siacoin? is worth nothing

1 SC = 0.00000091 BTC
 Huh Huh

because you can mine a shitton, with one stupid rig of six gpu you can do almost 30k coins a day

keep mining useless ethereum which is not profitable by a long shot anymore...
BTCBusinessConsult
Sr. Member
****
Offline Offline

Activity: 546
Merit: 250


Active Trading on EPIC5k and Spectre.Ai


View Profile WWW
July 13, 2016, 01:31:02 PM
 #39

So is there a EXE for those of us who want to hobby mine this and have ZERO understanding of the last 3 pages of text? lol  Grin Grin

EPIC5k Trading on https://spectre.ai/?ref=PassiveIncome. Paying WEEKLY rewards in ETH since 2017. 100% FRAUD FREE Binary Trading Platform. $SXDT. Ask me about the ONLY smart options trading platform with 400% payouts, and their unique EPIC5000 trading system.
navydude
Sr. Member
****
Offline Offline

Activity: 283
Merit: 250


View Profile
July 13, 2016, 02:36:20 PM
 #40

So is there a EXE for those of us who want to hobby mine this and have ZERO understanding of the last 3 pages of text? lol  Grin Grin

Ummm Yeah! Me too.

ldw-com
Full Member
***
Offline Offline

Activity: 229
Merit: 100


View Profile
July 13, 2016, 02:45:01 PM
 #41

So is there a EXE for those of us who want to hobby mine this and have ZERO understanding of the last 3 pages of text? lol  Grin Grin

Ummm Yeah! Me too.

Gominer exe for pools

https://github.com/Eliovp/gominer/tree/Eliovp-binaries


Genoils exe

http://cryptomining-blog.com/8089-new-sia-gpu-miner-for-opencl-forked-by-genoil-now-available/


Greetings
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 13, 2016, 03:47:39 PM
 #42

Mind you I'm not responsible for what Cryptomining blog posts. My fork is far from production ready. It's more like a sketch that actually happens to mine blocks and shares. Go with the GO miner, it is far more complete.

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
miningpoolhub
Legendary
*
Offline Offline

Activity: 1456
Merit: 1006

Mining Pool Hub


View Profile WWW
July 13, 2016, 05:33:10 PM
 #43

Mind you I'm not responsible for what Cryptomining blog posts. My fork is far from production ready. It's more like a sketch that actually happens to mine blocks and shares. Go with the GO miner, it is far more complete.

Hi Genoil
Happy to see you at this forum.
Is there any chance of implementing stratum enabled miner in near future?

Current polling (long-polling from some mod) is quite harming performance of server and client both.
I would like to open stratum compatible Siacoin pool but there's no stratum supported miner yet.

As there's no standard stratum protocol for Siacoin, just adapting ethereum stratum protocol would be good. (Luckily they are quite similar)
("Nicehash compatible stratum" or "stratum-mining-proxy from coinotron" protocol seems quite good)

Mining Pool Hub - https://miningpoolhub.com
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 13, 2016, 06:56:23 PM
 #44

Mind you I'm not responsible for what Cryptomining blog posts. My fork is far from production ready. It's more like a sketch that actually happens to mine blocks and shares. Go with the GO miner, it is far more complete.

Hi Genoil
Happy to see you at this forum.
Is there any chance of implementing stratum enabled miner in near future?

Current polling (long-polling from some mod) is quite harming performance of server and client both.
I would like to open stratum compatible Siacoin pool but there's no stratum supported miner yet.

As there's no standard stratum protocol for Siacoin, just adapting ethereum stratum protocol would be good. (Luckily they are quite similar)
("Nicehash compatible stratum" or "stratum-mining-proxy from coinotron" protocol seems quite good)

Hey,

Not in the near future. I'm close to taking a long break. If SC is still hot when I return and nobody else did, I'll consider it.

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
antantti
Legendary
*
Offline Offline

Activity: 1176
Merit: 1015


View Profile
July 13, 2016, 09:06:42 PM
 #45

Hey,

Not in the near future. I'm close to taking a long break. If SC is still hot when I return and nobody else did, I'll consider it.

Genoil,

If you ask me (you don't) that 50 eth could be much better spent during a long break instead of buying some lousy gpu's...
duts_bg
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile
July 13, 2016, 09:27:05 PM
 #46

Any ideas why i get only 420MH on saphhire x280?
What can i try to fix this?
It stays at 100% Usage

SHIFT is a distributed P2P network that incentivizes decentralization for secure content publishing and storage.
Genoil
Sr. Member
****
Offline Offline

Activity: 438
Merit: 250


View Profile
July 13, 2016, 10:24:13 PM
 #47

Hey,

Not in the near future. I'm close to taking a long break. If SC is still hot when I return and nobody else did, I'll consider it.

Genoil,

If you ask me (you don't) that 50 eth could be much better spent during a long break instead of buying some lousy gpu's...

Bought camping gear Grin

ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d
BTC: 1Nu2fMCEBjmnLzqb8qUJpKgq5RoEWFhNcW
antantti
Legendary
*
Offline Offline

Activity: 1176
Merit: 1015


View Profile
July 13, 2016, 11:00:56 PM
 #48

Hey,

Not in the near future. I'm close to taking a long break. If SC is still hot when I return and nobody else did, I'll consider it.

Genoil,

If you ask me (you don't) that 50 eth could be much better spent during a long break instead of buying some lousy gpu's...

Bought camping gear Grin

There goes my baby... enjoy your break!!!
Pages: 1 2 3 [All]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!