Code Monkey home page Code Monkey logo

Comments (3)

peastman avatar peastman commented on August 29, 2024

The current CPU code uses an O(N^2) algorithm to build a neighbor list that get used for computing angles. I plan to do the same for CUDA.

It would be straightforward to replace the O(N^2) search with a voxel algorithm or something similar. Whether that's a good idea depends on what we're optimizing for. Our initial requirements specified that it should be optimized for systems of around 100 atoms. At that size, the full search is quite fast and doing anything more complicated would likely end up being slower. As systems get larger, it will become more of a bottleneck. I expect that by around 1000 atoms it will be significant, but until I get the CUDA implementation done and profile it I won't know. Perhaps even at that size most of the time will still be spent in the angles. We'll see.

from nnpops.

raimis avatar raimis commented on August 29, 2024

Maybe we should consider more modularity. The neighbour list should be a separate operation from the featurizer by itself. So in the future, it is straightforward to replace it with a more efficient implementation if needed and reuse for other NNPs. For example, the SchNet implementation would benefit greatly from an efficient neighbour list operation.

from nnpops.

peastman avatar peastman commented on August 29, 2024

My goal in the ANI implementation is performance, not modularity. We can have a separate stand-alone neighbor list implementation if that would be useful. ANI has a few properties that make it best to handle separately. 1) It has separate cutoffs for radial and angular features. 2) Most of the time is spent computing the angular features, so it's important to have a neighbor list with the shorter cutoff just for them. 3) Combining the neighbor list building with the radial features lets us build the neighbor list at minimal extra cost.

from nnpops.

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.