Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cargo.toml | 21 | # OPTIX_DISABLED: These crates that rely on OptiX are disabled because OptiX is less important | COMMENT |
| LOW | guide/src/guide/getting_started.md | 221 | COMMENT | |
| LOW | crates/nvvm/src/lib.rs | 61 | } | COMMENT |
| LOW | crates/nvvm/src/lib.rs | 261 | /// | COMMENT |
| LOW | crates/nvvm/src/lib.rs | 281 | /// | COMMENT |
| LOW | crates/nvvm/src/lib.rs | 501 | Self::Compute121 => "compute_121", | COMMENT |
| LOW | crates/nvvm/src/lib.rs | 521 | /// let features = Compute61.all_target_features(); | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 61 | path_to_crate: PathBuf, | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 81 | /// you are using recent features such as tensor cores (which need at least 7.x). | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 101 | /// forward-compatible within same major version (10.0, 10.3, etc.) but NOT across | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 121 | /// // Code that requires compute capability 6.1+ will be emitted because it matches | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 141 | pub ftz: bool, | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 161 | /// Code compiled with this option should always work under CUDA, but it might not be the most efficient or practica | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 181 | /// The default is `false`, which places all statics in global memory. This avoids | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 301 | self.ptx_file_copy_path = Some(path.as_ref().to_path_buf()); | COMMENT |
| LOW | crates/cuda_builder/src/lib.rs | 321 | /// exposes the option to automatically override any calls to libm functions with calls to libdevice functions. | COMMENT |
| LOW | crates/ptx/src/types.rs | 201 | #[derive(Debug, Clone, PartialEq)] | COMMENT |
| LOW | crates/cuda_std_macros/src/lib.rs | 1 | use proc_macro::TokenStream; | COMMENT |
| LOW | crates/cuda_std_macros/src/lib.rs | 141 | /// `local`. | COMMENT |
| LOW | crates/cuda_std_macros/src/lib.rs | 161 | /// Shared memory usage is fundamentally unsafe and much of the burden of correctness is on the | COMMENT |
| LOW | crates/cuda_std_macros/src/lib.rs | 181 | /// pub unsafe fn reverse_array(d: *mut u32, n: usize) { | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 61 | /// | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 121 | /// | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 181 | .to_result()?) | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 201 | /// # let stream = Stream::new(StreamFlags::DEFAULT, None)?; | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 261 | /// Panics if `x` or `y` are not large enough for the requested amount of elements. | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 321 | result.as_device_ptr().as_mut_ptr(), | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 341 | /// # let _a = cust::quick_init()?; | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 501 | /// # Panics | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 581 | /// -s & c | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 601 | /// $$ | COMMENT |
| LOW | crates/blastoff/src/level1.rs | 621 | /// let s = DeviceBox::new(&0.0)?; | COMMENT |
| LOW | crates/blastoff/src/level3.rs | 61 | COMMENT | |
| LOW | crates/blastoff/src/context.rs | 21 | /// also use tensor cores when possible. | COMMENT |
| LOW | crates/blastoff/src/context.rs | 41 | /// so we do not expose this functionality. Instead, you should create a context for every thread (as the cuBLAS docs re | COMMENT |
| LOW | crates/blastoff/src/context.rs | 61 | /// - [Dot Product <span style="float:right;">`dot`</span>](CublasContext::dot) | COMMENT |
| LOW | crates/blastoff/src/context.rs | 81 | /// | COMMENT |
| LOW | crates/blastoff/src/context.rs | 161 | } | COMMENT |
| LOW | crates/blastoff/src/context.rs | 201 | /// Returns `false` unless previously explicitly set to `true`. | COMMENT |
| LOW | crates/blastoff/src/context.rs | 221 | cublas_sys::cublasAtomicsMode_t::CUBLAS_ATOMICS_NOT_ALLOWED => false, | COMMENT |
| LOW | crates/blastoff/src/context.rs | 241 | Ok(cublas_sys::cublasSetMathMode( | COMMENT |
| LOW | crates/blastoff/src/context.rs | 261 | /// # } | COMMENT |
| LOW | crates/blastoff/src/context.rs | 281 | /// ``` | COMMENT |
| LOW | crates/optix/examples/common/gdt/CMakeLists.txt | 1 | # ======================================================================== # | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/gdt.cpp | 1 | // ======================================================================== // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/gdt.h | 1 | // ======================================================================== // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/gdt.h | 21 | #include <stdexcept> | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/gdt.h | 41 | #endif | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/gdt.h | 61 | #endif | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/gdt.h | 81 | COMMENT | |
| LOW | crates/optix/examples/common/gdt/gdt/math/box.h | 1 | // ======================================================================== // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/vec.h | 1 | // ======================================================================== // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/AffineSpace.h | 1 | // ======================================================================== // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/AffineSpace.h | 21 | // // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/AffineSpace.h | 141 | // const vec_t<S,3,A> p4(b.upper.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p4)); | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/LinearSpace.h | 1 | // ======================================================================== // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/LinearSpace.h | 21 | // // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/Quaternion.h | 1 | // ======================================================================== // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/Quaternion.h | 21 | // // | COMMENT |
| LOW | crates/optix/examples/common/gdt/gdt/math/constants.h | 1 | // ======================================================================== // | COMMENT |
| 624 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | crates/blastoff/src/context.rs | 20 | /// with at least the same number of mantissa and exponent bits as requested. Will | COMMENT |
| HIGH | crates/optix/src/context.rs | 242 | /// * 3 - warning: Hints that OptiX might not behave exactly as requested by the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/rustc_codegen_nvvm/src/intrinsic.rs | 736 | // targets that support it we can typically leverage inline assembly to do | COMMENT |
| MEDIUM | crates/cudnn/src/lib.rs | 64 | //! original cuDNN enumerated data types and instead opted to leverage Rust's generics. In | COMMENT |
| MEDIUM | crates/cudnn/src/math_type.rs | 12 | /// down conversion on tensors in order to utilize Tensor Cores. | COMMENT |
| MEDIUM | crates/cudnn/src/math_type.rs | 15 | /// conversion on tensors in order to utilize Tensor Cores. | COMMENT |