← Back to Pull requests

Add templates for double and float types #1

Open
munstermonster opened this pull request with 3134 lines diff across 41 files
View on GitHub
munstermonster munstermonster commented on Nov 21, 2019 16:40 UTC
Author

No description provided by author.

Diff: 3134 lines (+2410 / -724) across 41 files Reviewer: Arleee1 Review duration: 3668446m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.85) × (1 − Review Confidence (0.71)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.85 · 3134 lines diff across 41 files
0.85
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.50 · 1 substantive comment(s)
0.50
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
71%
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.400
Mass File Touch mass_file_touch
0.080
Empty Description empty_description
0.060
Real PR Conversation Timeline
2 items
Arleee1 Arleee1 commented on code on Mar 15, 2025 07:55 UTC
Code Review
cuSten/src/struct/custenCreateDestroy2DXYnp.cu:1
@@ -186,10 +187,10 @@ void cuStenCreate2DXYnp(
 	// 3 or greater
 
 	// Allocate top boundary memory
-	pt_cuSten->boundaryTop = (double**)malloc(pt_cuSten->numTiles * sizeof(double));
+	pt_cuSten->boundaryTop = (elemType**)malloc(pt_cuSten->numTiles * sizeof(elemType));

This and similar lines need to be changed to allocate based on sizeof(elemType), as it is creating an array of pointers, rather than an array of elemType. This works for double because sizeof(double)==sizeof(double), however this is not true for floats, causing overflows later on when using floats.

Reviewers
Assignees
munstermonster munstermonster
Labels
risk: low confidence: 71.4% 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: 84.5% (HIGH) · Higher = larger blast radius
84.5%
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: 71.4% · Lower = rushed or shallow review
71.4%
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: 24.2% · Safe to merge
24.2%