Skip to content
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

Document efficient ways to parallelise reflectometry fitting programs #44

Open
bmaranville opened this issue Jun 18, 2020 · 5 comments
Open

Comments

@bmaranville
Copy link
Contributor

No description provided.

@bmaranville
Copy link
Contributor Author

Comments from the workshop:
Do you parallelize this over the model, or over the NR?

@aljosahafner
Copy link

aljosahafner commented Mar 13, 2021

If a program is written in Python and has a well-written (compliant) kernel, then numba package is a very good way of compiling Python code with LLVM and then also parallelising.

@andyfaff
Copy link
Collaborator

The reflectivity calculation can be vectorised quite easily, so I'm not sure how much improvement you'd see when using numba over numpy (if one takes care to avoid temp arrays). I've messed around a little bit with numba and could never get it to outperform numpy.

@aljosahafner
Copy link

Sure, you're right! When I was working on off-specular calculation I had to use the proposed solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants