-
Notifications
You must be signed in to change notification settings - Fork 329
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
Fix #708 Check fastmath flags #1068
base: main
Are you sure you want to change the base?
Fix #708 Check fastmath flags #1068
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1068 +/- ##
==========================================
- Coverage 97.33% 97.31% -0.02%
==========================================
Files 93 93
Lines 15219 15239 +20
==========================================
+ Hits 14813 14830 +17
- Misses 406 409 +3 ☔ View full report in Codecov by Sentry. |
After going through
Any value less than 1.0 will be 0.0, and any value above 1.0 will be Maybe we open another issue for this case, known as Chebyshev distance. Then, we can think if we should add support for it. The distance can be computed via rolling-max approach. Not sure if it can be added to the current code base without hurting the design. For now, we should not consider |
@NimaSarajpoor I had noticed it as well when I looked the other day. I agree, we should not allow |
Created the issue #1071 |
@NimaSarajpoor Is this ready to be merged? |
Not yet. I am trying to get chain of caller-callees. I have a script that can give a dictionary with key as Code
|
At this point, I don't anticipate allowing any exceptions. Since this is something tedious, I would prefer to automate it and add it to One thing to consider is that |
👍
Right. This should be placed in
Currently I am not trying to jump between modules. What I do is that I collect one-level-deep callees of ALL stumpy functions. that's all I need to create chain for a given caller. However, if I can find a tool that can jump from one module to different module, then finding chain should become easier. Going to look for it. |
I have some ideas and will be able to share them soon |
@NimaSarajpoor While quite verbose, I believe that this will work nicely to generate a list of njit call stacks that is able to jump ACROSS modules:
The output should be:
One immediate observation is that our njit call stacks are very, very flat/shallow, which is a GREAT thing! In my head, I was dreading to find that we have very deeply nested call stacks and so this is a pleasant surprise. Please verify that we haven't missed any edge cases. Hopefully, you are able to take these call stacks and check the |
This PR is to fix #708. An initial inspection was done by @seanlaw in this comment. I am copying that list here for transparency and better tracking.
aamp._compute_diagonal
-P
,PL
,PR
containsnp.inf
andp
can benp.inf
aamp._aamp
-P
,PL
,PR
containsnp.inf
core._sliding_dot_product
- Should be okaycore._calculate_squared_distance_profile
-Should be okay(Returned value inD_squared
might benp.inf
but no arithmetic operation)core.calculate_distance_profile
-Should be okay(Returned value inD_squared
might benp.inf
)core._p_norm_distance_profile
- Should be okay (canp
benp.inf
? not supported. See: Add support for p=np.inf for non-normalized p-norm distance #1071 )core._mass
Should be okaycore._apply_exclusion_zone
-val
containsnp.inf
core._count_diagonal_ndist
- Should be okaycore._get_array_ranges
- Should be okaycore._get_ranges
- Should be okaycore._total_diagonal_ndists
- Should be okayfastmath._add_assoc
- Should be okaymaamp._compute_multi_p_norm
-p
could possibly benp.inf
(not supported. See: Add support for p=np.inf for non-normalized p-norm distance #1071).p_norm
array can containnp.inf
mstump._compute_multi_D
- Might be okay??scraamp._compute_PI
-P_NORM
containsnp.inf
scraamp._prescraamp
-P_NORM
containsnp.inf
scrump._compute_PI
- referencesnp.inf
values, so likely badscrump._prescrump
-P_squared
isnp.inf
stump._compute_diagonal
-ρ
,ρL
, andρR
containnp.inf
stump._stump
-ρ
,ρL
, andρR
containnp.inf