-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallel calculation of PDOS and (fat)bands #367
Conversation
Please remove commits changing Also, it should already be there in the latest files commit? |
I don't understand how the submodule works exactly, sometimes things get pushed, sometimes they don't 😕 |
Yeah, I generally do a commit only with the hash to ensure I do stuff correctly. |
Yes, I thought of this too, but then a user will get this warning even if everything they want to do is to plot a geometry or plot the bands from a .bands file :( |
true... hmm... Perhaps could we make it a decorator to make it portable and use the same strings, I think the warning system should catch that as "same warning"? |
Which may cause unnecesary confusion and will probably be seen as a drawback for using the visualization module: "I don't use it because it says it might break my computer, I'd rather be safe" 😅 |
They will so too if it is needlessly slow if they are oversubscribing. So no good solution.... :( But probably the decorator is the best way? |
Yes that definitely makes sense, although it is not until the point where I wrote it now that you are 100% sure the calculation is going to happen. Otherwise they will get the warning because the entry point has been attempted even if it's not going to work because there's no Hamiltonian. |
Probably the warning could be issued when you do |
And what about using a context manager that sets Something similar to https://stackoverflow.com/a/34333710/11991536 |
Hmm. True. I don't know of the best place... In principle BLAS is used many, many places. You could for instance imagine a user doing If it isn't a warning but an |
Perhaps we should make a 2nd round of this warning, so feel free to leave it out here. Otherwise lets keep it as is and get it in. |
I was thinking it could set the
I'll remove it for now then. |
I've removed all spin indices for spin kinds other than unpolarized and all the tests pass, so I'd say this is ready. |
I found a bug, don't merge yet! |
Now it's all good! Added some more tests to make sure this bug is catched in the future :) |
Now if
pathos
is available, PDOS and (fat)bands calculated from a hamiltonian are computed in parallel over k-points using the functionality of theBrillouinZone
applies.If someone doesn't want parallelization they can control it through the
SISL_NPROCS
env variable by setting it to1
, so I didn't add any settings for it.