[FEA] Add support for mdspan #1227
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 181 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.311
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1227"
general
weight: 0.35
MashrafeeAryan
What this does
Adds two features:
1. Create a MatX tensor from an mdspan
make_tensorcan now create a MatX tensor from acuda::std::mdspan2. Ability to use
tensor[i, j]with C++23When the compiler supports C++23 multidimensional indexing, tensors can use:
Testing
Added tests for mdspan and operator[]
Built and ran the tensor tests with:
Google Colab
Tesla T4 GPU
CUDA 12.8.93
NVIDIA driver 580.82.07
GCC 11.4.0
CMake 3.31.10
C++20
MakeTensorTestsTesting was done using:
The mdspan changes and the full
suite passed with C++20operator[]The new
feature requires C++23 multidimensional subscript support,How to create a MatX tensor from an mdspan
The new C++23 tensor[i, j]which is not available with CUDA 12.8. I could not update the CUDA environment
due to administrative permission restrictions
I would really appreciate it if the C++23 tests could be run in a compatible
environment during review.
Documentation
Updated the documentation with:
syntax
Continued support for tensor(i, j)` in C++20 and C++23Related issue
Closes #582