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

Vectorization of passband computations #972

Conversation

aprsa
Copy link
Contributor

@aprsa aprsa commented Oct 25, 2024

Extinction has been computed serially, which caused the computations to take a long time (~1 day per passband). The new vectorized approach for both blackbody atmospheres and model atmospheres speeds this up to ~5 minutes per passband. The generated tables were checked for correctness and they're indistinguishable from the previous runs to machine precision.

aprsa added 4 commits October 23, 2024 12:56
It still runs the loops, but it computes auxiliary quantities outside of the loop.
This brings down per-passband computation from ~1 day to ~5 minutes.
@aprsa aprsa added the optimization Optimizes code without fundamentally changing any functionality label Oct 25, 2024
@aprsa aprsa requested a review from Raindogjones October 25, 2024 01:28
@aprsa aprsa self-assigned this Oct 25, 2024
@kecnry kecnry merged commit 6decdf5 into phoebe-project:feature-blending Oct 25, 2024
20 checks passed
@aprsa aprsa deleted the vectorization_of_passband_computations branch October 31, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Optimizes code without fundamentally changing any functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants