Coder Social home page Coder Social logo

zmine's Introduction

zmine

A GPU miner for the Zcash cryptocurrency.

This project is licensed under the TGPPL. See LICENSE for more information.

This project is currently under development. It is not intended for end users before the 28th (zcashminers.org contest close). Please report any issues you find on this repository.

Building

mkdir libs
cd libs

Download and build libsodium in the `libs/ directory.

cd ..
make

Running

export LD_LIBRARY_PATH=`pwd`/libs/libsodium-1.0.11/src/libsodium/.libs/:/usr/local/cuda-7.5/lib64
./a.out

TODO

  • Eliminate ij_buf in favor of indices per hash.
    • Merge two sorted lists and each xor iteration.
    • Iterate (N-1) to check for distinct indices.
  • Integrate Zcash testing API.
  • Change lookup table to use same method as final functions.

Build Status

zmine's People

Contributors

tacixat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zmine's Issues

DeviceRadixSort::SortPairs(0): invalid device function

I get an error at runtime.

Looks like a dependency to CUB is needed? Or is it thrust?

cuda@ale-i5:~/Desktop/douggard$ ./a.out 
INDICES_PER: 2
HASH_LEN: 50
CBIT_LEN: 20
Generating 1048576 hashes...
ERROR: invalid device function 
Expanded size * 5: 314572800
Expanded size: 62914560
terminate called after throwing an instance of 'thrust::system::system_error'
  what():  after cub_::DeviceRadixSort::SortPairs(0): invalid device function

csolv.h:5:25: fatal error: thrust/sort.h: No such file or directory

When trying to build zmine I get following error:

$make     
rm -rf *.o a.out
nvcc -lineinfo -arch=compute_52 -code=sm_52 -I/home/frog/zmine/libs/libsodium-1.0.11/src/libsodium/include/ -I/usr/local/cuda/include/ -c cblake2b.cu -c cutil.cu -c cxor.cu -c cfinal.cu 
g++ -g  main.c cblake2b.o cutil.o cxor.o cfinal.o -I/home/frog/zmine/libs/libsodium-1.0.11/src/libsodium/include/ -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64 -lcuda -lcudart -L/home/frog/zmine/libs/libsodium-1.0.11/src/libsodium/.libs/ -lsodium
In file included from /usr/include/endian.h:21:0,
                 from main.c:5:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
In file included from main.c:9:0:
csolv.h:5:25: fatal error: thrust/sort.h: No such file or directory
 #include <thrust/sort.h>
                         ^
compilation terminated.
make: *** [Makefile:17: program] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.