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

Fast Formal Integral #2725

Merged
merged 17 commits into from
Jul 23, 2024
Merged

Conversation

Rodot-
Copy link
Contributor

@Rodot- Rodot- commented Jul 22, 2024

📝 Speed up the GPU computation of the formal integral

Type: 🚀 feature

This updates the current GPU implementation of the formal integral to parallelize over both frequency bin and impact parameter.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

@Rodot- Rodot- marked this pull request as draft July 22, 2024 17:57
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 2.38095% with 82 lines in your changes missing coverage. Please review.

Project coverage is 36.56%. Comparing base (bd7698d) to head (acd6d87).

Files Patch % Lines
tardis/spectrum/formal_integral_cuda.py 2.38% 82 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2725      +/-   ##
==========================================
- Coverage   36.62%   36.56%   -0.07%     
==========================================
  Files         186      186              
  Lines       14837    14867      +30     
==========================================
+ Hits         5434     5436       +2     
- Misses       9403     9431      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Rodot- Rodot- marked this pull request as ready for review July 22, 2024 18:02
Copy link
Contributor

@andrewfullard andrewfullard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly documentation-related requests.

tardis/transport/montecarlo/formal_integral_cuda.py Outdated Show resolved Hide resolved
tardis/transport/montecarlo/formal_integral_cuda.py Outdated Show resolved Hide resolved
tardis/transport/montecarlo/formal_integral_cuda.py Outdated Show resolved Hide resolved
tardis/transport/montecarlo/formal_integral_cuda.py Outdated Show resolved Hide resolved
tardis/transport/montecarlo/formal_integral_cuda.py Outdated Show resolved Hide resolved
# first contribution to integration
# NOTE: this treatment of I_nu_b (given
# by boundary conditions) is not in Lucy 1999;
# should be re-examined carefully
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to re-examine now? :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, I can take a look back and try to rederive it

tardis/transport/montecarlo/formal_integral_cuda.py Outdated Show resolved Hide resolved
@Rodot- Rodot- requested a review from andrewfullard July 22, 2024 20:33
Copy link
Contributor

@andrewfullard andrewfullard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, needs a rebase

@Rodot- Rodot- requested a review from andrewfullard July 23, 2024 14:08
@andrewfullard andrewfullard self-requested a review July 23, 2024 14:18
andrewfullard
andrewfullard previously approved these changes Jul 23, 2024
@andrewfullard andrewfullard merged commit 02985a6 into tardis-sn:master Jul 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants