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

All kernels in the JNI should have hidden visibility #2168

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

jihoonson
Copy link
Collaborator

Fixes #1734.

This PR addresses a similar issue to rapidsai/cudf#14726. Instead of adding a new macro as suggested in #1734, it uses the one in libcudf added in rapidsai/cudf#14726 to avoid duplicate macros.

hyperbolic2346
hyperbolic2346 previously approved these changes Jun 25, 2024
Copy link
Collaborator

@hyperbolic2346 hyperbolic2346 left a comment

Choose a reason for hiding this comment

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

Thanks for doing this work!

ttnghia
ttnghia previously approved these changes Jun 25, 2024
Signed-off-by: Jihoon Son <[email protected]>
@jihoonson jihoonson dismissed stale reviews from ttnghia and hyperbolic2346 via 4b94930 June 25, 2024 17:06
@hyperbolic2346
Copy link
Collaborator

build

@hyperbolic2346 hyperbolic2346 merged commit ee3b1cf into NVIDIA:branch-24.08 Jun 26, 2024
3 checks passed
size_type num_rows,
bool ansi_mode,
bool strip)
void CUDF_KERNEL string_to_integer_kernel(T* out,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be

void CUDF_KERNEL or CUDF_KERNEL void ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Validity wise it doesn't matter. Stylistically it can be argued we should be consistent. I think it's outside the scope of this change to enforce it though. This example started with void __global__ and ended with void __global__ static. This looks odd expanded out, but is valid and does the expected thing. I would prefer to see it as CUDF_KERNEL void as well.

Copy link
Collaborator Author

@jihoonson jihoonson Jun 28, 2024

Choose a reason for hiding this comment

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

Oh, I was just replacing all __global__ with CUDF_KERNEL and never noticed this. I agree CUDF_KERNEL void is better and consistent. Will fix it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah just noticed it has been fixed already in #2178.

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.

[FEA] Mark all kernels with hidden visibility
4 participants