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

fix climits dups fix #13

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

cwharris
Copy link

@cwharris cwharris commented Apr 7, 2021

pre-processing jitify2 kernels outputs lots of warnings because both climits and cuda/std/climits are included in jit-compiled source code. This is because jitify prefers climits whereas cudf prefers cuda/std/climits. I believe these warnings didn't present in jitify1 because we were ignoring much of it's output. Now, they've become annoying. To get rid of them, we need to use one or the other. Since cudf uses cuda/std/climits, I've updated jitify to include the that for jit-compiled sources.

cuda/std/climits(29): warning: incompatible redefinition of macro "ULONG_MAX"
climits(34): here
cuda/std/climits(34): warning: incompatible redefinition of macro "LLONG_MIN"
climits(37): here
cuda/std/climits(35): warning: incompatible redefinition of macro "LLONG_MAX"
climits(36): here
cuda/std/climits(36): warning: incompatible redefinition of macro "ULLONG_MAX"
climits(38): here

This is a hacky fix, and we should examine how to let jitify2 work well with any code's choice of includes.

@cwharris cwharris merged commit 951b825 into rapidsai:cudf_0.19 Apr 7, 2021
rapids-bot bot pushed a commit to rapidsai/cudf that referenced this pull request Apr 7, 2021
replace `#include <climits>` with `#include <cuda/std/climits>` to eliminate "incompatible redefinition" warnings.

Also fixes a preprocessor typo.

note: while it's safe to merge this PR prior to rapidsai/jitify#13, both are required to eliminate incompatible redefinition warnings.

Authors:
  - Christopher Harris (https://github.com/cwharris)

Approvers:
  - Nghia Truong (https://github.com/ttnghia)
  - Keith Kraus (https://github.com/kkraus14)
  - David Wendt (https://github.com/davidwendt)

URL: #7894
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.

1 participant