-
Notifications
You must be signed in to change notification settings - Fork 328
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
Modify/Refactor Recompile #1066
Comments
@NimaSarajpoor It looks like we can possibly avoid doing
|
Of course, we should really check this with the |
To avoid
Now, when |
I think it is more natural because it is like overwriting "code" (which is the actual goal here) rather than recompiling it.
Lines 54 to 58 in 92a2b41
I think if we revise the lines 57 & 58 as follows:
it should work as tests are passing (I removed the check for
I am trying to understand if it is okay to have such flexibility. I am thinking about what you mentioned in another case that sometimes we want to limit the scope of the function. Let's say someone decides to set the key [Update] Lines 54 to 58 in 92a2b41
Replacing line 57 with
|
@NimaSarajpoor Let me submit a PR for you to review |
@NimaSarajpoor Based on your review of my PR, I have come to the conclusion that this is NOT better so I will close the PR. Thank you for your insights. The only question that I have is whether we should remove the Instead, we should add a warning to |
Correct. Adding the warning is definitely a good idea regardless of keeping / removing the line
Do not know the correct answer but going to share my opinion and leave the decision to you as you have better experience. My intention was to make sure
I think we should open an issue for the concern that was raised regarding the cache path. This can help us to track it separately. What do you think? |
Yes, I understood the intention. However it gives the wrong impression that doing
Yes, please see #1069 |
@seanlaw I can submit a new PR to remove |
@NimaSarajpoor I just added to PR #1070. Would you mind reviewing? |
@seanlaw |
Recently, @NimaSarajpoor added the
cache._recompile()
function in PR #1048. After reading:Specifically, this response caught my attention:
I am starting to question whether we should be calling
func.recompile()
? Instead, I don't mind the monkey-patching solution. The key difference is that we are NOT monkey-patching an EXTERNAL module function and, instead, we are patching an INTERNAL module function, which is fine/safe!Additionally, it seems much more maintainable.
This might resolve/simplify the unit tests that failed when
NUMBA_JIT_DISABLE=1
.The text was updated successfully, but these errors were encountered: