-
Notifications
You must be signed in to change notification settings - Fork 101
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
adding the trace-compile option to the julia initialization #530
base: master
Are you sure you want to change the base?
Conversation
Thanks. Could you work on updating the tests? |
I'll take a look and push another commit soon, thanks! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #530 +/- ##
==========================================
+ Coverage 85.22% 87.60% +2.37%
==========================================
Files 39 40 +1
Lines 2342 2364 +22
==========================================
+ Hits 1996 2071 +75
+ Misses 346 293 -53 ☔ View full report in Codecov by Sentry. |
I fixed all errors in existing tests and I added a new test specifically for the new If you can take a look now, that'd be great. @mkitti |
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.
Looks good. I have one suggestion for the test to make sure it's actually working (and not just printing random stuff to the file). Sorry for taking so long to look at this!
) | ||
) | ||
assert (trace_compile_path).exists() | ||
assert len(trace_compile_path.read_text().strip()) > 0 |
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.
Is there some compilation string that you know should be printed to this file? If so, could you test that it actually shows up there?
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.
Yes, that's a great idea! I added a check for the precompilation directive of the sin
function we invoke to test precompilation.
I think with the additional test, this should look better now. Thanks for taking a look @MilesCranmer |
It'd be nice to be able to trace the compilation performed by Julia called via PyJulia. The main use case is for the precompilation of a Julia library triggered primarily through their Python interface.
The change is a single line adding the
trace-compile
option.