Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[REVIEW] Jitify versions of binaryops for non-homogeneous types #892
[REVIEW] Jitify versions of binaryops for non-homogeneous types #892
Changes from 64 commits
0421c02
d66bfda
c23fda5
f84a330
ca64bde
061d4e5
c9791b1
590bb5c
9017317
df64885
8fd5081
beec867
7fe29b8
8e54098
ada453e
88c57c1
b6650ce
f9dea20
48302f7
d553db0
4413a78
ca9e43e
a55f111
b3673fc
52892b6
96f83e7
fea6751
bf4dc61
358e0c0
877ac61
ca0b31f
b269ee4
322e4a5
35c2c46
d93fa0b
df641c4
aaae814
02e2a9e
e0c8fab
be31178
c5cbd8b
b5c729b
febbad6
d0e30b2
dde39a7
86ea59b
11b67dc
9520853
be21879
3946e1c
78a3cc8
99a943f
500e188
ec1116b
c0243e6
9c729c7
4626f7d
b5d1f78
7fe729a
79d5111
8c11073
87e0b41
0d797fe
09ffe36
2bfa21e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
DEPENDS
does not have to be a path, it can be a CMake variable.For example:
As long as the
MAIN_DEPENDENCY
is properly specified to be${CMAKE_CURRENT_SOURCE_DIR}/include/cudf/types.h
, CMake will updatejit_types
if that file changes.Note that this is helpful if later you expect your command to have multiple outputs.
I would also consider renaming
stringify_run
to something more descriptive. I'm not really sure what the purpose of this target is off the cuff, and that obfuscates our build process for new developers, etc.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.
I tried this but it didn't work. Running
make
rebuildslauncher.cpp
every time.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.
Sorry what does the cmake code above have to do with launcher.cpp?
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.
This code is for making and running an executable that comes with Jitify. This executable, called stringify, converts source files into c-strings and writes them to another source file. Now those stringified source files can be used in JIT code compilation. In our specific use case, we wanted to be able to use the definitions in
types.h
in the JIT kernels. So we use stringify to converttypes.h
into a string and store it intypes.h.jit
in the build/include directory. Thattypes.h.jit
is included inlauncher.cpp
. I wanted a way to use CMake to run stringify only whentypes.h
is changed. With @mt-jones ' suggestion, CMake runs it all the time and every time i runmake
,launcher.cpp
is rebuilt because the include is touched.