Giter Club home page Giter Club logo

Comments (7)

antoine-levitt avatar antoine-levitt commented on August 17, 2024

Actually I'm not sure if it's the precompilation or just the computation, should investigate (profile).

from dftk.jl.

LaurentVidal95 avatar LaurentVidal95 commented on August 17, 2024

Thanks for the basic setup ! I will play a bit with it. I'll let you know as soon as I've been able to do the profiling.

from dftk.jl.

LaurentVidal95 avatar LaurentVidal95 commented on August 17, 2024

From the profiling a lot of the time seems to be devoted to the computation of the Hessian involved in the ForwardDiff rule applying to the self_consistent_field function. But I'm not sure that I'm reading the graph correctly.

from dftk.jl.

antoine-levitt avatar antoine-levitt commented on August 17, 2024

Can you maybe post a screenshot? If that's the case it's actually computation and not compilation and we should probably optimize it.

from dftk.jl.

mfherbst avatar mfherbst commented on August 17, 2024

Cool, looks similar to what I did for the lattice constant sensitivities.

We can probably simplify a bit with proper update constructors or set lattice functions for planewavebasis, which is needed for lattice optimisations as well.

Regarding performance: The tolerances in solve omega+k are not yet tuned very well and parallelisation could be improved, but maybe there are more obvious things, too.

from dftk.jl.

LaurentVidal95 avatar LaurentVidal95 commented on August 17, 2024

Sorry for the delay ! I'm not sure a screen of the flame graph is readable but here is the file generated by ProfileView. Apparently you can just do "ProfileView.view(nothing)" and then open the file for an interactive flame graph !
HF_elastic_constant_pofiling.zip

from dftk.jl.

antoine-levitt avatar antoine-levitt commented on August 17, 2024

Nothing weird here, just lots of ffts and matmuls, so yeah looks like it needs some finetuning

from dftk.jl.

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.