-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
Numba montecarlo #929
Numba montecarlo #929
Conversation
There is a sensible discussion about setting |
4854f6c
to
f3494c2
Compare
4f6f86c
to
a110200
Compare
a110200
to
ad246be
Compare
bb7dd8f
to
581365a
Compare
9923c54
to
ace4eda
Compare
@@ -0,0 +1,7 @@ | |||
from llvmlite import binding | |||
binding.set_option("tmp", "-non-global-value-max-name-size=2048") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering what this is for? IIRC this patch against LLVM "fixed", well, prevented, it from being an issue https://github.com/numba/llvmlite/blob/master/conda-recipes/0001-Revert-Limit-size-of-non-GlobalValue-name.patch .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to know. Thanks - haven't worked on it in a while.
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Yssavo Camacho-Neves <yic6@physics.rutgers.edu>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Yssavo Camacho-Neves <yic6@physics.rutgers.edu>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Yssavo Camacho-Neves <yic6@physics.rutgers.edu>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Yssavo Camacho-Neves <yic6@physics.rutgers.edu>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Yssavo Camacho-Neves <yic6@physics.rutgers.edu>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Yssavo Camacho-Neves <yic6@physics.rutgers.edu>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Yssavo Camacho-Neves <yic6@physics.rutgers.edu>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de>
Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de>
Values are stored in the vpacket collection for each vpacket. Vpacket collections are dumped into a huge list right now.
Need to set the configuration value to True in montecarlo_configuration.py Needs to be an install option again
Can now be activated as a configuration settings rather than compile-time. Output should now be a proper array of arrays rather than a list of arrays.
@@ -0,0 +1,7 @@ | |||
from llvmlite import binding | |||
binding.set_option("tmp", "-non-global-value-max-name-size=2048") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
binding.set_option("tmp", "-non-global-value-max-name-size=2048") |
tardis/montecarlo/montecarlo_numba/tests/test_single_packet_loop.py
Outdated
Show resolved
Hide resolved
Docstrings from Wolfgang Co-authored-by: Wolfgang Kerzendorf <wkerzendorf@gmail.com>
Co-authored-by: Wolfgang Kerzendorf <wkerzendorf@gmail.com>
Co-authored-by: Wolfgang Kerzendorf <wkerzendorf@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #929 +/- ##
===========================================
- Coverage 81.57% 71.24% -10.33%
===========================================
Files 47 66 +19
Lines 3804 5077 +1273
===========================================
+ Hits 3103 3617 +514
- Misses 701 1460 +759
Continue to review full report at Codecov.
|
Mostly to force a new test run
This is a year worth of work from many people and hopefully will make TARDIS easier to use and develop on. Co-authored-by: Andrew Fullard <andrewgfullard@gmail.com> Co-authored-by: Jack O'Brien <jobrien585@gmail.com> Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Andreas Flörs <afloers@mpa-garching.mpg.de> Co-authored-by: Luke Shingles <luke.shingles@gmail.com> Co-authored-by: Alice Harpole <harpolea@gmail.com> Co-authored-by: Marc Williamson <marxwillia@gmail.com> Co-authored-by: Yssa Camacho <yssavo.camacho@gmail.com> Co-authored-by: Arjun Savel <asavel@berkeley.edu> Co-authored-by: Stuart Archibald <stuart.archibald@googlemail.com> Co-authored-by: Siu Kwan Lam <michael.lam.sk@gmail.com>
This is a year worth of work from many people and hopefully will make TARDIS easier to use and develop on. Co-authored-by: Andrew Fullard <andrewgfullard@gmail.com> Co-authored-by: Jack O'Brien <jobrien585@gmail.com> Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Andreas Flörs <afloers@mpa-garching.mpg.de> Co-authored-by: Luke Shingles <luke.shingles@gmail.com> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Marc Williamson <marxwillia@gmail.com> Co-authored-by: Yssa Camacho <yssavo.camacho@gmail.com> Co-authored-by: Arjun Savel <asavel@berkeley.edu> Co-authored-by: Stuart Archibald <stuart.archibald@googlemail.com> Co-authored-by: Siu Kwan Lam <michael.lam.sk@gmail.com>
Numba montecarlo
This is a year worth of work from many people and hopefully will make TARDIS easier to use and develop on. Co-authored-by: Andrew Fullard <andrewgfullard@gmail.com> Co-authored-by: Jack O'Brien <jobrien585@gmail.com> Co-authored-by: Christian Vogl <cvogl@mpa-garching.mpg.de> Co-authored-by: Andreas Flörs <afloers@mpa-garching.mpg.de> Co-authored-by: Luke Shingles <luke.shingles@gmail.com> Co-authored-by: Alice Harpole <aliceharpole@gmail.com> Co-authored-by: Marc Williamson <marxwillia@gmail.com> Co-authored-by: Yssa Camacho <yssavo.camacho@gmail.com> Co-authored-by: Arjun Savel <asavel@berkeley.edu> Co-authored-by: Stuart Archibald <stuart.archibald@googlemail.com> Co-authored-by: Siu Kwan Lam <michael.lam.sk@gmail.com>
Things to check if they are done
Things to do
line scattering
electron scattering
virtual packets
macroatom
packet logging (last_packet_interaction)
Line estimators are slowing the process down - maybe a useful optimization strategy
Final Testing
There are 4 code versions. There is
upstream/master
there isnumba_montecarlo
both of which have different seeding strategies and will never be numerically equal (those we will summarize as main). There are two versions that have additional code that will allow logging - those we will callc_compare
andnumba_compare
(and will call the compare branch).virtual - only compare - sica
virtual - only compare - ddc10
integrated - main only - sica
integrated - main only - ddc10
estimators - compare only -sica
estimators - compare only -ddc10
iterations - (compare/main) -sica
iterations - (compare/main) -ddc10
Need to fix negative boundary distance issue for vpackets: specific case occurs when a packet reaches a boundary with a close line so distance_trace_line = 0 and distance_boundary can be negative (shell ID does not advance)
The models that shall be run is low velocity Si/Ca and DDC10.
The last step is to get numba to produce a new refdata and look at this in the notebook.
If all these models run then we agree that numba montecarlo can be merged.
Merging Strategy
Post-merge
Start writing unit tests for the numba version
Improve speed.