Giter Site home page Giter Site logo

bsgs-cuda's Introduction

BSGS cuda (nvidia card only) and Windows x64

Usage:
-h Help
-t Number of GPU threads, ex. -t 256
-b Number of GPU blocks, ex. -b 68, set equil to the SM number of your card
-p Number of pparam(value 256 is optimal), ex. -p 256
-d Select GPU IDs, ex. -d 1,2,3
-pb Set single uncompressed/compressed pubkey for searching
-pk Range start from, ex. -pk 0x1
-pke End range, ex. -pke 0x100
-w Set number of baby items 2^, ex. -w 22 mean 2^22 points
-htsz Set number of HashTable 2^, ex. -htsz 25, default 25
-infile Set file with pubkey for searching in uncompressed/compressed format (search sequential), one pubkey per line
-wl Set recovery file from which the state will be loaded
-wt Set timer for autosaving current state, default 180s
Current state is always saved to file currentwork.txt
If app crash or you stop app, you can start working from the last saved state. Provided the launch configuration has not been changed.

Note! set minimal -htsz value depending on -w

-w 30 -htsz 28 need around 32GB of RAM to generate all arrays
-w 29 -htsz 28
-w 28 -htsz 27
-w 27 -htsz 25
if you set low -htsz value then you can get error during sorting HT, increase -htsz to solve issue.

-w 30 good for GPU with memory 11Gb
-w 29 good for GPU with memory 8Gb
-w 28 or -w27 good for GPU with memory 6Gb

All arrays(Baby, Giant) and hashtable saved to the disk for fast spinup solver next time (if parameters will not changed). After you have the arrays saved, you will need less RAM to launch.
Example bat file for single pubkey searching:
SET pub=59A3BFDAD718C9D3FAC7C187F1139F0815AC5D923910D516E186AFDA28B221DC994327554CED887AAE5D211A2407CDD025CFC3779ECB9C9D7F2F1A1DDF3E9FF8
SET rangestart=0x49dccfd96dc5df56487436f5a1b18c4f5d34f65ddb48cb5e0000000000000000
SET thread_size=512
SET block_size=68
SET pparam_size=256
SET items_size=26

bsgscudaHT_1_7_2.exe -t %thread_size% -b %block_size% -p %pparam_size% -pb %pub% -pk %rangestart% -w %items_size%
pause

Example bat file for sequential searching pubkeys from file:
SET rangestart=0x49dccfd96dc5df56487436f5a1b18c4f5d34f65ddb48cb5e0000000000000000
SET rangeend=0x49dccfd96dc5df56487436f5a1b18c4f5d34f65ddb48cb5effffffffffffffff
SET thread_size=512
SET block_size=68
SET pparam_size=256
SET items_size=26

bsgscudaHT_1_7_2.exe -t %thread_size% -b %block_size% -p %pparam_size% -pk %rangestart% -pke %rangeend% -w %items_size% -infile PUBS.txt
pause

Solved pubkeys will be saved to the win.txt file

Compilation

To compile the program you need Purebasic v5.31, download from https://www.purebasic.com

bsgs-cuda's People

Contributors

etayson avatar unclevito2017 avatar

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.