-
Notifications
You must be signed in to change notification settings - Fork 902
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
Refactor host device macros #9797
Refactor host device macros #9797
Conversation
…_device_macros # Conflicts: # cpp/tests/iterator/optional_iterator_test_numeric.cu
b9959d4
to
3192065
Compare
Codecov Report
@@ Coverage Diff @@
## branch-22.02 #9797 +/- ##
================================================
- Coverage 10.49% 10.42% -0.07%
================================================
Files 119 119
Lines 20305 20475 +170
================================================
+ Hits 2130 2134 +4
- Misses 18175 18341 +166
Continue to review full report at Codecov.
|
@harrism @jrhemstad this should be good to go now if everyone is satisfied with the outcome of the discussion. The only macro left is |
@gpucibot merge |
FYI, merging this broke the cuSpatial build. |
One file in libcuspatial used `CUDA_HOST_DEVICE` from cudf/types.hpp instead of just `__device__ inline`, which is all it needed. rapidsai/cudf#9797 changed the name of the macro, which broke the build. This trivial PR fixes it and removes that particular unnecessary dependency. Authors: - Mark Harris (https://github.com/harrism) Approvers: - Paul Taylor (https://github.com/trxcllnt) - Christopher Harris (https://github.com/cwharris) URL: #475
This PR is a follow-up to #9530 to standardize the names of the macros used for the
__host__ __device__
attributes. Aliases for__device__
and combinations with inlining have been removed, and the only remaining macro isCUDF_HOST_DEVICE
which is__host__ __device__
in device code and empty in host code. See #9530 (comment) for more discussion.