-
Notifications
You must be signed in to change notification settings - Fork 915
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
CMake jit_preprocess_files function only runs when needed #7872
CMake jit_preprocess_files function only runs when needed #7872
Conversation
Since |
I applied this PR but that still does not help---I still get the same error:
|
If you run |
I just check that. The folder |
FYI, I tested this PR by deleting everything and checked out the latest branch-0.20, then applied this PR and did a fresh build. |
Hmmm. I think you are correct as is they will be recompiled each time. But we can fix that to only re-compile when the input file is modified. |
I can reproduce this behavior on Ubuntu 20.04 with the Makefile Generator but ninja Generator correctly generated files. |
Sorry that I mistakenly modified your post---I intentionally wanted to reply-quote instead. My head is a bit fuzzy in the meantime. My system is exactly like that: Ubuntu 20.04 with the Makefile Generator. PS: It is funny that github allows users to modify non-authored posts. (oh, that is funny [I promise not to edit any more of your posts] - @cwharris) |
Your new commits fix the issue. Yeah. |
This now fixes the issue where builds with the |
Thanks @robertmaynard ! I didn't see this locally because ninja was generating the files whereas cmake does not. |
@gpucibot merge |
rerun tests |
Rerun tests. |
FYI -- ops team is building a new |
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7872 +/- ##
===============================================
+ Coverage 81.86% 82.74% +0.88%
===============================================
Files 101 103 +2
Lines 16884 17701 +817
===============================================
+ Hits 13822 14647 +825
+ Misses 3062 3054 -8
Continue to review full report at Codecov.
|
@gpucibot merge |
) This correct a couple of issues with the `jit_preprocess_files` function. 1. It now always makes sure that the output directory that the jit headers are going into will exist before executing. So if a user deletes `<build_dir>/include` everything will work as expected 2. The output of the jitify tool are files that end in `.jit.hpp` not `.jit`. This is required to allow generators to build the minimal incremental compilation graph 3. Mark the input source files as a dependency so when that file is modified, the build-system knows to recompile the jit file. Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - Christopher Harris (https://github.com/cwharris) - Nghia Truong (https://github.com/ttnghia) - Jason Lowe (https://github.com/jlowe) - Keith Kraus (https://github.com/kkraus14) URL: rapidsai#7872
This correct a couple of issues with the
jit_preprocess_files
function.<build_dir>/include
everything will work as expected.jit.hpp
not.jit
. This is required to allow generators to build the minimal incremental compilation graph