Drop thrust/functional it is almost not used at all#7823
Drop thrust/functional it is almost not used at all#7823rapids-bot[bot] merged 3 commits intorapidsai:mainfrom
thrust/functional it is almost not used at all#7823Conversation
879663b to
b8b40b7
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughRemoved unused Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
cpp/src/tsne/distances.cuh (1)
141-148:⚠️ Potential issue | 🔴 Critical
thrust::maximum<value_t>()requiresthrust/functional.h, which was removed in the recent refactoring.At Line 146, the code uses
thrust::maximum<value_t>()from a header that is no longer included. Whilethrust/transform_reduce.hmay transitively pull it in, this is an undocumented implementation detail that can break with future Thrust library changes.
<cuda/functional>is already included (Line 24) and provides the direct replacement:cuda::maximum<value_t>{}. This aligns with the preference for libcudacxx facilities over Thrust equivalents.Proposed fix
- thrust::maximum<value_t>()); + cuda::maximum<value_t>{});🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@cpp/src/tsne/distances.cuh` around lines 141 - 148, Replace the use of thrust::maximum<value_t>() in the transform_reduce that computes maxNorm with cuda::maximum<value_t>{} (since <cuda/functional> is already included) to avoid relying on the removed thrust/functional header; update the call site in the block that computes maxNorm (the thrust::transform_reduce over distances/total_nn that assigns to maxNorm) so it uses cuda::maximum and leaves the subsequent raft::linalg::scalarMultiply(distances, distances, 1.0f / maxNorm, total_nn, stream) unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@cpp/src/tsne/distances.cuh`:
- Around line 141-148: Replace the use of thrust::maximum<value_t>() in the
transform_reduce that computes maxNorm with cuda::maximum<value_t>{} (since
<cuda/functional> is already included) to avoid relying on the removed
thrust/functional header; update the call site in the block that computes
maxNorm (the thrust::transform_reduce over distances/total_nn that assigns to
maxNorm) so it uses cuda::maximum and leaves the subsequent
raft::linalg::scalarMultiply(distances, distances, 1.0f / maxNorm, total_nn,
stream) unchanged.
ℹ️ Review info
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (11)
cpp/src/dbscan/vertexdeg/algo.cuhcpp/src/genetic/fitness.cuhcpp/src/glm/qn/glm_base.cuhcpp/src/hdbscan/condensed_hierarchy.cucpp/src/hdbscan/detail/select.cuhcpp/src/hdbscan/detail/utils.hcpp/src/tsa/auto_arima.cuhcpp/src/tsne/distances.cuhcpp/src/tsne/fft_tsne.cuhcpp/src_prims/timeSeries/stationarity.cuhcpp/tests/sg/rf_test.cu
💤 Files with no reviewable changes (6)
- cpp/src/genetic/fitness.cuh
- cpp/tests/sg/rf_test.cu
- cpp/src/hdbscan/detail/utils.h
- cpp/src_prims/timeSeries/stationarity.cuh
- cpp/src/hdbscan/detail/select.cuh
- cpp/src/hdbscan/condensed_hierarchy.cu
|
/merge |
No description provided.