← Back to Pull requests

Consolidate and remove various overlaping type-trait implementations #11943

Closed
unknown closed this pull request without merging on Oct 13, 2026 19:37 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 13:52 UTC
Author

Description

CUB
---

  • cub::detail::is_one_of_v<T, Ts...> -> cuda::std::__is_one_of_v<T, Ts...>

  • cub::detail::has_binary_call_operator<Op, T> -> cuda::std::__is_callable_v<Op, T, T>

  • cub::BinaryOpHasIdxParam<T, Op> -> cuda::std::__is_callable_v<Op, T, T, int> (implementation only, the public wrapper remains)

  • cub::detail::select::is_partition_distinct_output_t<T> -> cuda::__is_specialization_of_v<T, partition_distinct_output_t>
  • Thrust
    ------

  • thrust::detail::functional::is_actor<T> -> cuda::__is_specialization_of_v<T, actor>

  • thrust::detail::eval_if -> cuda::std::conditional / cuda::std::conditional_t

  • thrust::detail::destroy_functor -> cuda::std::conditional_t<...> alias

  • thrust::detail::move_to_system_base -> cuda::std::conditional_t<...> alias

  • thrust::detail::is_call_possible_detail::clone_constness<S, D> -> cuda::std::__copy_cv_t<S, D>

  • thrust::detail::disable_if<B, T> -> cuda::std::enable_if<!B, T> alias

  • thrust::detail::disable_if_convertible<From, To, T> -> disable_if<cuda::std::is_convertible_v<From, To>, T> alias

  • thrust::detail::largest_available_float -> cuda::std::type_identity<double>

  • thrust::detail::invoke_result_t<F, Args...> -> cuda::std::invoke_result_t<F, Args...>

  • thrust::detail::true_type -> cuda::std::true_type using declaration

  • thrust::detail::false_type -> cuda::std::false_type using declaration

  • __cccl_type_is_defined<T> -> cuda::std::__is_complete_v<T>

  • std::__cccl_std_contiguous_iterator_tag_exists -> std::__cccl_std_contiguous_iterator_tag_exists_v

  • thrust::detail::not_ -> removed (unused)

  • thrust::detail::lazy_enable_if -> removed (unused)

  • thrust::detail::lazy_disable_if -> removed (unused)

  • thrust::detail::larger_type -> removed (unused)

  • thrust::detail::is_non_bool_integral -> removed (unused)

  • thrust::detail::is_non_bool_arithmetic -> removed (unused)

  • thrust::cuda_cub::__reduce_by_key::is_true -> removed (unused)
  • Diff: 249 lines (+186 / -63) across 3 files Reviewer: bernhardmgruber Review duration: 7545m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 249 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #11943"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.0% (MEDIUM) · Higher = larger blast radius
    39.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%
    Repository