Git Product home page Git Product logo

chia_network.nemo1369-vdf-track1's Introduction

Chia Network VDF

Implementation Description

This particular implementation contains both optimizations, algorithmic and hardware-driven.

Algorithmic Optimizations

This particular implementation advances the 'NUDPL'-enabled implementation with removing redundant copying and type-conversions.

Reduction steps are replaced with approximation algorithm proposed in the round 1 with the only difference - termination condition threshold is increased to 64 bit. That is done so because of NUDPL-generated coefficients are far more smaller, than 2048 bit, the reduction itself is required to "smooth" them to fully reduced ones. Such an approximation algorithm usage in combination with NUDPL makes the performance better.

NUDPL itself optimized for particular GCD values := 1, so no redundant divisions are required.

Normalization steps are optimized for handling particular values of already normalized form with no redundant copying.

Hardware Optimizations

This particular implementation uses the custom-crafted libmpir fork (https://github.com/nemo1369/mpir.git) with advanced Skylake architecture support and extensive vector-processing instructions usage.

Further Improvements

Possible GCD parallel computations showed no significant performance improvements (because of numbers size is relatively small and processors amount requirement is relatively huge), but this still can be considered for some implementation for GPU with "A parallel extended GCD algorithm" by Sidi Mohamed Sedjelmaci usage.

The best implementation of this competition is going to be embedded into a more generic VDF C++ library (with bindings in various languages) by Nil Foundation (https://github.com/nilfoundation/vdf). For now it contains this implementation.

chia_network.nemo1369-vdf-track1's People

Contributors

nemothenoone avatar

Watchers

 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.