Skip to content
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

Leverage libcudacxx limits and cstdint defines #16

Conversation

robertmaynard
Copy link

Instead of using hardcoded defines in jitify generated content, leverage the defines that exist in libcudacxx

This removes compilation errors when the defines between jitify and libcudacxx differ ( e.g. LLONG_MAX 0x7fffffffffffffff vs LLONG_MAX 0x7fffffffffffffffLL ).

Plus it removes the upkeep burden of jitify of having to stay in sync with header changes

Copy link

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me with one minor comment about removing blank lines. I found the places in libcudacxx where these macros and typedefs are defined, and it seems like this should be valid.

jitify2.hpp Outdated Show resolved Hide resolved
jitify2.hpp Outdated Show resolved Hide resolved
@bdice
Copy link

bdice commented May 22, 2023

@robertmaynard Are we planning to upstream these changes, too?

Co-authored-by: Bradley Dice <bdice@bradleydice.com>
@robertmaynard
Copy link
Author

robertmaynard commented May 22, 2023

@robertmaynard Are we planning to upstream these changes, too?

Yes there are plans to upstream this. Currently working on if these changes need to be conditional based on the CUDA version ( support < cuda 11 )

Copy link

@shwina shwina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM from a cuDF standpoint!

@robertmaynard robertmaynard merged commit 047df5e into rapidsai:jitify2 May 23, 2023
@robertmaynard robertmaynard deleted the fea/leverage_libcudacxx_std_headers branch May 23, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants