Repository Analysis

NVIDIA/warp

A Python framework for GPU-accelerated simulation, robotics, and machine learning.

18.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of NVIDIA/warp, a Python project with 7,046 GitHub stars. SynthScan v2.0 examined 429,213 lines of code across 1043 source files, recording 6499 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 18.2 places this repository in the Moderate 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).

18.2
Adjusted Score
18.2
Raw Score
100%
Time Factor
2026-08-28
Last Push
7.0K
Stars
Python
Language
429.2K
Lines of Code
1.0K
Files
6.5K
Pattern Hits
2026-08-29
Scan Date
0.14
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 70HIGH 80MEDIUM 553LOW 5796

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 6499 distinct pattern matches across 22 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.

Hyper-Verbose Identifiers3811 hits · 3364 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md440def test_amazing_code_test_one(test, device):CODE
LOWCONTRIBUTING.md492def test_amazing_code_test_one(test, device):CODE
LOWCONTRIBUTING.md500def test_amazing_code_test_one(test, device):CODE
LOWCONTRIBUTING.md570 def test_amazing_code_no_device(self):CODE
LOWbuild_llvm.py164def build_llvm_clang_from_source_for_arch(args, arch: str, llvm_source: str) -> None:CODE
LOWbuild_llvm.py419def build_llvm_clang_from_source(args) -> None:CODE
LOWbuild_llvm.py438def build_warp_clang_for_arch(args, lib_name: str, arch: str) -> None:CODE
LOWdesign/hardware-coherent-memory-access.md541def _is_array_accessible_from_device(value, device):CODE
LOWdesign/hardware-coherent-memory-access.md545def _classify_array_access_from_device(value, device):CODE
LOWdesign/hardware-coherent-memory-access.md621def _validate_launch_array_access(kernel, arg_name, value, device):CODE
LOWtools/ci/cuda_toolkit.py730def _validate_package_metadata(path: Path, bundle: Bundle) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py150 def test_generate_lock_uses_manifest_keys(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py192 def test_resolve_outputs_assembled_cache(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py225 def test_reject_unknown_release(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py233 def test_reject_unsupported_platform(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py241 def test_reject_component_order_mismatch(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py252 def test_reject_extra_lock_bundle(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py276 def test_reject_size_mismatch(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py287 def test_reject_digest_mismatch(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py298 def test_retry_transient_download(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py316 def test_assemble_components_in_order(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py363 def test_replace_partial_destination_after_assembly(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py386 def test_preserve_destination_after_failed_assembly(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py409 def test_reject_mismatched_package_without_replacement(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py436 def test_activate_linux_toolkit(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py464 def test_activate_windows_toolkit(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py482 def test_reject_missing_include(self) -> None:CODE
LOWtools/ci/test_cuda_toolkit.py498 def test_reject_nonfunctional_nvcc(self) -> None:CODE
LOWtools/ci/publishing/update_git_hash.py48def update_git_hash_in_config(config_file_path: str, git_hash: str, dry_run: bool = False) -> bool:CODE
LOWtools/ci/publishing/set_nightly_version.py61def write_new_version_to_config(config_file_path: str, new_version: str, dry_run: bool = False) -> bool:CODE
LOWtools/ci/publishing/set_nightly_version.py95def write_new_version_to_version_file(version_file_path: str, new_version: str, dry_run: bool = False) -> bool:CODE
LOWtools/pre-commit-hooks/check_version_consistency.py39def _regenerate_version_header(base_path: Path, version: str) -> None:STRING
LOWtools/pre-commit-hooks/check_version_consistency.py89def check_version_consistency(base_path: Path, verbose: bool = False) -> bool:CODE
LOWtools/pre-commit-hooks/sync_skills.py130def is_side_specific_metadata(side_name: str, rel: str) -> bool:CODE
LOWasv/benchmarks/spatial_query.py29def sample_mesh_query_no_sign(CODE
LOWasv/benchmarks/spatial_query.py133 def time_mesh_query_closest_point(self, leaf_size, asset, bvh_constructor):CODE
LOWasv/benchmarks/spatial_query.py138 def time_mesh_query_closest_point_signed(self, leaf_size, asset, bvh_constructor):CODE
LOWasv/benchmarks/spatial_query.py167 def vertex_triangle_collision_detection_kernel_broad_only_base(CODE
LOWasv/benchmarks/spatial_query.py211 def ray_vs_aabb_query_kernel_base(CODE
LOWasv/benchmarks/spatial_query.py289def replicate_mesh_with_random_perturbation(CODE
LOWasv/benchmarks/spatial_query.py475 def time_bvh_aabb_vs_aabb_query(self, query_radius, leaf_size, device, bvh_constructor):CODE
LOWasv/benchmarks/spatial_query.py480 def time_mesh_aabb_vs_aabb_query(self, query_radius, leaf_size, device, bvh_constructor):CODE
LOWasv/benchmarks/spatial_query.py582 def time_bvh_aabb_vs_aabb_query(self, cache, query_radius, leaf_size, bvh_constructor):CODE
LOWasv/benchmarks/spatial_query.py586 def time_mesh_aabb_vs_aabb_query(self, cache, query_radius, leaf_size, bvh_constructor):CODE
LOWasv/benchmarks/spatial_query.py740 def time_bvh_ray_vs_aabb_query(self, resolution, leaf_size, device, bvh_constructor):CODE
LOWasv/benchmarks/spatial_query.py745 def time_mesh_ray_vs_aabb_query(self, resolution, leaf_size, device, bvh_constructor):CODE
LOWasv/benchmarks/deterministic.py42def scatter_add_kernel_deterministic(CODE
LOWasv/benchmarks/deterministic.py63def counter_kernel_deterministic(CODE
LOWasv/benchmarks/native_library_footprint.py15def _get_elf_tls_allocation_size(path):CODE
LOWasv/benchmarks/native_library_footprint.py76 def track_warp_clang_library_size(self):CODE
LOWasv/benchmarks/native_library_footprint.py82 def track_warp_tls_allocation_size(self):CODE
LOWasv/benchmarks/texture.py58def finite_difference_gradient(tex: wp.Texture3D, uvw: wp.vec3f) -> wp.vec3f:CODE
LOWasv/benchmarks/fem/integrate.py103def _supports_padded_bsr_assembly():CODE
LOWasv/benchmarks/fem/integrate.py113def _require_padded_bsr_assembly():CODE
LOWasv/benchmarks/fem/integrate.py126def _make_corotated_hessian_integrator(space: fem.FunctionSpace, assembly: str):CODE
LOWasv/benchmarks/fem/integrate.py181 def integrate_compressed_hessian():CODE
LOWasv/benchmarks/fem/integrate.py243 def capture_set_from_triplets(dest, rows, columns, values=None, **kwargs):CODE
LOWasv/benchmarks/fem/integrate.py306 def _refill_sparse_source_pool(self):CODE
LOWasv/benchmarks/fem/integrate.py311 def make_sparse_assembly_func(self, space: fem.FunctionSpace, fn: str, assembly: str):CODE
LOWasv/benchmarks/api/python_builtins.py20 def time_call_builtin_transform_identity_fn(self):CODE
3751 more matches not shown…
Decorative Section Separators431 hits · 1312 pts
SeverityFileLineSnippetContext
MEDIUM.gitlab-ci.yml4# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml6# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml88# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml93# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml234# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml240# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml427# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml434# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml888# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml893# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml977# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml983# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml1103# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml1109# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml1295# ==============================================================================COMMENT
MEDIUM.gitlab-ci.yml1305# ==============================================================================COMMENT
MEDIUM.gitlab/ci/common.yml4# ==============================================================================COMMENT
MEDIUM.gitlab/ci/common.yml11# ---------------COMMENT
MEDIUM.gitlab/ci/common.yml20# -------------------COMMENT
MEDIUM.gitlab/ci/common.yml42# -----------------COMMENT
MEDIUM.gitlab/ci/common.yml53# ------------COMMENT
MEDIUM.gitlab/ci/common.yml59# ==============================================================================COMMENT
MEDIUM.gitlab/ci/common.yml66# ==============================================================================COMMENT
MEDIUM.gitlab/ci/common.yml68# ==============================================================================COMMENT
MEDIUM.gitlab/ci/common.yml81# ==============================================================================COMMENT
MEDIUM.gitlab/ci/common.yml84# ==============================================================================COMMENT
MEDIUM.gitlab/ci/asv.yml4# ==============================================================================COMMENT
MEDIUM.gitlab/ci/asv.yml23# ==============================================================================COMMENT
MEDIUM.gitlab/ci/clang-build-and-test.yml4# ==============================================================================COMMENT
MEDIUM.gitlab/ci/clang-build-and-test.yml20# ==============================================================================COMMENT
MEDIUM.gitlab/ci/clang-build-and-test.yml33# ==============================================================================COMMENT
MEDIUM.gitlab/ci/clang-build-and-test.yml35# ==============================================================================COMMENT
MEDIUM.gitlab/ci/clang-build-and-test.yml84# ==============================================================================COMMENT
MEDIUM.gitlab/ci/clang-build-and-test.yml89# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml4# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml13# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml28# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml30# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml65# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml70# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml124# ==============================================================================COMMENT
MEDIUM.gitlab/ci/debug-build-and-test.yml127# ==============================================================================COMMENT
MEDIUMtools/ci/deploy_doc.py42# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci/deploy_doc.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci/deploy_doc.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci/deploy_doc.py296# ---------------------------------------------------------------------------STRING
MEDIUMdocs/generate_reference.py52# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate_reference.py96# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate_reference.py159# -----------------------------------------------------------------------------COMMENT
MEDIUMwarp/_src/deterministic.py900# ---------------------------------------------------------------------------COMMENT
MEDIUMwarp/_src/deterministic.py902# ---------------------------------------------------------------------------COMMENT
MEDIUMwarp/_src/deterministic.py1618# ---------------------------------------------------------------------------COMMENT
MEDIUMwarp/_src/deterministic.py1620# ---------------------------------------------------------------------------COMMENT
MEDIUMwarp/_src/builtins.py11230# ---------------------------------COMMENT
MEDIUMwarp/_src/builtins.py79# ---------------------------------COMMENT
MEDIUMwarp/_src/builtins.py611# ---------------------------------COMMENT
MEDIUMwarp/_src/builtins.py1614# ---------------------------------COMMENT
MEDIUMwarp/_src/builtins.py1874# ---------------------------------COMMENT
MEDIUMwarp/_src/builtins.py2166# ---------------------------------COMMENT
MEDIUMwarp/_src/builtins.py2319# ------------------COMMENT
371 more matches not shown…
Hallucination Indicators70 hits · 810 pts
SeverityFileLineSnippetContext
CRITICALwarp/_src/build.py97 err = warp._src.context.runtime.llvm.wp_compile_cuda(CODE
CRITICALwarp/_src/build.py118 err = warp._src.context.runtime.core.wp_cuda_compile_program(CODE
CRITICALwarp/_src/build.py151 return warp._src.context.runtime.core.wp_cuda_load_module(device.context, input_path.encode("utf-8"))CODE
CRITICALwarp/_src/build.py183 err = warp._src.context.runtime.llvm.wp_compile_cpp(CODE
CRITICALwarp/_src/build.py572 result = warp._src.context.runtime.core.wp_cuda_compile_dot(CODE
CRITICALwarp/_src/build.py656 result = warp._src.context.runtime.core.wp_cuda_compile_solver(CODE
CRITICALwarp/_src/build.py744 result = warp._src.context.runtime.core.wp_cuda_compile_fft(CODE
CRITICALwarp/_src/builtins.py16056 or not warp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/_src/builtins.py16431 and warp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/_src/builtins.py16692 or not warp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/_src/builtins.py16974 or not warp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/_src/builtins.py17189 or not warp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/_src/builtins.py17436 or not warp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/_src/paddle.py32 warp_device = warp._src.context.runtime.device_map.get(paddle_device)CODE
CRITICALwarp/_src/types.py622 return warp._src.context.runtime.core.wp_float_to_half_bits(value)CODE
CRITICALwarp/_src/types.py626 return warp._src.context.runtime.core.wp_half_bits_to_float(value)CODE
CRITICALwarp/_src/types.py630 return warp._src.context.runtime.core.wp_float_to_bfloat16_bits(value)CODE
CRITICALwarp/_src/types.py634 return warp._src.context.runtime.core.wp_bfloat16_bits_to_float(value)CODE
CRITICALwarp/_src/types.py4050 warp._src.context.runtime.core.wp_cuda_stream_wait_stream(CODE
CRITICALwarp/_src/types.py4484 warp._src.context.runtime.core.wp_array_fill_device(CODE
CRITICALwarp/_src/types.py4488 warp._src.context.runtime.core.wp_array_fill_host(carr_ptr, ARRAY_TYPE_REGULAR, cvalue_ptr, cvalue_size)CODE
CRITICALwarp/_src/types.py4938 warp._src.context.runtime.core.wp_cuda_ipc_get_mem_handle(self.ptr, ipc_handle_buffer)CODE
CRITICALwarp/_src/types.py5050 warp._src.context.runtime.core.wp_cuda_ipc_close_mem_handle(ptr)CODE
CRITICALwarp/_src/types.py5089 ptr = warp._src.context.runtime.core.wp_cuda_ipc_open_mem_handle(device.context, handle)CODE
CRITICALwarp/_src/types.py5233 warp._src.context.runtime.core.wp_array_fill_device(CODE
CRITICALwarp/_src/types.py5237 warp._src.context.runtime.core.wp_array_fill_host(ctype_ptr, self.type_id, cvalue_ptr, cvalue_size)CODE
CRITICALwarp/_src/types.py6950 warp._src.context.runtime.core.wp_volume_get_buffer_info(CODE
CRITICALwarp/_src/context.py5238 warp._src.context.runtime.core.wp_cuda_ipc_get_event_handle(CODE
CRITICALwarp/_src/context.py10287 device=device, cuda_event=warp._src.context.runtime.core.wp_cuda_ipc_open_event_handle(device.context, handle)CODE
CRITICALwarp/_src/utils.py2101 count = warp._src.context.runtime.core.wp_cuda_timing_get_result_count()CODE
CRITICALwarp/_src/utils.py2105 warp._src.context.runtime.core.wp_cuda_timing_end(result_buffer, count)CODE
CRITICALwarp/_src/utils.py2110 device = warp._src.context.runtime.context_map.get(r.context)CODE
CRITICALwarp/_src/utils.py1627 warp._src.context.runtime.tape.record_scope_begin(self.name)CODE
CRITICALwarp/_src/utils.py1658 warp._src.context.runtime.tape.record_scope_end()CODE
CRITICALwarp/_src/utils.py2084 warp._src.context.runtime.core.wp_cuda_timing_begin(cuda_filter)CODE
CRITICALwarp/_src/texture.py295 result = warp._src.context.runtime.core.wp_texture_descriptor_from_cuda_array(CODE
CRITICALwarp/_src/torch.py29 warp_device = warp._src.context.runtime.device_map.get(torch_device)CODE
CRITICALwarp/_src/jax/custom_call.py135 if wp._src.context.runtime.core.wp_cuda_launch_kernel(CODE
CRITICALwarp/_src/jax/ffi.py584 if wp._src.context.runtime.core.wp_cuda_launch_kernel(CODE
CRITICALwarp/_src/jax/ffi.py947 if not wp._src.context.runtime.core.wp_cuda_graph_launch(graph_exec, cuda_stream):CODE
CRITICALwarp/_src/jax/ffi.py980 if not wp._src.context.runtime.core.wp_cuda_graph_launch(graph_exec, cuda_stream):CODE
CRITICALwarp/_src/jax/ffi.py1019 if not wp._src.context.runtime.core.wp_cuda_graph_update_memcpy_batch(CODE
CRITICALwarp/_src/jax/ffi.py1033 if not wp._src.context.runtime.core.wp_cuda_graph_launch(graph_exec, cuda_stream):CODE
CRITICALwarp/tests/walkthrough_debug.py59assert wp._src.context.runtime.core.wp_is_debug_enabled(), (CODE
CRITICALwarp/tests/test_graph.py681 node = wp._src.context.runtime.core.wp_cuda_graph_insert_alloc_node(device.context, 1)CODE
CRITICALwarp/tests/test_graph.py689 node = wp._src.context.runtime.core.wp_cuda_graph_insert_free_node(device.context, alloc_node)CODE
CRITICALwarp/tests/test_graph.py697 node = wp._src.context.runtime.core.wp_cuda_graph_insert_empty_node(device.context)CODE
CRITICALwarp/tests/test_graph.py747 result = wp._src.context.runtime.core.wp_cuda_graph_alloc_query(a, b)CODE
CRITICALwarp/tests/test_graph.py756 result = wp._src.context.runtime.core.wp_cuda_graph_alloc_query(a, b)CODE
CRITICALwarp/tests/test_graph.py765 result = wp._src.context.runtime.core.wp_cuda_graph_alloc_query(a, b)CODE
CRITICALwarp/tests/test_graph.py723 result = wp._src.context.runtime.core.wp_cuda_graph_node_depends_on(a, b)CODE
CRITICALwarp/tests/cuda/test_async.py415 saved_error_output_enabled = wp._src.context.runtime.core.wp_is_error_output_enabled()CODE
CRITICALwarp/tests/cuda/test_async.py416 wp._src.context.runtime.core.wp_set_error_output_enabled(False)CODE
CRITICALwarp/tests/cuda/test_async.py421 wp._src.context.runtime.core.wp_set_error_output_enabled(saved_error_output_enabled)CODE
CRITICALwarp/tests/interop/test_jax.py1484 for c in wp._src.jax.ffi._FFI_CALLABLE_REGISTRY.values():CODE
CRITICALwarp/tests/tile/test_tile_fft.py12wp.init() # For wp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/tests/tile/test_tile_fft.py116 if wp_device.is_cuda and not wp._src.context.runtime.core.wp_is_mathdx_enabled():CODE
CRITICALwarp/tests/tile/test_tile_fft.py158 if wp_device.is_cuda and not wp._src.context.runtime.core.wp_is_mathdx_enabled():CODE
CRITICALwarp/tests/tile/test_tile_cholesky.py851 not wp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
CRITICALwarp/tests/tile/test_tile_cholesky.py853 wp._src.context.runtime.core.wp_is_mathdx_enabled()CODE
10 more matches not shown…
Unused Imports948 hits · 712 pts
SeverityFileLineSnippetContext
LOWbuild_docs.py9CODE
LOWbuild_llvm.py17CODE
LOWbuild_lib.py15CODE
LOWtools/ci/cuda_toolkit.py47CODE
LOWtools/ci/test_cuda_toolkit.py4CODE
LOWtools/ci/publishing/kitmaker_release.py17CODE
LOWtools/ci/publishing/set_nightly_version.py11CODE
LOWtools/ci/publishing/set_nightly_version.py11CODE
LOWtools/pre-commit-hooks/check_generated_files.py20CODE
LOWtools/pre-commit-hooks/check_generated_files.py30CODE
LOWtools/pre-commit-hooks/check_version_consistency.py18CODE
LOWtools/pre-commit-hooks/sync_skills.py18CODE
LOWtools/repoman/repoman.py6CODE
LOWtools/repoman/repoman.py7CODE
LOW…aude/skills/warp-release-audit/scripts/list_commits.py11CODE
LOW…e/skills/warp-release-audit/scripts/diff_public_api.py11CODE
LOW…skills/warp-release-notes/scripts/list_contributors.py21CODE
LOWdocs/generate_reference.py18CODE
LOW…odex/skills/warp-release-audit/scripts/list_commits.py11CODE
LOW…x/skills/warp-release-audit/scripts/diff_public_api.py11CODE
LOW…skills/warp-release-notes/scripts/list_contributors.py21CODE
LOWwarp/__init__.py104CODE
LOWwarp/__init__.py105CODE
LOWwarp/__init__.py106CODE
LOWwarp/__init__.py107CODE
LOWwarp/__init__.py108CODE
LOWwarp/__init__.py113CODE
LOWwarp/__init__.py114CODE
LOWwarp/__init__.py115CODE
LOWwarp/__init__.py116CODE
LOWwarp/__init__.py117CODE
LOWwarp/__init__.py118CODE
LOWwarp/__init__.py119CODE
LOWwarp/__init__.py120CODE
LOWwarp/__init__.py121CODE
LOWwarp/__init__.py122CODE
LOWwarp/__init__.py124CODE
LOWwarp/__init__.py125CODE
LOWwarp/__init__.py131CODE
LOWwarp/__init__.py132CODE
LOWwarp/__init__.py133CODE
LOWwarp/__init__.py134CODE
LOWwarp/__init__.py135CODE
LOWwarp/__init__.py136CODE
LOWwarp/__init__.py137CODE
LOWwarp/__init__.py138CODE
LOWwarp/__init__.py139CODE
LOWwarp/__init__.py140CODE
LOWwarp/__init__.py141CODE
LOWwarp/__init__.py142CODE
LOWwarp/__init__.py144CODE
LOWwarp/__init__.py145CODE
LOWwarp/__init__.py146CODE
LOWwarp/__init__.py147CODE
LOWwarp/__init__.py148CODE
LOWwarp/__init__.py149CODE
LOWwarp/__init__.py150CODE
LOWwarp/__init__.py151CODE
LOWwarp/__init__.py152CODE
LOWwarp/__init__.py153CODE
888 more matches not shown…
Deep Nesting424 hits · 304 pts
SeverityFileLineSnippetContext
LOWbuild_docs.py57CODE
LOWsetup.py87CODE
LOWbuild_llvm.py438CODE
LOWbuild_lib.py178CODE
LOWbuild_lib.py254CODE
LOWtools/ci/cuda_toolkit.py523CODE
LOWtools/ci/cuda_toolkit.py574CODE
LOWtools/ci/cuda_toolkit.py877CODE
LOWtools/ci/deploy_doc.py298CODE
LOWtools/ci/publishing/kitmaker_release.py102CODE
LOWtools/llvm/package_sdk.py42CODE
LOWtools/llvm/check_sdk.py115CODE
LOWtools/packman/packmanconf.py78CODE
LOW…e/skills/warp-release-audit/scripts/diff_public_api.py291CODE
LOW…skills/warp-release-notes/scripts/list_contributors.py225CODE
LOW…skills/warp-release-notes/scripts/list_contributors.py387CODE
LOWdocs/conf.py536CODE
LOWdocs/conf.py585CODE
LOWdocs/generate_reference.py304CODE
LOWdocs/generate_reference.py443CODE
LOW…x/skills/warp-release-audit/scripts/diff_public_api.py291CODE
LOW…skills/warp-release-notes/scripts/list_contributors.py225CODE
LOW…skills/warp-release-notes/scripts/list_contributors.py387CODE
LOWwarp/_src/build_dll.py144CODE
LOWwarp/_src/build_dll.py368CODE
LOWwarp/_src/build_dll.py582CODE
LOWwarp/_src/build.py319CODE
LOWwarp/_src/build.py388CODE
LOWwarp/_src/build.py622CODE
LOWwarp/_src/external_build.py80CODE
LOWwarp/_src/deterministic.py948CODE
LOWwarp/_src/deterministic.py977CODE
LOWwarp/_src/deterministic.py1089CODE
LOWwarp/_src/deterministic.py1980CODE
LOWwarp/_src/fabric.py176CODE
LOWwarp/_src/builtins.py1053CODE
LOWwarp/_src/builtins.py1168CODE
LOWwarp/_src/builtins.py1618CODE
LOWwarp/_src/builtins.py1878CODE
LOWwarp/_src/builtins.py4133CODE
LOWwarp/_src/builtins.py4294CODE
LOWwarp/_src/builtins.py4605CODE
LOWwarp/_src/builtins.py4764CODE
LOWwarp/_src/builtins.py4800CODE
LOWwarp/_src/builtins.py4953CODE
LOWwarp/_src/builtins.py5701CODE
LOWwarp/_src/builtins.py7023CODE
LOWwarp/_src/builtins.py12950CODE
LOWwarp/_src/builtins.py14131CODE
LOWwarp/_src/builtins.py16660CODE
LOWwarp/_src/builtins.py17144CODE
LOWwarp/_src/builtins.py12951CODE
LOWwarp/_src/paddle.py20CODE
LOWwarp/_src/paddle.py207CODE
LOWwarp/_src/dlpack.py119CODE
LOWwarp/_src/dlpack.py150CODE
LOWwarp/_src/dlpack.py311CODE
LOWwarp/_src/dlpack.py351CODE
LOWwarp/_src/dlpack.py460CODE
LOWwarp/_src/tape.py692CODE
364 more matches not shown…
Over-Commented Block280 hits · 262 pts
SeverityFileLineSnippetContext
LOWbuild_lib.py1# /// scriptCOMMENT
LOW.gitlab/ci/common.yml1# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW.gitlab/ci/common.yml21# Collapsible Section Markers:COMMENT
LOW.gitlab/ci/common.yml41# CONTAINER IMAGES:COMMENT
LOW.gitlab/ci/asv.yml1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW.gitlab/ci/clang-build-and-test.yml1# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOW.gitlab/ci/debug-build-and-test.yml1# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtools/llvm/test_package/test_package.cpp1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWtools/packman/python.sh1#!/bin/bashCOMMENT
LOWtools/packman/packmanconf.py1# Copyright 2021-2024 NVIDIA CORPORATIONCOMMENT
LOWlicenses/usd-LICENSE.txt21// compliance with the Apache License and the following modification to it:COMMENT
LOWdocs/conf.py801 #COMMENT
LOW.github/workflows/sphinx.yml41 fetch-depth: 0COMMENT
LOW.github/workflows/build-llvm-sdk.yml441 # created_at descending, and a release's created_at is the date of itsCOMMENT
LOWwarp/__init__.py21# modules to the public Warp modules their kernels/functions/structs belong to.COMMENT
LOWwarp/_src/deterministic.py1181 "atomic_max": REDUCE_OP_MAX,COMMENT
LOWwarp/_src/context.py201 # NOTE:COMMENT
LOWwarp/_src/context.py1961 # Compute the module hash and create a unique name.COMMENT
LOWwarp/_src/context.py2901COMMENT
LOWwarp/_src/context.py3501 # Pass 1: Forward functions that don't use wp.grad()COMMENT
LOWwarp/_src/context.py4061 # Check for unresolved static expressions in the function.COMMENT
LOWwarp/_src/context.py4501 # (forced rebuild when verifying autograd array access)COMMENT
LOWwarp/_src/codegen.py1921 # This will signal to the module builder that this module needs to be rebuilt even if the module hash is unchangCOMMENT
LOWwarp/_src/codegen.py2661 bound_arg_nodes = {}COMMENT
LOWwarp/_src/codegen.py3401 for stmt in node.body:COMMENT
LOWwarp/_src/codegen.py6341 def replace_static_expressions(adj):COMMENT
LOWwarp/_src/codegen.py6421 # identify the function, as the function may be redefined between the current timeCOMMENT
LOWwarp/_src/codegen.py6681#define int(x) cast_int(x)COMMENT
LOWwarp/_src/codegen.py6701#if defined(_MSC_VER)COMMENT
LOWwarp/_src/codegen.py6721COMMENT
LOWwarp/_src/codegen.py6741#define WP_MAXNREG(n) __maxnreg__(n)COMMENT
LOWwarp/_src/codegen.py7521 # of the concrete ``tile_register_t<...>`` type, C++ template argumentCOMMENT
LOWwarp/_src/render/render_opengl.py2901 # glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)COMMENT
LOWwarp/_src/apic/capture.py41 # Region tracking: id(base_array) -> (region_id, base_ptr, capacity, base_array).COMMENT
LOWwarp/_src/jax/xla_ffi.py121# XLA_FFI_DataType_PRED = 1,COMMENT
LOWwarp/_src/jax/xla_ffi.py281# XLA_FFI_AttrType_DICTIONARY = 2,COMMENT
LOWwarp/_src/jax/xla_ffi.py321 ("major_version", ctypes.c_int),COMMENT
LOWwarp/_src/jax/xla_ffi.py361# XLA_FFI_Error_Code_OK = 0,COMMENT
LOWwarp/_src/jax/xla_ffi.py461# _XLA_FFI_API_STRUCT_FIELD(XLA_FFI_Error_GetMessage);COMMENT
LOWwarp/_src/jax/xla_ffi.py501 # TODO(chaserileyroberts): Make this return the correct value and not a c_void_p.COMMENT
LOWwarp/native/bvh.cpp1// SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWwarp/native/crt.cpp1// SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWwarp/native/noise.h1061COMMENT
LOWwarp/native/range.h1// SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWwarp/native/version.h1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWwarp/native/svd.h1// SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWwarp/native/builtin.h1// SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWwarp/native/builtin.h21#define CUDA_CALLABLE_DEVICE __device__COMMENT
LOWwarp/native/builtin.h41COMMENT
LOWwarp/native/builtin.h301inline CUDA_CALLABLE float16 approx_div(float16 a, float16 b) { return float16(float(a) / float(b)); }COMMENT
LOWwarp/native/builtin.h701// through float losslessly because the result is always one of the inputs.COMMENT
LOWwarp/native/builtin.h2101/* Define __PTR for atomicAdd prototypes below, undef after done */COMMENT
LOWwarp/native/builtin.h2801} // namespace wpCOMMENT
LOWwarp/native/builtin.h2821#include "tile_reduce.h"COMMENT
LOWwarp/native/tile.h1// SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.COMMENT
LOWwarp/native/tile.h21// float4 already availableCOMMENT
LOWwarp/native/tile.h41#if defined(__CUDACC_RTC__) || (defined(__clang__) && defined(__CUDA__))COMMENT
LOWwarp/native/tile.h1141// (AArch64) or a static variable (x86-64).COMMENT
LOWwarp/native/tile.h1961 if (valid)COMMENT
LOWwarp/native/tile.h1981 // 2. Coalesced byte-copy (large element types only, sizeof(T) > 16)COMMENT
220 more matches not shown…
Cross-File Repetition39 hits · 195 pts
SeverityFileLineSnippetContext
HIGHasv/benchmarks/fem/integrate.py0utility base class for building fem matrices to test bsr matrix-vector multiplication.STRING
HIGHasv/benchmarks/sparse/matrix_vector.py0utility base class for building fem matrices to test bsr matrix-vector multiplication.STRING
HIGHasv/benchmarks/sparse/matrix_matrix.py0utility base class for building fem matrices to test bsr matrix-vector multiplication.STRING
HIGH…aude/skills/warp-release-audit/scripts/list_commits.py0return sorted, deduplicated gh issue numbers referenced in subject+body.STRING
HIGH…skills/warp-release-notes/scripts/list_contributors.py0return sorted, deduplicated gh issue numbers referenced in subject+body.STRING
HIGH…odex/skills/warp-release-audit/scripts/list_commits.py0return sorted, deduplicated gh issue numbers referenced in subject+body.STRING
HIGH…skills/warp-release-notes/scripts/list_contributors.py0return sorted, deduplicated gh issue numbers referenced in subject+body.STRING
HIGHwarp/_src/fem/quadrature/quadrature.py0structure containing arguments to be passed to side-related device functions.STRING
HIGHwarp/_src/fem/space/partition.py0structure containing arguments to be passed to side-related device functions.STRING
HIGHwarp/_src/fem/geometry/partition.py0structure containing arguments to be passed to side-related device functions.STRING
HIGHwarp/_src/fem/geometry/quadmesh.py0generate a cellarg struct for the given position vector type.STRING
HIGHwarp/_src/fem/geometry/hexmesh.py0generate a cellarg struct for the given position vector type.STRING
HIGHwarp/_src/fem/geometry/trimesh.py0generate a cellarg struct for the given position vector type.STRING
HIGHwarp/_src/fem/geometry/quadmesh.py0generate a sidearg struct for the given position vector type.STRING
HIGHwarp/_src/fem/geometry/hexmesh.py0generate a sidearg struct for the given position vector type.STRING
HIGHwarp/_src/fem/geometry/trimesh.py0generate a sidearg struct for the given position vector type.STRING
HIGHwarp/_src/fem/geometry/partition.py0fill the arguments to be passed to cell-related device functions.STRING
HIGHwarp/_src/fem/geometry/hexmesh.py0fill the arguments to be passed to cell-related device functions.STRING
HIGHwarp/_src/fem/geometry/trimesh.py0fill the arguments to be passed to cell-related device functions.STRING
HIGHwarp/_src/fem/geometry/tetmesh.py0fill the arguments to be passed to cell-related device functions.STRING
HIGHwarp/_src/fem/geometry/partition.py0fill the arguments to be passed to side-related device functions.STRING
HIGHwarp/_src/fem/geometry/hexmesh.py0fill the arguments to be passed to side-related device functions.STRING
HIGHwarp/_src/fem/geometry/trimesh.py0fill the arguments to be passed to side-related device functions.STRING
HIGHwarp/_src/fem/geometry/tetmesh.py0fill the arguments to be passed to side-related device functions.STRING
HIGHwarp/_src/fem/geometry/hexmesh.py0fill the arguments to be passed to side-index device functions.STRING
HIGHwarp/_src/fem/geometry/trimesh.py0fill the arguments to be passed to side-index device functions.STRING
HIGHwarp/_src/fem/geometry/tetmesh.py0fill the arguments to be passed to side-index device functions.STRING
HIGHwarp/_src/fem/geometry/nanogrid.py0device function for looking up the closest cell to a position.STRING
HIGHwarp/_src/fem/geometry/grid_2d.py0device function for looking up the closest cell to a position.STRING
HIGHwarp/_src/fem/geometry/grid_3d.py0device function for looking up the closest cell to a position.STRING
HIGHwarp/_src/fem/geometry/geometry.py0device function for looking up the closest cell to a position.STRING
HIGHwarp/_src/fem/geometry/grid_2d.py0create a filtered cell lookup function. args: filter_func: optional device predicate to filter candidate cells.STRING
HIGHwarp/_src/fem/geometry/grid_3d.py0create a filtered cell lookup function. args: filter_func: optional device predicate to filter candidate cells.STRING
HIGHwarp/_src/fem/geometry/geometry.py0create a filtered cell lookup function. args: filter_func: optional device predicate to filter candidate cells.STRING
HIGHwarp/tests/test_vec.py0get or create a cached kernel. args: kernel_cache: dictionary to cache kernels (module-local). func: kernel function to STRING
HIGHwarp/tests/test_vec_scalar_ops.py0get or create a cached kernel. args: kernel_cache: dictionary to cache kernels (module-local). func: kernel function to STRING
HIGHwarp/tests/test_quat.py0get or create a cached kernel. args: kernel_cache: dictionary to cache kernels (module-local). func: kernel function to STRING
HIGHwarp/tests/test_arithmetic.py0get or create a cached kernel. args: kernel_cache: dictionary to cache kernels (module-local). func: kernel function to STRING
HIGHwarp/tests/matrix/utils.py0get or create a cached kernel. args: kernel_cache: dictionary to cache kernels (module-local). func: kernel function to STRING
Excessive Try-Catch Wrapping178 hits · 184 pts
SeverityFileLineSnippetContext
LOWbuild_llvm.py511 except Exception as e:CODE
MEDIUMbuild_lib.py160 print(f"Error: libmathdx path does not exist or is not a directory: {libmathdx_path}")CODE
MEDIUMbuild_lib.py172 print(f"Error: libmathdx installation is missing '{name}' directory: {path}")CODE
MEDIUMbuild_lib.py417 print("Error: --llvm-path and --build-llvm are mutually exclusive.")CODE
MEDIUMbuild_lib.py425 print("Error: --no-cuda and --cuda-path are mutually exclusive.")CODE
MEDIUMbuild_lib.py428 print("Error: --clang-build-toolchain requires CUDA (incompatible with --no-cuda).")CODE
MEDIUMbuild_lib.py431 print("Error: --use-dynamic-cuda requires CUDA (incompatible with --no-cuda).")CODE
MEDIUMbuild_lib.py494 print("Error: --msvc-path and --sdk-path must be used together")CODE
MEDIUMbuild_lib.py577 print("Error: libmathdx not found. MathDx support is enabled but libmathdx could not be located.")CODE
LOWbuild_lib.py613 except Exception as e:CODE
LOWbuild_lib.py626 except Exception as e:CODE
LOWbuild_lib.py712 except Exception as e:CODE
LOWdesign/hardware-coherent-memory-access.md942 except Exception:CODE
LOWtools/ci/deploy_doc.py454 except Exception as e:STRING
MEDIUMtools/ci/deploy_doc.py455 print(f"Error: {e}", file=sys.stderr)STRING
MEDIUMtools/ci/publishing/update_git_hash.py73 print(f"Error: _git_commit_hash pattern not found in {config_file_path}")CODE
LOWtools/ci/publishing/update_git_hash.py85 except Exception as e:CODE
MEDIUMtools/ci/publishing/update_git_hash.py86 print(f"Error updating git hash in config file: {e}")CODE
MEDIUMtools/ci/publishing/kitmaker_release.py201 print(f"Error: Missing required configuration: {', '.join(missing)}")STRING
MEDIUMtools/ci/publishing/kitmaker_release.py206 print("Error: KITMAKER_API_TOKEN environment variable is not set")STRING
MEDIUMtools/ci/publishing/kitmaker_release.py213 print(f"Error: Too many wheel URLs ({len(args.wheel_urls)}). Maximum is 4.")STRING
MEDIUMtools/ci/publishing/kitmaker_release.py219 print(f"Error: Invalid wheel URL (must be https:// and end with .whl): {wheel_url}")STRING
LOWtools/ci/publishing/kitmaker_release.py260 except Exception as e:STRING
LOWtools/ci/publishing/set_nightly_version.py91 except Exception as e:CODE
MEDIUMtools/ci/publishing/set_nightly_version.py92 print(f"Error updating version in config file: {e}")CODE
LOWtools/ci/publishing/set_nightly_version.py116 except Exception as e:CODE
MEDIUMtools/ci/publishing/set_nightly_version.py117 print(f"Error updating version file: {e}")CODE
LOWtools/ci/publishing/set_nightly_version.py190 except Exception as e:CODE
MEDIUMtools/ci/publishing/set_nightly_version.py191 print(f"Error updating version: {e}")CODE
LOWdocs/conf.py374 except Exception:CODE
LOWdocs/conf.py499 except Exception:STRING
LOWdocs/conf.py593 except Exception:CODE
LOWwarp/_src/build_dll.py273 except Exception as e:CODE
MEDIUMwarp/_src/build_dll.py253def get_cuda_toolkit_version(cuda_home) -> tuple[int, int]:CODE
LOWwarp/_src/external_build.py233 except Exception as e:CODE
LOWwarp/_src/deterministic.py2433 except Exception:CODE
LOWwarp/_src/paddle.py58 except Exception as e:CODE
MEDIUMwarp/_src/types.py132def __eq__(self, x):CODE
MEDIUMwarp/_src/types.py3792def _init_from_ptr(self, ptr, dtype, shape, strides, capacity, device, pinned, dCODE
MEDIUMwarp/_src/types.py3846def _init_new(self, dtype, shape, strides, device, pinned):CODE
LOWwarp/_src/types.py3458 except Exception:CODE
LOWwarp/_src/types.py3604 except Exception as e:CODE
LOWwarp/_src/types.py3638 except Exception as e:CODE
LOWwarp/_src/types.py3664 except Exception as e:CODE
LOWwarp/_src/types.py3683 except Exception as e:CODE
LOWwarp/_src/types.py3714 except Exception as e:CODE
LOWwarp/_src/types.py3744 except Exception as e:CODE
LOWwarp/_src/types.py3769 except Exception:CODE
LOWwarp/_src/types.py3796 except Exception:CODE
LOWwarp/_src/types.py3850 except Exception:CODE
LOWwarp/_src/types.py4442 except Exception as e:CODE
LOWwarp/_src/types.py5081 except Exception:CODE
LOWwarp/_src/types.py5212 except Exception as e:CODE
LOWwarp/_src/types.py8385 except Exception as e:CODE
LOWwarp/_src/logger.py89 except Exception:CODE
MEDIUMwarp/_src/context.py640def get_builtin(self, *args, **kwargs) -> BuiltinCallDesc:CODE
MEDIUMwarp/_src/context.py6050def __del__(self):CODE
LOWwarp/_src/context.py4605 except Exception as e:CODE
LOWwarp/_src/context.py4613 except Exception as reported:CODE
LOWwarp/_src/context.py2821 except Exception as e:CODE
118 more matches not shown…
Self-Referential Comments63 hits · 170 pts
SeverityFileLineSnippetContext
MEDIUM.gitlab/ci/common.yml7# This file defines reusable configuration snippets that are shared across allCOMMENT
MEDIUM.gitlab/ci/common.yml39# Define a PowerShell function to get timestamps for Windows jobsCOMMENT
MEDIUM.gitlab/ci/asv.yml158 # Create a working asv env first (no project build), so subsequentCOMMENT
MEDIUMtools/ci/publishing/update_git_hash.py66 # Define the regex to match the _git_commit_hash assignmentCOMMENT
MEDIUMtools/ci/publishing/set_nightly_version.py76 # Define the regex to match the version assignment, including optional local version identifiersCOMMENT
MEDIUMdocs/generate_reference.py542 # Create a dummy module for the rest of the code to run smoothly.STRING
MEDIUMwarp/_src/context.py1916 # Create a new temporary module that will be renamed based on hash.COMMENT
MEDIUMwarp/_src/context.py1948 # Create the kernel object and register it with the moduleCOMMENT
MEDIUMwarp/_src/utils.py906 # Create a Warp function from the input functionCOMMENT
MEDIUMwarp/_src/texture.py181 # Create a 1D textureSTRING
MEDIUMwarp/_src/texture.py184 # Create a 2D textureSTRING
MEDIUMwarp/_src/texture.py187 # Create a 3D textureSTRING
MEDIUMwarp/_src/render/render_opengl.py3286 # Create a new instance.COMMENT
MEDIUMwarp/_src/render/render_opengl.py3340 # Create a new instance if necessary.COMMENT
MEDIUMwarp/_src/jax/custom_call.py189 # Create the batched primitive.COMMENT
MEDIUMwarp/_src/thirdparty/unittest_parallel.py232 # Create the temporary directory (for coverage files)STRING
MEDIUMwarp/_src/thirdparty/unittest_parallel.py271 # Create the shared index object used in Warp caches (NVIDIA Modification)STRING
MEDIUMwarp/_src/thirdparty/unittest_parallel.py355 # Create a new single-process pool for each test suiteSTRING
MEDIUMwarp/_src/thirdparty/unittest_parallel.py525 # Create the coverage objectSTRING
MEDIUMwarp/tests/test_utils.py96 values = scalar_values_base[::2] # Create a non-contiguous Warp array view.CODE
MEDIUMwarp/tests/test_utils.py132 values = vector_values_base[1::2] # Create a non-contiguous Warp array view.CODE
MEDIUMwarp/tests/aux_test_reference.py3# This file is used to test reloading module references.COMMENT
MEDIUMwarp/tests/test_sparse.py915 # Create a dense "sparse" matrixCOMMENT
MEDIUMwarp/tests/test_unique_module.py149 # Define an identical kernel without fast_math to prove the optionCOMMENT
MEDIUMwarp/tests/test_struct.py736 # Create an array, then assign it to the struct.COMMENT
MEDIUMwarp/tests/aux_test_reference_reference.py3# This file is used to test reloading module references.COMMENT
MEDIUMwarp/tests/unittest_suites.py10# This module is a lazy suite manifest: importing it should not import andCOMMENT
MEDIUMwarp/tests/test_reload.py173# This file is used to test reloading module references.COMMENT
MEDIUMwarp/tests/test_reload.py186# This file is used to test reloading module references.COMMENT
MEDIUMwarp/tests/test_indexedarray.py168 # Create the indexedarray on CPU, then move the struct to CUDA.COMMENT
MEDIUMwarp/tests/cuda/test_streams.py395 # Create a high-priority stream with a priority value that is smaller than -1 (clamping expected)COMMENT
MEDIUMwarp/tests/cuda/test_streams.py398 # Create a low-priority stream with a priority value that is greater than 0 (clamping expected)COMMENT
MEDIUMwarp/tests/cuda/test_texture.py1313 # Create a simple 2x2 texture with distinct values:COMMENT
MEDIUMwarp/tests/cuda/test_texture.py1376 # Create a simple 2x2 texture with distinct values:COMMENT
MEDIUMwarp/tests/cuda/test_texture.py1463 # Create a 2x2x2 texture with values 0-7COMMENT
MEDIUMwarp/tests/cuda/test_texture.py1509 # Create a 2x2x2 texture with values 0-7COMMENT
MEDIUMwarp/tests/cuda/test_texture.py2498 # Create a texture with a constant valueCOMMENT
MEDIUMwarp/tests/cuda/test_texture.py2534 # Create a texture with a constant valueCOMMENT
MEDIUMwarp/tests/interop/test_dlpack.py481 # Create a numpy array from a JAX array to respect XLA alignment needsCOMMENT
MEDIUMwarp/tests/interop/test_dlpack.py528 # Create a numpy array from a JAX array to respect XLA alignment needsCOMMENT
MEDIUMwarp/tests/deterministic/test_deterministic_options.py138 # Create a kernel with a per-module deterministic override.COMMENT
MEDIUMwarp/tests/tile/test_tile_sort.py55 rng = np.random.default_rng(42) # Create a random generator instanceCODE
MEDIUMwarp/tests/geometry/test_bvh.py400 # Create a single AABB spanning x=[0.5, 1.0], extending across y and z axesCOMMENT
MEDIUMwarp/tests/geometry/test_mesh_query_aabb.py380 # Create a simple mesh (two triangles forming a quad)COMMENT
MEDIUMwarp/tests/geometry/test_mesh_query_aabb.py486 # Create a query box that should intersect multiple trianglesCOMMENT
MEDIUMwarp/tests/geometry/test_mesh_query_aabb.py553 # Create a simple mesh (two triangles forming a quad)COMMENT
MEDIUMwarp/examples/core/example_graph_capture.py120 # Create the animationCOMMENT
MEDIUMwarp/examples/core/example_work_queue.py86 # Create a work queue with capacity 1024COMMENT
MEDIUMwarp/examples/core/example_torch.py32# Define the Rosenbrock functionCOMMENT
MEDIUMwarp/examples/core/example_torch.py122 # Create a grid of pointsCOMMENT
MEDIUMwarp/examples/core/example_torch.py150 # Create a scatter plot (initially empty)COMMENT
MEDIUMwarp/examples/core/example_torch.py212 # Create the animationCOMMENT
MEDIUMwarp/examples/core/example_spin_lock.py55 # Create a lock array initialized to 0 (unlocked)COMMENT
MEDIUMwarp/examples/fem/example_navier_stokes.py128 # Define an implicit field for our boundary condition value and integrateCOMMENT
MEDIUMwarp/examples/tile/example_tile_block_cholesky.py321 # Create a symmetric positive definite matrixCOMMENT
MEDIUMwarp/examples/tile/example_tile_block_cholesky.py427 # Create a stream for graph captureCOMMENT
MEDIUMwarp/examples/tile/example_tile_nbody.py110 # Create a figure and a 3D axis for the plotCOMMENT
MEDIUMwarp/examples/tile/example_tile_nbody.py179 # Create the animationCOMMENT
MEDIUM…les/g11_stage_pipeline/src/stage_pipeline/reduction.py10# This module is always launched at BLOCK_DIM, so declare it as the moduleCOMMENT
MEDIUM…les/g11_stage_pipeline/src/stage_pipeline/transport.py10# This module is always launched at BLOCK_DIM, so declare it as the moduleCOMMENT
3 more matches not shown…
Docstring Block Structure32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHtools/ci/publishing/set_nightly_version.py14Return an incremented version based on the input semantic version. Args: version: Input version string STRING
HIGHwarp/_src/build_dll.py369Get LLVM include directory paths based on configuration. Args: args: The argument namespace containing llvmSTRING
HIGHwarp/_src/types.py4377Set all array entries to `value` args: value: The value to set every array entry to. Must be converSTRING
HIGHwarp/_src/types.py5056Create an array from an IPC handle. The ``dtype``, ``shape``, and optional ``strides`` arguments should match tSTRING
HIGHwarp/_src/types.py6003Rebuild the BVH hierarchy **in place** from the current ``lowers``/``uppers`` arrays. This method does not alloSTRING
HIGHwarp/_src/types.py6921Create a new :class:`Volume` aliasing an in-memory grid buffer. In contrast to :meth:`load_from_nvdb` which shoSTRING
HIGHwarp/_src/types.py7579Rebuild this volume's topology in place from ``points``. The volume must have been created with ``rebuildable=TSTRING
HIGHwarp/_src/context.py5955Validate :data:`warp.config.cuda_arch_suffix` and return the suffix string. This is a device-independent validationSTRING
HIGHwarp/_src/context.py6182Return the address of a named parameter region in a loaded graph. The returned address is a host pointer for a STRING
HIGHwarp/_src/context.py9070Get the CUDA memory pool release threshold on the device. Parameters: device: The :class:`~warp._src.contexSTRING
HIGHwarp/_src/context.py9099Get the amount of memory from the device's memory pool that is currently in use by the application. Parameters: STRING
HIGHwarp/_src/context.py9128Get the application's memory usage high-water mark from the device's CUDA memory pool. Parameters: device: STRING
HIGHwarp/_src/context.py10058Return whether ``device`` can directly access ``resource``. In this release, ``resource`` must be a concrete Warp aSTRING
HIGHwarp/_src/context.py10262Create an event from an IPC handle. Args: handle: The interprocess event handle for an existing CUDA event.STRING
HIGHwarp/_src/context.py11128Validate launch dimensions and compute the total thread count. This is the common normalization path for kernel lauSTRING
HIGHwarp/_src/context.py11759Return properties of a compiled CUDA kernel. The result contains ``"register_count"`` in registers per thread and STRING
HIGHwarp/_src/context.py11802Suggest a CUDA block size that maximizes occupancy for a kernel. Queries the CUDA driver's occupancy API (``cuOSTRING
HIGHwarp/_src/context.py12139Return the fully qualified module name of the caller. Uses a multi-step fallback chain so that callers running undeSTRING
HIGHwarp/_src/context.py12287Resolve a module from a string, Module, or types.ModuleType. Args: module: The module to resolve. RetuSTRING
HIGHwarp/_src/context.py12356Compile a module (ahead of time) for a given device. The returned artifact-path contract is experimental and may chSTRING
HIGHwarp/_src/utils.py378Perform run-length encoding on an array. This function compresses an array by replacing consecutive identical valueSTRING
HIGHwarp/_src/utils.py523Compute the sum of array elements. This function computes the sum of array elements, optionally along a specified aSTRING
HIGHwarp/_src/utils.py659Compute the inner product of two arrays. This function computes the dot product between two arrays, optionally alonSTRING
HIGHwarp/_src/math.py391Construct a quaternion from Euler angles and an axis sequence. Args: e: Euler angles in radians. i:STRING
HIGHwarp/_src/marching_cubes.py821Extract a triangular mesh from a 3D scalar field. This function generates an isosurface by processing the entirSTRING
HIGHwarp/_src/fem/space/__init__.py116 Makes a space topology from a geometry and an element-based shape function. Args: geo: The geometry toSTRING
HIGHwarp/_src/fem/space/shape/__init__.py71Equip a reference element with a shape function basis. Args: element: the type of reference element on whicSTRING
HIGHwarp/_src/optim/linear.py1050Compute an approximate solution to a symmetric, positive-definite linear system using the Conjugate Gradient algoritSTRING
HIGHwarp/_src/optim/linear.py1303Compute an approximate solution to a symmetric, positive-definite linear system using the Conjugate Residual algoritSTRING
HIGHwarp/examples/distributed/example_jacobi_mpi.py39Return the device that should be used for the current rank. This function is used to ensure that multiple MPI ranksSTRING
HIGHwarp/examples/distributed/example_jacobi_nccl.py40Return the Warp device this rank should use. Splits the communicator into a node-local group and maps each local raSTRING
HIGHwarp/examples/distributed/example_jacobi_nvshmem.py51Return the Warp device this rank should use. Splits the communicator into a node-local group and maps each local raSTRING
AI Slop Vocabulary20 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMdocs/generate_reference.py323 # to facilitate indexing with bisect.STRING
LOWwarp/_src/types.py4078 # for 'empty' arrays we just return the type information, these are used in kernel function signaturesCOMMENT
MEDIUMwarp/_src/context.py14777 # Use warp_home (defined at module level) for robust path resolutionCOMMENT
MEDIUMwarp/_src/context.py15733 """Print a comprehensive snapshot of the Warp build and runtime environment.STRING
LOWwarp/_src/codegen.py829 # Instead, we just create a stub annotation, which is not a fully usable array object.COMMENT
MEDIUMwarp/_src/optim/linear.py957 # Not strictly necessary, but makes it more robust to user-provided LinearOperatorsCOMMENT
MEDIUMwarp/_src/optim/linear.py1198 # Not strictly necessary, but makes it more robust to user-provided LinearOperatorsCOMMENT
MEDIUMwarp/_src/optim/linear.py1498 # Not strictly necessary, but makes it more robust to user-provided LinearOperatorsCOMMENT
MEDIUMwarp/_src/optim/linear.py1821 # Not strictly necessary, but makes it more robust to user-provided LinearOperatorsCOMMENT
MEDIUMwarp/native/bvh.h497 // Capsule: inflate bounds by radius and use the robust slab test so axis-alignedCOMMENT
MEDIUMwarp/native/clang/clang.cpp920// robust against virtual address space fragmentation.COMMENT
MEDIUMwarp/tests/test_ctypes.py116# construct kernel + test harness for given matrix / vector typesCOMMENT
MEDIUMwarp/tests/test_graph.py518 # Disabled to avoid CI noise while we find a more robust measurement strategy.COMMENT
MEDIUMwarp/tests/fem/test_fem_examples.py64 # (mirroring the core example harness) and remove it after a passing run,COMMENT
MEDIUMwarp/tests/fem/test_fem_examples.py131 # Clean up the output stage on success (mirrors the core example harness).COMMENT
MEDIUMwarp/tests/geometry/test_mesh_query_aabb.py902 # on the triangle within radius), not merely AABB overlaps. Use dilate/erode bands to stay robust toCOMMENT
MEDIUMwarp/examples/fem/example_nonconforming_contact.py17# but more robust methods could be considered (e.g. Augmented Lagrangian)COMMENT
LOWwarp/examples/fem/example_kelvin_helmholtz.py393 # Binary-search-free conservative bound: just use the averageCOMMENT
MEDIUM…es/g11_stage_pipeline/src/stage_pipeline/statistics.py4"""Statistics stage: robust summaries over a window."""STRING
MEDIUMskills/warp-eval/scripts/validate_report_schema.py293 # cannot stop an agent hand-rolling a harness that skips synchronization orCOMMENT
Structural Annotation Overuse29 hits · 47 pts
SeverityFileLineSnippetContext
LOWwarp/_src/context.py14775 # Step 1: Parse __init__.py to identify Python API imports and conflictsCOMMENT
LOWwarp/_src/context.py14899 # Step 2: Write headerCOMMENT
LOWwarp/_src/context.py15017 # Step 3: Emit __init__.py non-import lines (docstring, __version__, __getattr__, etc.)COMMENT
LOWwarp/_src/context.py15285 # Step 4: Generate merged stubs for function conflictsCOMMENT
LOWwarp/_src/context.py15350 # Step 5: Generate stubs for non-conflicting builtinsCOMMENT
LOWwarp/_src/context.py2957 # NOTE: This method hashes all possible overloads that a function call could resolve to.COMMENT
LOWwarp/native/svd.h511 // Step 1: Compute ATACOMMENT
LOWwarp/native/svd.h516 // Step 2: EigenanalysisCOMMENT
LOWwarp/native/svd.h521 // Step 3: Singular valuesCOMMENT
LOWwarp/native/svd.h540 // Step 4: Eigenvectors (find V)COMMENT
LOWwarp/native/svd.h554 // Step 5: Compute UCOMMENT
LOWwarp/native/svd.h562 // Step 6: Set SCOMMENT
LOWwarp/tests/test_sgd.py24 # Step 1: momentum buffer should be initialized to gradientCOMMENT
LOWwarp/tests/test_sgd.py36 # Step 2: momentum buffer should accumulateCOMMENT
LOWwarp/examples/cpp/01_source_include/README.md82python compile_kernel.py # Step 1: Compile kernels to .cuCODE
LOWwarp/examples/cpp/01_source_include/README.md83cmake -B build -DCMAKE_BUILD_TYPE=Release # Step 2: ConfigureCODE
LOWwarp/examples/cpp/01_source_include/README.md84cmake --build build --config Release # Step 3: BuildCODE
LOWwarp/examples/cpp/01_source_include/README.md85./build/01_source_include # Step 4: Run (Unix) or build\Release\01_source_include.exe (Windows)CODE
LOWwarp/examples/cpp/00_cubin_launch/README.md81python compile_kernel.py # Step 1: Compile kernel to CUBINCODE
LOWwarp/examples/cpp/00_cubin_launch/README.md82cmake -B build -DCMAKE_BUILD_TYPE=Release # Step 2: ConfigureCODE
LOWwarp/examples/cpp/00_cubin_launch/README.md83cmake --build build --config Release # Step 3: BuildCODE
LOWwarp/examples/cpp/00_cubin_launch/README.md84./build/00_cubin_launch # Step 4: Run (Unix) or build\Release\00_cubin_launch.exe (Windows)CODE
LOWwarp/examples/cpp/03_apic_visualization_cpu/README.md64# Step 1: Capture the graph (requires Python + Warp)COMMENT
LOWwarp/examples/cpp/03_apic_visualization_cpu/README.md67# Step 2: Configure and buildCOMMENT
LOWwarp/examples/cpp/03_apic_visualization_cpu/README.md71# Step 3: RunCOMMENT
LOWwarp/examples/cpp/02_apic_visualization/README.md82python capture_wave.py # Step 1: Capture the graphCODE
LOWwarp/examples/cpp/02_apic_visualization/README.md83cmake -B build -DCMAKE_BUILD_TYPE=Release # Step 2: ConfigureCODE
LOWwarp/examples/cpp/02_apic_visualization/README.md84cmake --build build --config Release # Step 3: BuildCODE
LOWwarp/examples/cpp/02_apic_visualization/README.md85./build/02_apic_visualization # Step 4: RunCODE
AI Structural Patterns61 hits · 46 pts
SeverityFileLineSnippetContext
LOWwarp/_src/build.py64CODE
LOWwarp/_src/build.py154CODE
LOWwarp/_src/builtins.py4239CODE
LOWwarp/_src/builtins.py4444CODE
LOWwarp/_src/builtins.py4541CODE
LOWwarp/_src/tape.py692CODE
LOWwarp/_src/tape.py1214CODE
LOWwarp/_src/tape.py352CODE
LOWwarp/_src/types.py3315CODE
LOWwarp/_src/types.py7213CODE
LOWwarp/_src/types.py7425CODE
LOWwarp/_src/context.py1731CODE
LOWwarp/_src/context.py2192CODE
LOWwarp/_src/context.py11213CODE
LOWwarp/_src/context.py228CODE
LOWwarp/_src/context.py10677CODE
LOWwarp/_src/context.py15420CODE
LOWwarp/_src/autograd.py33CODE
LOWwarp/_src/autograd.py239CODE
LOWwarp/_src/autograd.py708CODE
LOWwarp/_src/autograd.py854CODE
LOWwarp/_src/utils.py1569CODE
LOWwarp/_src/texture.py201CODE
LOWwarp/_src/texture.py1152CODE
LOWwarp/_src/texture.py1232CODE
LOWwarp/_src/texture.py1314CODE
LOWwarp/_src/sparse.py4200CODE
LOWwarp/_src/codegen.py1798CODE
LOWwarp/_src/codegen.py2457CODE
LOWwarp/_src/fem/cache.py582CODE
LOWwarp/_src/fem/integrate.py1895CODE
LOWwarp/_src/fem/integrate.py3161CODE
LOWwarp/_src/fem/geometry/adaptive_nanogrid.py74CODE
LOWwarp/_src/fem/geometry/nanogrid.py1368CODE
LOWwarp/_src/fem/geometry/nanogrid.py555CODE
LOWwarp/_src/render/render_usd.py648CODE
LOWwarp/_src/render/render_opengl.py992CODE
LOWwarp/_src/render/render_opengl.py1525CODE
LOWwarp/_src/render/render_opengl.py3222CODE
LOWwarp/_src/optim/linear.py1035CODE
LOWwarp/_src/optim/linear.py1288CODE
LOWwarp/_src/optim/linear.py1577CODE
LOWwarp/_src/optim/linear.py1918CODE
LOWwarp/_src/optim/linear.py847CODE
LOWwarp/_src/optim/linear.py1390CODE
LOWwarp/_src/optim/linear.py1668CODE
LOWwarp/_src/jax/custom_call.py398CODE
LOWwarp/_src/jax/ffi.py1307CODE
LOWwarp/_src/jax/ffi.py1719CODE
LOWwarp/tests/unittest_serial.py27CODE
LOWwarp/tests/cuda/test_async.py308CODE
LOWwarp/examples/core/example_work_queue.py18CODE
LOWwarp/examples/fem/example_apic_fluid.py207CODE
LOWwarp/examples/fem/example_kelvin_helmholtz.py421CODE
LOWwarp/examples/fem/utils.py263CODE
LOWwarp/examples/fem/example_stokes.py57CODE
LOWwarp/examples/fem/example_diffusion.py61CODE
LOWwarp/examples/fem/example_darcy_ls_optimization.py188CODE
LOWwarp/jax_experimental/__init__.py42CODE
LOWwarp/jax_experimental/ffi.py36CODE
1 more matches not shown…
Redundant / Tautological Comments33 hits · 43 pts
SeverityFileLineSnippetContext
LOWbuild_lib.py233 # Check if the libmathdx target directory exists and is not a symbolic linkCOMMENT
LOWtools/packman/bootstrap/install_package.py137 # Read the file in binary mode and update the hash object with dataCOMMENT
LOWdocs/generate_reference.py360 # Check if there's any public symbol that we missed while parsing the AST.STRING
LOWdocs/generate_reference.py582 # Check if this submodule name exists as a symbol in the parent moduleSTRING
LOWwarp/_src/build_dll.py99 # Print output even on success to show warningsCOMMENT
LOWwarp/_src/build_dll.py158 # Check if Visual Studio environment already configured (conda, Docker, etc.)COMMENT
LOWwarp/_src/build_dll.py340 # Check if the directory existsCOMMENT
LOWwarp/_src/dlpack.py479 # Check if the source lives on a CUDA deviceCOMMENT
LOWwarp/_src/context.py1990 # Check if we've already created a module with this nameCOMMENT
LOWwarp/_src/context.py2496 # Check if the Warp module was created using a different loader object; if so,COMMENT
LOWwarp/_src/context.py10453 # Check if value is a Texture object that needs conversionCOMMENT
LOWwarp/_src/context.py12421 # Check if there are no compilable kernelsCOMMENT
LOWwarp/_src/context.py14956 # Check if this line is a top-level import statement (no leading whitespace).COMMENT
LOWwarp/_src/context.py15448 # Check if all overloads have identical input_types.COMMENT
LOWwarp/_src/marching_cubes.py145 # Check if we generate a vertexCOMMENT
LOWwarp/_src/codegen.py3775 # Check if there is any user-defined overload for this operatorCOMMENT
LOWwarp/_src/codegen.py4083 # Check if we can resolve the argument as a static expression.COMMENT
LOWwarp/_src/codegen.py4339 # Check if this is a warp.grad() callCOMMENT
LOWwarp/_src/codegen.py4351 # Check if we're calling a GradWrapper (result of warp.grad(func))COMMENT
LOWwarp/_src/codegen.py5101 # Check if the rhs corresponds to an unsupported construct.COMMENT
LOWwarp/_src/fem/integrate.py236 # Check if we're assigning a fieldCOMMENT
LOWwarp/_src/fem/integrate.py1177 # Check if kernel exist in cacheCOMMENT
LOWwarp/_src/fem/integrate.py2660 # Check if kernel exist in cacheCOMMENT
LOWwarp/_src/fem/linalg.py346 # Check if new block is startingCOMMENT
LOWwarp/_src/fem/geometry/hexmesh.py873 # Check if other_v has been seenCOMMENT
LOWwarp/_src/fem/geometry/tetmesh.py605 # Check if other_v has been seenCOMMENT
LOWwarp/_src/render/render_opengl.py3274 # Check if we already have that shape registered and can performCOMMENT
LOWwarp/_src/jax/ffi.py1637 # Check if annotation is a warp array type (annotation is an instance of wp.array)COMMENT
LOWwarp/native/intersect.h1082 # Check if either or both segments degenerate into pointsCOMMENT
LOWwarp/tests/aot/test_module_aot.py640 # Set mtime to a known past timeCOMMENT
LOWwarp/examples/core/example_work_queue.py36 # Check if queue is fullCOMMENT
LOWwarp/examples/core/example_work_queue.py56 # Check if queue is emptyCOMMENT
LOWwarp/examples/benchmarks/benchmark_tile_sort.py140 # Print resultsCOMMENT
Cross-Language Confusion8 hits · 42 pts
SeverityFileLineSnippetContext
HIGHwarp/_src/build_dll.py37 output: Decoded output of selected MSVC script ``&& echo MARKER && set``.STRING
HIGHwarp/_src/build_dll.py929 opt_undefined = "-Wl,-undefined,dynamic_lookup"CODE
HIGHwarp/_src/build_dll.py958 # Format: " (undefined) external _SymName (dynamically looked up)"COMMENT
HIGHwarp/_src/build_dll.py977 raise RuntimeError("Unexpected undefined symbols in " + dll_path + ":\n" + "\n".join(undefined))CODE
HIGHwarp/_src/builtins.py2527 The tile's contents are undefined; the caller is responsible for overwritingCODE
HIGHwarp/_src/optim/linear.py245 - ``"id"``: Identity (null) preconditionerSTRING
HIGHwarp/tests/test_apic.py1607 # its three relocation kinds (data, grad/null, indices[d]) surviveCOMMENT
HIGHwarp/tests/tile/test_tile_empty.py15# np.empty: contents are undefined, the user must overwrite every elementCOMMENT
Modern Structural Boilerplate42 hits · 36 pts
SeverityFileLineSnippetContext
LOWbuild_docs.py54logger = logging.getLogger(__name__)CODE
LOWtools/ci/deploy_doc.py275def update_stable(gh_pages_dir: Path, stable_version: str) -> None:STRING
LOWdocs/generate_reference.py45logger = logging.getLogger(__name__)CODE
LOWwarp/build_experimental.py13__all__ = ["add_builtin", "add_native_type"]CODE
LOWwarp/_src/external_build.py21__all__ = ["add_builtin", "add_native_type"]CODE
LOWwarp/_src/constants.py8__all__ = [ # noqa: RUF022CODE
LOWwarp/_src/logger.py128def set_logger(logger: Logger | None) -> None:CODE
LOWwarp/_src/context.py9216def _set_cached_peer_access_enabled(target_device: Device, peer_device: Device, enable: bool) -> None:CODE
LOWwarp/_src/context.py9221def set_peer_access_enabled(target_device: DeviceLike, peer_device: DeviceLike, enable: bool) -> None:CODE
LOWwarp/_src/context.py9306def _set_cached_mempool_access_enabled(target_device: Device, peer_device: Device, enable: bool) -> None:CODE
LOWwarp/_src/context.py9311def set_mempool_access_enabled(target_device: DeviceLike, peer_device: DeviceLike, enable: bool) -> None:CODE
LOWwarp/_src/context.py4815 def _set_strip_hash(self, value: bool) -> None:CODE
LOWwarp/_src/context.py5726 def set_stream(self, stream: Stream, sync: bool = True) -> None:CODE
LOWwarp/_src/context.py6107 def set_param(self, name: str, arr) -> None:CODE
LOWwarp/_src/context.py8509 def set_default_device(self, ident: DeviceLike) -> None:CODE
LOWwarp/_src/context.py8773def set_device(ident: DeviceLike) -> None:CODE
LOWwarp/_src/context.py8933def set_mempool_enabled(device: DeviceLike, enable: bool) -> None:CODE
LOWwarp/_src/context.py8969def set_cuda_allocator(allocator: Allocator | None) -> None:CODE
LOWwarp/_src/context.py8989def set_device_allocator(device: DeviceLike, allocator: Allocator | None) -> None:CODE
LOWwarp/_src/context.py9026def set_mempool_release_threshold(device: DeviceLike, threshold: int | float) -> None:CODE
LOWwarp/_src/context.py9366def set_stream(stream: Stream, device: DeviceLike = None, sync: bool = False) -> None:CODE
LOWwarp/_src/autograd.py16__all__ = [CODE
LOWwarp/_src/generated_files.py22__all__ = [CODE
LOWwarp/_src/sparse.py33__all__ = [CODE
LOWwarp/_src/math.py13__all__ = [CODE
LOWwarp/_src/codegen.py516 def set_fabricarray_value(inst: StructInstance, value: fabricarray | None) -> None:CODE
LOWwarp/_src/codegen.py532 def set_indexedfabricarray_value(inst: StructInstance, value: indexedfabricarray | None) -> None:CODE
LOWwarp/_src/fem/integrate.py56__all__ = ["integrate", "interpolate"]CODE
LOWwarp/_src/optim/linear.py14__all__ = [CODE
LOWwarp/examples/fem/utils.py20__all__ = [CODE
LOW…iles/g11_stage_pipeline/src/stage_pipeline/__init__.py13__all__ = ["geometry", "reduction", "spectral", "statistics", "transport"]CODE
LOW…es/g08_tile_projection/src/tile_projection/__init__.py9__all__ = ["rebuild_device_code", "run_session"]CODE
LOW…ls/files/g02_stencil_bank/src/stencil_bank/__init__.py9__all__ = ["StencilBank", "stencil_loss"]CODE
LOW…vals/files/g12_dense_stage/src/dense_stage/__init__.py8__all__ = ["kernels"]CODE
LOW…1_particle_preprocessing/src/particle_prep/__init__.py9__all__ = ["ParticlePipeline", "Plugin"]CODE
LOW…/files/g04_image_pyramid/src/image_pyramid/__init__.py9__all__ = ["ImagePyramid", "adaptive_filter"]CODE
LOW…s/files/g10_shared_solver/src/field_solver/__init__.py12__all__ = ["calibrate", "inspect_field", "kernels"]CODE
LOW…vals/files/g01_pde_stepper/src/pde_stepper/__init__.py8__all__ = ["PDEStepper"]CODE
LOW…/files/g06_gpu_analytics/src/gpu_analytics/__init__.py9__all__ = ["AnalyticsBank", "AnalyticsResult", "diagnose"]CODE
LOW…/files/c04_batch_signals/src/batch_signals/__init__.py9__all__ = ["condition_batch", "rebuild_kernels"]CODE
LOW…es/g09_mixed_precision/src/mixed_precision/__init__.py8__all__ = ["calibrate", "serve"]CODE
LOWskills/warp-eval/scripts/measure.py59__all__ = [CODE
Verbosity Indicators14 hits · 23 pts
SeverityFileLineSnippetContext
LOWwarp/_src/context.py14775 # Step 1: Parse __init__.py to identify Python API imports and conflictsCOMMENT
LOWwarp/_src/context.py14899 # Step 2: Write headerCOMMENT
LOWwarp/_src/context.py15017 # Step 3: Emit __init__.py non-import lines (docstring, __version__, __getattr__, etc.)COMMENT
LOWwarp/_src/context.py15285 # Step 4: Generate merged stubs for function conflictsCOMMENT
LOWwarp/_src/context.py15350 # Step 5: Generate stubs for non-conflicting builtinsCOMMENT
LOWwarp/native/svd.h511 // Step 1: Compute ATACOMMENT
LOWwarp/native/svd.h516 // Step 2: EigenanalysisCOMMENT
LOWwarp/native/svd.h521 // Step 3: Singular valuesCOMMENT
LOWwarp/native/svd.h540 // Step 4: Eigenvectors (find V)COMMENT
LOWwarp/native/svd.h554 // Step 5: Compute UCOMMENT
LOWwarp/native/svd.h562 // Step 6: Set SCOMMENT
LOWwarp/native/nanovdb/NanoVDB.h5858// the following code block uses std and therefore needs to be ignored by CUDA and HIPCOMMENT
LOWwarp/tests/test_sgd.py24 # Step 1: momentum buffer should be initialized to gradientCOMMENT
LOWwarp/tests/test_sgd.py36 # Step 2: momentum buffer should accumulateCOMMENT
Slop Phrases4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMwarp/_src/context.py2285 # hard coded types. We do this so you can use hard coded warp types outside kernels:COMMENT
LOWwarp/tests/test_array.py963 # scalar members (make sure to test float16)COMMENT
LOWwarp/tests/test_array.py971 # vector members (make sure to test vectors of float16)COMMENT
LOWwarp/tests/test_array.py976 # matrix members (make sure to test matrices of float16)COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHwarp/examples/core/example_nvdb.py8# a NanoVDB signed-distance field. In this example the NanoVDB fieldCOMMENT
Overly Generic Function Names6 hits · 6 pts
SeverityFileLineSnippetContext
LOWwarp/tests/test_func_inline.py55 def helper(x: float) -> float:CODE
LOWwarp/tests/test_compile_consts.py94 def test_function(data: wp.array[wp.float32]):CODE
LOWwarp/tests/test_compile_consts.py107 def test_function(data: wp.array[wp.float32]):CODE
LOWwarp/tests/test_compile_consts.py128 def test_function(data: wp.array[wp.float32]):CODE
LOWwarp/tests/test_compile_consts.py157 def test_function(data: wp.array[wp.float32]):CODE
LOW…p-compile-time-optimizer/evals/files/triton_service.py59def handle_request(batch: torch.Tensor) -> torch.Tensor:CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWwarp/tests/tile/test_tile_cholesky.py73 # TODO: implement and test backward passCOMMENT
LOWwarp/tests/tile/test_tile_cholesky.py171 # TODO: implement and test backward passCOMMENT
LOWwarp/tests/tile/test_tile_solve.py132 # TODO: implement and test backward passCOMMENT
LOWwarp/tests/tile/test_tile_solve.py297 # TODO: implement and test backward passCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMwarp/examples/cpp/CMakeLists.txt6# This file orchestrates testing of all C++ examples using CTest.COMMENT