Giter Site home page Giter Site logo

Comments (2)

porcuquine avatar porcuquine commented on September 9, 2024

The historical reason for these traits is that originally we had specialized ways of building the trees on the GPU. In theory this could give better throughput by minimizing data being moved on and off the GPU. For example, the entire top of the tree should be buildable on the GPU without needing to move hashes back and forth to the CPU.

However, in practice (as then implemented at least), this wasn't showing benefits and led to less predictable use of RAM. So we moved to a simpler implementation where only batch hashing happens on the GPU, with the idea that batch sizes can be optimized to take advantage of GPU throughput.

If you don't anticipate ever wanting to revisit this in pursuit of even better throughput, we could change it. I suspect that with the right effort, it's probably still possible to do better — but I don't feel strongly that we must do so. If we intend to try at some point, it probably makes sense to retain the traits.

from neptune.

vmx avatar vmx commented on September 9, 2024

Thanks for the background information. I actually just thought about doing more of the tree building on the GPU as I think we could do better. As I'd love to take a look at that (although I probably won't have the time), let's keep them for now.

from neptune.

Related Issues (20)

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.