Repository Analysis

Rust-GPU/rust-cuda

Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.

6.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Rust-GPU/rust-cuda, a Rust project with 5,330 GitHub stars. SynthScan v2.0 examined 101,639 lines of code across 476 source files, recording 690 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 6.7 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

6.7
Adjusted Score
6.7
Raw Score
100%
Time Factor
2026-08-17
Last Push
5.3K
Stars
Rust
Language
101.6K
Lines of Code
476
Files
690
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 2MEDIUM 4LOW 684

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 690 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block684 hits · 655 pts
SeverityFileLineSnippetContext
LOWCargo.toml21 # OPTIX_DISABLED: These crates that rely on OptiX are disabled because OptiX is less importantCOMMENT
LOWguide/src/guide/getting_started.md221COMMENT
LOWcrates/nvvm/src/lib.rs61}COMMENT
LOWcrates/nvvm/src/lib.rs261///COMMENT
LOWcrates/nvvm/src/lib.rs281///COMMENT
LOWcrates/nvvm/src/lib.rs501 Self::Compute121 => "compute_121",COMMENT
LOWcrates/nvvm/src/lib.rs521 /// let features = Compute61.all_target_features();COMMENT
LOWcrates/cuda_builder/src/lib.rs61 path_to_crate: PathBuf,COMMENT
LOWcrates/cuda_builder/src/lib.rs81 /// you are using recent features such as tensor cores (which need at least 7.x).COMMENT
LOWcrates/cuda_builder/src/lib.rs101 /// forward-compatible within same major version (10.0, 10.3, etc.) but NOT acrossCOMMENT
LOWcrates/cuda_builder/src/lib.rs121 /// // Code that requires compute capability 6.1+ will be emitted because it matchesCOMMENT
LOWcrates/cuda_builder/src/lib.rs141 pub ftz: bool,COMMENT
LOWcrates/cuda_builder/src/lib.rs161 /// Code compiled with this option should always work under CUDA, but it might not be the most efficient or practicaCOMMENT
LOWcrates/cuda_builder/src/lib.rs181 /// The default is `false`, which places all statics in global memory. This avoidsCOMMENT
LOWcrates/cuda_builder/src/lib.rs301 self.ptx_file_copy_path = Some(path.as_ref().to_path_buf());COMMENT
LOWcrates/cuda_builder/src/lib.rs321 /// exposes the option to automatically override any calls to libm functions with calls to libdevice functions.COMMENT
LOWcrates/ptx/src/types.rs201#[derive(Debug, Clone, PartialEq)]COMMENT
LOWcrates/cuda_std_macros/src/lib.rs1use proc_macro::TokenStream;COMMENT
LOWcrates/cuda_std_macros/src/lib.rs141/// `local`.COMMENT
LOWcrates/cuda_std_macros/src/lib.rs161/// Shared memory usage is fundamentally unsafe and much of the burden of correctness is on theCOMMENT
LOWcrates/cuda_std_macros/src/lib.rs181/// pub unsafe fn reverse_array(d: *mut u32, n: usize) {COMMENT
LOWcrates/blastoff/src/level1.rs61 ///COMMENT
LOWcrates/blastoff/src/level1.rs121 ///COMMENT
LOWcrates/blastoff/src/level1.rs181 .to_result()?)COMMENT
LOWcrates/blastoff/src/level1.rs201 /// # let stream = Stream::new(StreamFlags::DEFAULT, None)?;COMMENT
LOWcrates/blastoff/src/level1.rs261 /// Panics if `x` or `y` are not large enough for the requested amount of elements.COMMENT
LOWcrates/blastoff/src/level1.rs321 result.as_device_ptr().as_mut_ptr(),COMMENT
LOWcrates/blastoff/src/level1.rs341 /// # let _a = cust::quick_init()?;COMMENT
LOWcrates/blastoff/src/level1.rs501 /// # PanicsCOMMENT
LOWcrates/blastoff/src/level1.rs581 /// -s & cCOMMENT
LOWcrates/blastoff/src/level1.rs601 /// $$COMMENT
LOWcrates/blastoff/src/level1.rs621 /// let s = DeviceBox::new(&0.0)?;COMMENT
LOWcrates/blastoff/src/level3.rs61COMMENT
LOWcrates/blastoff/src/context.rs21 /// also use tensor cores when possible.COMMENT
LOWcrates/blastoff/src/context.rs41/// so we do not expose this functionality. Instead, you should create a context for every thread (as the cuBLAS docs reCOMMENT
LOWcrates/blastoff/src/context.rs61/// - [Dot Product <span style="float:right;">`dot`</span>](CublasContext::dot)COMMENT
LOWcrates/blastoff/src/context.rs81 ///COMMENT
LOWcrates/blastoff/src/context.rs161 }COMMENT
LOWcrates/blastoff/src/context.rs201 /// Returns `false` unless previously explicitly set to `true`.COMMENT
LOWcrates/blastoff/src/context.rs221 cublas_sys::cublasAtomicsMode_t::CUBLAS_ATOMICS_NOT_ALLOWED => false,COMMENT
LOWcrates/blastoff/src/context.rs241 Ok(cublas_sys::cublasSetMathMode(COMMENT
LOWcrates/blastoff/src/context.rs261 /// # }COMMENT
LOWcrates/blastoff/src/context.rs281 /// ```COMMENT
LOWcrates/optix/examples/common/gdt/CMakeLists.txt1# ======================================================================== #COMMENT
LOWcrates/optix/examples/common/gdt/gdt/gdt.cpp1// ======================================================================== //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/gdt.h1// ======================================================================== //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/gdt.h21#include <stdexcept>COMMENT
LOWcrates/optix/examples/common/gdt/gdt/gdt.h41 #endifCOMMENT
LOWcrates/optix/examples/common/gdt/gdt/gdt.h61#endifCOMMENT
LOWcrates/optix/examples/common/gdt/gdt/gdt.h81COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/box.h1// ======================================================================== //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/vec.h1// ======================================================================== //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/AffineSpace.h1// ======================================================================== //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/AffineSpace.h21// //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/AffineSpace.h141 // const vec_t<S,3,A> p4(b.upper.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p4));COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/LinearSpace.h1// ======================================================================== //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/LinearSpace.h21// //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/Quaternion.h1// ======================================================================== //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/Quaternion.h21// //COMMENT
LOWcrates/optix/examples/common/gdt/gdt/math/constants.h1// ======================================================================== //COMMENT
624 more matches not shown…
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHcrates/blastoff/src/context.rs20 /// with at least the same number of mantissa and exponent bits as requested. WillCOMMENT
HIGHcrates/optix/src/context.rs242 /// * 3 - warning: Hints that OptiX might not behave exactly as requested by theCOMMENT
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMcrates/rustc_codegen_nvvm/src/intrinsic.rs736 // targets that support it we can typically leverage inline assembly to doCOMMENT
MEDIUMcrates/cudnn/src/lib.rs64//! original cuDNN enumerated data types and instead opted to leverage Rust's generics. InCOMMENT
MEDIUMcrates/cudnn/src/math_type.rs12 /// down conversion on tensors in order to utilize Tensor Cores.COMMENT
MEDIUMcrates/cudnn/src/math_type.rs15 /// conversion on tensors in order to utilize Tensor Cores.COMMENT