Comments (6)
Hmm, that's not good. I'll have a look.
from polaronmobility.jl.
Oh, I think that the issue is that the Optim minimisation is showing the full trace.
from polaronmobility.jl.
The method is also different as I removed minimisation constraints (Fminbox etc.) whilst generalising to multiple variational parameters. This is no longer required as I found a way to add the constraints back.
from polaronmobility.jl.
So I've fixed some parts of this, but I still see a massive slowdown for the Julia v1 tests. Julia 1.7 runs within a couple of minutes. Must be one of the dependencies.
from polaronmobility.jl.
Interesting that all the slow down is in 'MultiplePhonons' code, do you have an idea of which part of the code is now running so slow? If we can avoid using that temperamental branch, it may be for the best.
from polaronmobility.jl.
The performance regression has been countered. I think the issue, in the end, was a combination of things:
- Multithreading combined with the variation code that minimises the multiple phonon version of the polaron energy. I am not sure why this combination grinds to a halt. Potential data race happening?
- I previously removed
rtol
in the quadgk integrations in the memory function code. This means that the integrals take significantly longer to compute. I think it is okay to include this convergence check at this level of the code.
A note on the memory function calculation. This is used for the complex impedance and mobility calculations. I tried different relative tolerances for the memory function integral and saw little to no difference in the impedance and mobility for rtol=1e-4 compared to lower tolerances. However, limiting the tolerance gives a considerable speed boost. rtol=1e-3 is okay, but sometimes numerical instabilities appear in the mobility at this tolerance so I settled on rtol=1e-4.
Edit: Just another note that potential data race in (1) seems to happen in Julia version 1.0 and 1.8, but not Julia 1.7.
from polaronmobility.jl.
Related Issues (14)
- JOSS Review: Documentation HOT 19
- JOSS Review: README.md HOT 2
- JOSS review: readme HOT 2
- Susceptibility / Im χ HOT 1
- Optical absorption / Re χ HOT 1
- Multiple phonon branches
- Sort out / delete PlotPolaron
- Type instability in the Polaron type
- Fix MyBinder HOT 2
- Register v.2.0.0 HOT 10
- Update documentation for v2
- Example Pluto notebook on Binder for v.2
- TagBot trigger issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polaronmobility.jl.