You like pytorch? You like micrograd? You love tinygrad! ❤️
This report summarizes scanner evidence for tinygrad/tinygrad, a Python project with 33,736 GitHub stars. SynthScan examined 412,310 lines of code across 1217 source files, recording 4827 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 13.8 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 3624 finding(s).
Are imports declared and package/API names verified? 623 finding(s).
Are wrappers, guards, and repeated structures necessary? 2859 finding(s).
Which changes need focused human review? 4827 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 4827 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/testextra/test_hk_fa.py | 82 | def test_fast_fa_bwd_causal_jitted(self): | CODE |
| LOW | test/testextra/test_bench_log.py | 16 | def test_log_single_wall_time(self): | CODE |
| LOW | test/testextra/test_bench_log.py | 26 | def test_log_double_wall_time(self): | CODE |
| LOW | test/testextra/test_bench_log.py | 42 | def test_log_single_kernel_time(self): | CODE |
| LOW | test/testextra/test_bench_log.py | 59 | def test_interleaved_wall_kernel_time(self): | CODE |
| LOW | test/testextra/test_bench_log.py | 81 | def test_stacked_wall_kernel_time(self): | CODE |
| LOW | test/testextra/test_tk.py | 78 | def test_simple_matmul_transposed(self): | CODE |
| LOW | test/testextra/test_tk.py | 164 | def test_load_store_local_hop(self): | CODE |
| LOW | test/testextra/test_tk.py | 204 | def test_load_store_multioutput(self): | CODE |
| LOW | test/testextra/test_tk.py | 887 | def test_fast_fa_bwd_causal_jitted(self): | CODE |
| LOW | test/testextra/test_tk.py | 938 | def test_fast_fa_bwd_multidevice(self): | CODE |
| LOW⚡ | test/testextra/test_lr_scheduler.py | 88 | def test_reducelronplateau_max(self): self._test_reducelronplateau(100, {'mode': 'max'}, 1e-6, 1e-6) | CODE |
| LOW⚡ | test/testextra/test_lr_scheduler.py | 89 | def test_reducelronplateau_factor(self): self._test_reducelronplateau(100, {'factor': 0.1337}, 1e-6, 1e-6) | CODE |
| LOW⚡ | test/testextra/test_lr_scheduler.py | 90 | def test_reducelronplateau_patience(self): self._test_reducelronplateau(100, {'patience': 3}, 1e-6, 1e-6) | CODE |
| LOW⚡ | test/testextra/test_lr_scheduler.py | 91 | def test_reducelronplateau_threshold(self): self._test_reducelronplateau(100, {'threshold': 1e-6}, 1e-6, 1e-6) | CODE |
| LOW⚡ | test/testextra/test_lr_scheduler.py | 92 | def test_reducelronplateau_threshold_mode(self): self._test_reducelronplateau(100, {'threshold_mode': 'abs'}, 1e-6, 1e | CODE |
| LOW⚡ | test/testextra/test_lr_scheduler.py | 95 | def test_cosineannealinglr_eta_min(self): self._test_cosineannealinglr(100, {'eta_min': 0.001}, 1e-6, 1e-6) | CODE |
| LOW | test/testextra/test_export_model.py | 21 | def test_multi_input_model_export(self): | CODE |
| LOW | test/testextra/test_export_model.py | 36 | def test_multi_output_model_export(self): | CODE |
| LOW | test/testextra/test_export_model.py | 54 | def test_exported_input_output_dtypes(self): | CODE |
| LOW | test/testextra/test_export_model.py | 71 | def test_weights_bound_to_safetensor(self): | CODE |
| LOW | test/testextra/test_mockgpu.py | 7 | def test_import_typing_extensions(self): | CODE |
| LOW | test/speed/external_test_device_speed.py | 29 | def test_profile_launch_speed(self): | CODE |
| LOW | test/speed/external_test_speed_v_torch.py | 69 | def helper_test_generic_square(name, N, f1, f2, onearg=False): | CODE |
| LOW⚡ | test/speed/external_test_speed_v_torch.py | 244 | def test_gemm_unrolled_permute_l(self): | CODE |
| LOW⚡ | test/speed/external_test_speed_v_torch.py | 250 | def test_gemm_unrolled_permute_r(self): | CODE |
| LOW⚡ | test/speed/external_test_speed_v_torch.py | 256 | def test_gemm_unrolled_permute_lr(self): | CODE |
| LOW | test/runtime/test_tensor.py | 32 | def test_deviceless_const_realize_noop(self): | CODE |
| LOW | test/runtime/test_tensor.py | 73 | def test_accumulate_gradients(self): | CODE |
| LOW | test/runtime/test_tensor.py | 91 | def test_second_order_backward_pass(self): | CODE |
| LOW | test/runtime/test_tensor.py | 134 | def test_backward_pass_diamond_model(self): | CODE |
| LOW | test/runtime/test_tensor.py | 182 | def test_const_backward_pass_optimizer(self): | CODE |
| LOW | test/runtime/test_tensor.py | 244 | def test_random_fns_are_deterministic_with_seed(self): | CODE |
| LOW | test/runtime/test_tensor.py | 260 | def test_randn_isnt_inf_on_zero(self): | CODE |
| LOW | test/runtime/test_tensor.py | 316 | def test_tensor_mixed_list_tuple(self): | CODE |
| LOW | test/runtime/test_tensor.py | 328 | def test_tensor_list_implicit_cast(self): | CODE |
| LOW | test/runtime/test_tensor.py | 343 | def test_tensor_list_special_values(self): | CODE |
| LOW | test/runtime/test_tensor.py | 385 | def test_copy_from_numpy_dtype(self): | CODE |
| LOW | test/runtime/test_tensor.py | 397 | def test_copy_from_numpy_unaligned(self): | CODE |
| LOW | test/runtime/test_tensor.py | 409 | def test_item_to_tensor_to_item(self): | CODE |
| LOW | test/runtime/test_tensor.py | 421 | def test_no_attributeerror_after_apply_uop_exception(self): | CODE |
| LOW | test/runtime/test_tensor.py | 581 | def test_reduce_over_non_zero(self): | CODE |
| LOW⚡ | test/runtime/test_tensor.py | 606 | def test_clone_deviceless_const(self): | CODE |
| LOW⚡ | test/runtime/test_tensor.py | 611 | def test_numpy_deviceless_const(self): | CODE |
| LOW⚡ | test/runtime/test_tensor.py | 620 | def test_clone_with_shrink_realized(self): | CODE |
| LOW | test/runtime/test_tensor.py | 634 | def test_clone_deviceless_const_to_device(self): | CODE |
| LOW | test/runtime/test_gradient.py | 21 | def test_with_custom_gradient(self): | CODE |
| LOW | test/runtime/test_gradient.py | 43 | def test_copy_to_device_gradient(self): | CODE |
| LOW | test/runtime/test_gradient.py | 49 | def test_multi_device_copy_gradient(self): | CODE |
| LOW⚡ | test/runtime/test_gradient.py | 70 | def test_gradient_through_clone_from_grad_src(self): | CODE |
| LOW⚡ | test/runtime/test_gradient.py | 78 | def test_gradient_through_clone_from_detached_src(self): | CODE |
| LOW⚡ | test/runtime/test_gradient.py | 85 | def test_gradient_through_chained_unrealized_setitem(self): | CODE |
| LOW⚡ | test/runtime/test_gradient.py | 93 | def test_implicit_broadcast_where_gradient(self): | CODE |
| LOW⚡ | test/runtime/test_gradient.py | 102 | def test_implicit_broadcast_alu_gradient(self): | CODE |
| LOW⚡ | test/runtime/test_gradient.py | 111 | def test_implicit_broadcast_intermediate_accumulation(self): | CODE |
| LOW⚡ | test/runtime/test_gradient.py | 120 | def test_max_backward_many_ties(self): | CODE |
| LOW | test/runtime/test_gradient.py | 139 | def test_custom_kernel_multi_output_backward(self): | CODE |
| LOW | test/runtime/test_gradient.py | 151 | def test_custom_kernel_aliased_output_views_backward(self): | CODE |
| LOW | test/runtime/test_gradient.py | 165 | def test_custom_kernel_multi_output_backward_interacting(self): | CODE |
| LOW | test/runtime/test_gradient.py | 177 | def test_custom_kernel_three_output_backward(self): | CODE |
| 2183 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/runtime/test_tensor_cores.py | 60 | except KernelOptError: pass | CODE |
| HIGH | test/runtime/test_tensor_variable.py | 19 | except RuntimeError: pass | CODE |
| HIGH | test/runtime/test_disk_tensor.py | 473 | except PermissionError: pass | CODE |
| HIGH | test/amd/test_llvm.py | 59 | except ValueError: pass | CODE |
| HIGH | test/amd/test_llvm.py | 129 | except Exception: pass | CODE |
| HIGH | test/null/test_gc.py | 13 | except ReferenceError: | CODE |
| HIGH | test/mockgpu/amd/pcode.py | 1223 | except (ValueError, SyntaxError): pass # non-constant slice bounds - fall through to other statement forms | CODE |
| HIGH | tinygrad/helpers.py | 270 | except (FileNotFoundError, ValueError, ZeroDivisionError): pass | CODE |
| HIGH | tinygrad/helpers.py | 520 | except ImportError: pass | CODE |
| HIGH | tinygrad/llm/serve.py | 38 | except json.JSONDecodeError: pass | CODE |
| HIGH | tinygrad/runtime/ops_cl.py | 51 | except (TypeError, AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/ops_cl.py | 53 | except (TypeError, AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/ops_disk.py | 48 | except BufferError: pass | CODE |
| HIGH | tinygrad/runtime/support/compiler_amd.py | 10 | except AttributeError: pass # ignore if ROCm isn't installed | CODE |
| HIGH | tinygrad/runtime/support/elf.py | 12 | except (OSError, AttributeError, TypeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/libc.py | 699 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/libc.py | 701 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/libc.py | 973 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/libc.py | 975 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/libc.py | 977 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 203 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 205 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 207 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 209 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 211 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 213 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 215 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 217 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 219 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 221 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 223 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 225 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 227 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 229 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 231 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/corefoundation.py | 233 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/metal.py | 1013 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/metal.py | 1015 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/metal.py | 1017 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/metal.py | 1046 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 14 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 16 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 376 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 990 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 2734 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 2992 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 4113 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 4115 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5376 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5378 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5380 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5382 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5384 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5386 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5388 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5390 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5392 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5394 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5396 | except (ValueError,AttributeError): pass | CODE |
| HIGH | tinygrad/runtime/autogen/mesa.py | 5398 | except (ValueError,AttributeError): pass | CODE |
| 308 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mkdocs.yml | 141 | - markdown-exec | COMMENT |
| LOW | test/runtime/test_indexing.py | 981 | COMMENT | |
| LOW | test/runtime/test_indexing.py | 1101 | # numpy_testing_assert_equal_helper(strided[ri([1]), ri([3])], np.array([15])) | COMMENT |
| LOW | test/runtime/test_indexing.py | 1121 | # setting values | COMMENT |
| LOW | test/runtime/test_jit_cases.py | 1 | import unittest | COMMENT |
| LOW | test/runtime/test_edgecases.py | 1 | # end to end tests of tinygrad that you think might be edge cases. | COMMENT |
| LOW | test/null/test_uop_symbolic.py | 1521 | sink = store.sink().end(r0).sink(arg=KernelInfo()) # nested SINK must not split the range independently of END | COMMENT |
| LOW | test/null/test_simplify_valid_idx.py | 101 | COMMENT | |
| LOW | test/external/external_test_am.py | 41 | # * 56 F | COMMENT |
| LOW | test/external/mlperf_retinanet/model/utils.py | 101 | """ | COMMENT |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 221 | # We *usually* want to fill up the entire sequence since we are padding | COMMENT |
| LOW | …bert/preprocessing/external_test_preprocessing_part.py | 1 | # USAGE: | COMMENT |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 1 | # https://github.com/mlcommons/training/blob/e3769c8dcf88cd21e1001dd2f894b40a1513ec5d/image_classification/tensorflow2/l | COMMENT |
| LOW | test/external/mlperf_resnet/lars_util.py | 1 | # https://github.com/mlcommons/training/blob/e237206991d10449d9675d95606459a3cb6c21ad/image_classification/tensorflow2/l | COMMENT |
| LOW | tinygrad/runtime/support/am/amdev.py | 161 | # VF related | COMMENT |
| LOW | extra/hook_cuda.py | 141 | #if name == "exp2_kernel_vectorized4_kernel": | COMMENT |
| LOW | extra/hook_cuda.py | 181 | #install_hook(cuda.cuFuncGetModule, dummy) | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 201 | #define ATHUB_BASE__INST0_SEG1 0x02408C00 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 221 | #define ATHUB_BASE__INST3_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 241 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 261 | #define CLK_BASE__INST3_SEG1 0x02402400 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 281 | #define CLK_BASE__INST6_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 301 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 321 | #define DF_BASE__INST6_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 341 | #define DIO_BASE__INST2_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 361 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 381 | #define DCN_BASE__INST2_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 401 | #define DCN_BASE__INST5_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 421 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 441 | #define DPCS_BASE__INST5_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 461 | #define FUSE_BASE__INST1_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 481 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 501 | #define GC_BASE__INST1_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 521 | #define GC_BASE__INST4_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 541 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 561 | #define HDA_BASE__INST4_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 581 | #define HDP_BASE__INST0_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 601 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 621 | #define MMHUB_BASE__INST0_SEG1 0x02408800 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 641 | #define MMHUB_BASE__INST3_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 661 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 681 | #define MP0_BASE__INST3_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 701 | #define MP0_BASE__INST6_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 721 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 741 | #define MP1_BASE__INST6_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 761 | #define NBIO_BASE__INST2_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 781 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 801 | #define OSSSYS_BASE__INST2_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 821 | #define OSSSYS_BASE__INST5_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 841 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 861 | #define PCIE0_BASE__INST5_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 881 | #define SDMA0_BASE__INST1_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 901 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 921 | #define SDMA1_BASE__INST1_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 941 | #define SDMA1_BASE__INST4_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 961 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 981 | #define SMUIO_BASE__INST4_SEG1 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 1001 | #define THM_BASE__INST0_SEG3 0 | COMMENT |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 1021 | COMMENT | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 1041 | #define UMC_BASE__INST0_SEG1 0x02425800 | COMMENT |
| 944 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/testextra/test_mockgpu.py | 8 | CODE | |
| LOW | test/runtime/test_uops.py | 6 | CODE | |
| LOW | test/runtime/test_ops.py | 11 | CODE | |
| LOW | test/amd/test_sqtt_encoder.py | 9 | CODE | |
| LOW | test/amd/disasm.py | 2 | CODE | |
| LOW | test/amd/test_asm_kernel.py | 12 | CODE | |
| LOW | test/amd/test_asm_kernel.py | 208 | CODE | |
| LOW | test/amd/test_dsl2.py | 2 | CODE | |
| LOW | test/amd/test_formats.py | 7 | CODE | |
| LOW | test/amd/test_handwritten.py | 5 | CODE | |
| LOW | test/amd/test_integration.py | 4 | CODE | |
| LOW | test/amd/test_rdna3_asm.py | 3 | CODE | |
| LOW | test/amd/hw/test_vop1.py | 8 | CODE | |
| LOW | test/amd/hw/test_scratch.py | 6 | CODE | |
| LOW | test/amd/hw/test_dpp.py | 8 | CODE | |
| LOW | test/amd/hw/test_flat.py | 6 | CODE | |
| LOW | test/amd/hw/test_sop.py | 7 | CODE | |
| LOW | test/amd/hw/test_vopc.py | 6 | CODE | |
| LOW | test/amd/hw/test_vop3p.py | 6 | CODE | |
| LOW | test/amd/hw/test_smem.py | 7 | CODE | |
| LOW | test/amd/hw/test_ds.py | 8 | CODE | |
| LOW | test/amd/hw/test_vop3.py | 8 | CODE | |
| LOW | test/amd/hw/test_vop2.py | 8 | CODE | |
| LOW | test/amd/hw/test_global.py | 6 | CODE | |
| LOW | test/amd/hw/helpers.py | 7 | CODE | |
| LOW | test/amd/hw/test_vinterp.py | 3 | CODE | |
| LOW | test/null/test_uops.py | 6 | CODE | |
| LOW | test/null/test_uops.py | 15 | CODE | |
| LOW | test/mockgpu/usb.py | 1 | CODE | |
| LOW | test/mockgpu/am/amgpu.py | 2 | CODE | |
| LOW | test/mockgpu/am/amdriver.py | 1 | CODE | |
| LOW | test/mockgpu/amd/sqtt_enc.py | 3 | CODE | |
| LOW | test/mockgpu/amd/emu.py | 8 | CODE | |
| LOW | test/device/cpu/test_quantize_onnx.py | 14 | CODE | |
| LOW | test/external/fuzz_shape_ops.py | 1 | CODE | |
| LOW | test/external/external_test_am_fault_recovery.py | 4 | CODE | |
| LOW | test/external/external_benchmark_op_conv.py | 2 | CODE | |
| LOW | test/external/external_benchmark_op_conv.py | 4 | CODE | |
| LOW | test/external/external_benchmark_op_conv.py | 5 | CODE | |
| LOW | test/external/external_benchmark_op_conv.py | 5 | CODE | |
| LOW | test/external/mlperf_bert/preprocessing/tokenization.py | 5 | CODE | |
| LOW | test/external/mlperf_bert/preprocessing/tokenization.py | 6 | CODE | |
| LOW | test/external/mlperf_bert/preprocessing/tokenization.py | 7 | CODE | |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 6 | CODE | |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 7 | CODE | |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 8 | CODE | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 20 | CODE | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 21 | CODE | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 22 | CODE | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 26 | CODE | |
| LOW | test/external/mlperf_resnet/lars_util.py | 22 | CODE | |
| LOW | test/external/mlperf_resnet/lars_util.py | 23 | CODE | |
| LOW | test/external/mlperf_resnet/lars_util.py | 24 | CODE | |
| LOW | test/external/mlperf_resnet/lars_util.py | 30 | CODE | |
| LOW | tinygrad/device.py | 1 | CODE | |
| LOW | tinygrad/dtype.py | 1 | CODE | |
| LOW | tinygrad/__init__.py | 5 | CODE | |
| LOW | tinygrad/__init__.py | 6 | CODE | |
| LOW | tinygrad/__init__.py | 7 | CODE | |
| LOW | tinygrad/__init__.py | 10 | CODE | |
| 526 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/amd/disasm.py | 41 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 43 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 63 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 65 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 81 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 83 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 103 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 105 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 171 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 173 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 640 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/disasm.py | 642 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/test_sqtt_examples.py | 20 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/amd/test_sqtt_examples.py | 22 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/mockgpu/amd/pcode.py | 101 | # ═════ FP8 (E4M3) and BF8 (E5M2) conversion helpers ═════ | COMMENT |
| MEDIUM | test/mockgpu/amd/pcode.py | 440 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/mockgpu/amd/pcode.py | 442 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | test/mockgpu/amd/emu.py | 1874 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM⚡ | test/mockgpu/amd/emu.py | 1876 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 286 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 288 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 666 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 668 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 1824 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 1826 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 1926 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/mockgpu/amd/emu.py | 1928 | # ═══════════════════════════════════════════════════════════════════════════════ | STRING |
| MEDIUM | test/external/mlperf_resnet/lars_optimizer.py | 17 | # ============================================================================== | COMMENT |
| MEDIUM | test/external/mlperf_resnet/lars_util.py | 19 | # ============================================================================== | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 14 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 16 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 180 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 182 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 205 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 207 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 252 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 254 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 431 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 433 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 566 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 568 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 648 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 650 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 725 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 727 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 4 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 6 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 91 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 93 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 142 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 144 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | tinygrad/renderer/amd/dsl.py | 234 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | tinygrad/renderer/amd/dsl.py | 236 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | tinygrad/renderer/amd/dsl.py | 244 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | tinygrad/renderer/amd/dsl.py | 246 | # ══════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/generate.py | 7 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/generate.py | 9 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/generate.py | 44 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/generate.py | 46 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | tinygrad/renderer/amd/generate.py | 72 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| 64 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sz.py | 17 | CODE | |
| LOW | test/testextra/test_bench_log.py | 81 | CODE | |
| LOW | test/speed/external_test_copy_speed.py | 80 | CODE | |
| LOW | test/runtime/test_gguf.py | 231 | CODE | |
| LOW | test/runtime/test_gguf.py | 309 | CODE | |
| LOW | test/runtime/test_gguf.py | 354 | CODE | |
| LOW | test/runtime/test_symbolic_ops.py | 282 | CODE | |
| LOW | test/runtime/test_symbolic_ops.py | 310 | CODE | |
| LOW | test/runtime/test_dtype_spec.py | 167 | CODE | |
| LOW | test/runtime/test_llm_moe.py | 99 | CODE | |
| LOW | test/runtime/test_multitensor.py | 477 | CODE | |
| LOW | test/runtime/test_multitensor.py | 1001 | CODE | |
| LOW | test/runtime/test_tensor_cores.py | 206 | CODE | |
| LOW | test/runtime/test_nn.py | 15 | CODE | |
| LOW | test/runtime/test_disk_tensor.py | 572 | CODE | |
| LOW | test/runtime/test_uops.py | 111 | CODE | |
| LOW | test/runtime/test_uops.py | 178 | CODE | |
| LOW | test/runtime/test_ops.py | 1809 | CODE | |
| LOW | test/runtime/test_ops.py | 1824 | CODE | |
| LOW | test/runtime/test_ops.py | 2317 | CODE | |
| LOW | test/runtime/test_ops.py | 2346 | CODE | |
| LOW | test/runtime/test_ops.py | 2355 | CODE | |
| LOW | test/runtime/test_ops.py | 2460 | CODE | |
| LOW | test/runtime/test_call.py | 266 | CODE | |
| LOW | test/amd/disasm.py | 47 | CODE | |
| LOW | test/amd/disasm.py | 151 | CODE | |
| LOW | test/amd/disasm.py | 284 | CODE | |
| LOW | test/amd/disasm.py | 334 | CODE | |
| LOW | test/amd/disasm.py | 724 | CODE | |
| LOW | test/amd/test_sqtt_examples.py | 24 | CODE | |
| LOW | test/amd/test_sqtt_examples.py | 45 | CODE | |
| LOW | test/amd/test_sqtt_examples.py | 110 | CODE | |
| LOW | test/amd/test_sqtt_examples.py | 121 | CODE | |
| LOW | test/amd/test_sqtt_examples.py | 165 | CODE | |
| LOW | test/amd/test_sqtt_examples.py | 195 | CODE | |
| LOW | test/amd/test_sqttmap.py | 86 | CODE | |
| LOW | test/amd/test_sqttmap.py | 97 | CODE | |
| LOW | test/amd/test_sqttmap.py | 121 | CODE | |
| LOW | test/amd/test_sqttmap.py | 151 | CODE | |
| LOW | test/amd/test_roundtrip.py | 57 | CODE | |
| LOW | test/amd/test_roundtrip.py | 115 | CODE | |
| LOW | test/amd/test_llvm.py | 84 | CODE | |
| LOW | test/amd/test_llvm.py | 85 | CODE | |
| LOW | test/amd/test_emu_memory.py | 59 | CODE | |
| LOW | test/amd/hw/helpers.py | 276 | CODE | |
| LOW | test/null/test_uir_render.py | 46 | CODE | |
| LOW | test/null/test_dtype_spec.py | 164 | CODE | |
| LOW | test/null/test_dtype_spec.py | 172 | CODE | |
| LOW | test/null/test_tqdm.py | 75 | CODE | |
| LOW | test/null/test_tqdm.py | 256 | CODE | |
| LOW | test/null/test_viz.py | 542 | CODE | |
| LOW | test/null/test_graph_rewrite.py | 195 | CODE | |
| LOW | test/null/test_graph_rewrite.py | 205 | CODE | |
| LOW | test/null/test_hcq2.py | 55 | CODE | |
| LOW | test/null/test_postrange.py | 50 | CODE | |
| LOW | test/null/test_uop_symbolic.py | 109 | CODE | |
| LOW | test/mockgpu/mockgpu.py | 52 | CODE | |
| LOW | test/mockgpu/usb.py | 87 | CODE | |
| LOW | test/mockgpu/usb.py | 126 | CODE | |
| LOW | test/mockgpu/usb.py | 161 | CODE | |
| 247 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/amd/test_formats.py | 155 | # v_add3_u32 v5, null, exec_lo, 0xaf123456 | COMMENT |
| HIGH | test/amd/test_rdna3_asm.py | 37 | "s_mulk_i32 s3, 0x87", "v_mad_u64_u32 v[1:2], null, s2, 3, v[1:2]", "v_mul_u32_u24_e32 v0, 45, v0", | CODE |
| HIGH | test/mockgpu/amd/call.py | 54 | return UPat.any(reg, reg.ne(null).where(reg, UPat.const(Invalid))) | CODE |
| HIGH | tinygrad/runtime/ops_metal.py | 76 | proc = subprocess.Popen(f"cd {pathlib.Path(__file__).parents[2]}/extra/disassemblers/applegpu && python3 compiler_ | CODE |
| HIGH | tinygrad/runtime/autogen/__init__.py | 57 | def _extract_deb(path:str): subprocess.run("ar x *.deb && tar xf data.tar.*", cwd=path, shell=True, check=True) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 577 | SOPPOp.S_CBRANCH_CDBGSYS_OR_USER: "if (WAVE_STATUS.COND_DBG_SYS || WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signext( | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 578 | SOPPOp.S_CBRANCH_CDBGSYS_AND_USER: "if (WAVE_STATUS.COND_DBG_SYS && WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signext | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 673 | VOP2Op.V_MIN_F32_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 674 | VOP2Op.V_MAX_F32_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 708 | VOP2Op.V_MAX_F16_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 709 | VOP2Op.V_MIN_F16_E32: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 933 | VOP3Op.V_MIN_F32_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 934 | VOP3Op.V_MAX_F32_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f32))) then\nD0.f32 = 32'F(cvtToQuietNAN(64'F(S0.f32) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 958 | VOP3Op.V_MAX_F16_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 959 | VOP3Op.V_MIN_F16_E64: "if (WAVE_MODE.IEEE && isSignalNAN(64'F(S0.f16))) then\nD0.f16 = 16'F(cvtToQuietNAN(64'F(S0.f16) | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 1099 | VOP3Op.V_MIN_F64: "if (WAVE_MODE.IEEE && isSignalNAN(S0.f64)) then\nD0.f64 = cvtToQuietNAN(S0.f64)\nelsif (WAVE_MODE.I | CODE |
| HIGH | tinygrad/runtime/autogen/amd/cdna/str_pcode.py | 1100 | VOP3Op.V_MAX_F64: 'if (WAVE_MODE.IEEE && isSignalNAN(S0.f64)) then\nD0.f64 = cvtToQuietNAN(S0.f64)\nelsif (WAVE_MODE.I | CODE |
| HIGH | tinygrad/runtime/autogen/amd/rdna3/str_pcode.py | 115 | DSOp.DS_BVH_STACK_RTN_B32: '(stack_base, stack_index) = DECODE_ADDR(ADDR, OFFSET1);\nlast_node_ptr = DATA0;\n// First | CODE |
| HIGH | tinygrad/runtime/autogen/amd/rdna3/str_pcode.py | 598 | SOPPOp.S_CBRANCH_CDBGSYS_OR_USER: "if (WAVE_STATUS.COND_DBG_SYS || WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signext( | CODE |
| HIGH | tinygrad/runtime/autogen/amd/rdna3/str_pcode.py | 599 | SOPPOp.S_CBRANCH_CDBGSYS_AND_USER: "if (WAVE_STATUS.COND_DBG_SYS && WAVE_STATUS.COND_DBG_USER) then\nPC = PC + signext | CODE |
| HIGH | tinygrad/uop/ops.py | 1146 | # a signed or float destination holds the part of the source that overlaps it: overflow is undefined, a nan bound | COMMENT |
| HIGH | extra/mlx_driver/connect.py | 18 | SSH + [f"cd ~/tinygrad && sudo PYTHONPATH=. MLX_DEBUG=1 MLX_PCI={REMOTE_PCI} MLX_IP={REMOTE_IP} python3 extra/mlx_driv | CODE |
| HIGH | extra/nv_pma/cupti/cu_prof_ext.py | 53 | if DEBUG >= 1: print(" CUPTI: PC sampling needs: echo 'options nvidia NVreg_RestrictProfilingToAdminUsers=0'| | CODE |
| HIGH | examples/webgpu/stable_diffusion/compile.py | 134 | const metadata = safetensor ? getTensorMetadata(safetensor[0]) : null; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/helpers.py | 171 | except Exception as e: self.skipTest(f"second device not available: {e}") | CODE |
| LOW | test/runtime/test_multitensor.py | 26 | except Exception as e: | CODE |
| LOW | test/runtime/test_jit.py | 688 | except Exception: raise unittest.SkipTest("no multidevice") | CODE |
| LOW | test/runtime/test_jit.py | 708 | except Exception: raise unittest.SkipTest("no multidevice") | CODE |
| LOW | test/runtime/test_profiler.py | 117 | except Exception as e: self.skipTest(f"second device not available {e}") | CODE |
| LOW | test/runtime/test_profiler.py | 133 | except Exception as e: self.skipTest(f"second device not available {e}") | CODE |
| LOW | test/runtime/test_profiler.py | 147 | except Exception as e: self.skipTest(f"second device not available {e}") | CODE |
| LOW | test/runtime/test_profiler.py | 178 | except Exception as e: self.skipTest(f"multiple devices not available {e}") | CODE |
| LOW | test/runtime/test_ops.py | 51 | except Exception as e: | CODE |
| LOW | test/amd/test_sqtt_examples.py | 84 | except Exception as e: exc = e | CODE |
| LOW | test/amd/test_sqttmap.py | 30 | except Exception as e: self.skipTest(f"latest rocprof not available, install with extra/sqtt/install_rocprof_decoder | CODE |
| LOW | test/amd/test_roundtrip.py | 153 | except Exception as e: | CODE |
| LOW | test/amd/test_emu2_pcode.py | 385 | except Exception as e: self.fail(f"[{arch}] {op.name}: {e}\nPcode: {pcode[:200]}") | CODE |
| LOW | test/amd/test_llvm.py | 117 | except Exception: skipped += 1 | CODE |
| LOW | test/amd/test_llvm.py | 129 | except Exception: pass | CODE |
| LOW | test/null/test_device.py | 80 | except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}") | CODE |
| LOW | test/null/test_device.py | 94 | except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}") | CODE |
| LOW | test/null/test_device.py | 111 | except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}") | CODE |
| LOW⚡ | test/null/test_device.py | 127 | except Exception as e: self.skipTest(f"skipping: LLVM not available: {e}") | CODE |
| LOW | test/mockgpu/am/amgpu.py | 35 | except Exception: return {} | CODE |
| LOW⚡ | test/mockgpu/amd/emu.py | 1869 | except Exception as e: | STRING |
| LOW⚡ | test/mockgpu/amd/emu.py | 1871 | except Exception: inst_str = f"<{type(inst).__name__}>" | STRING |
| LOW | test/mockgpu/amd/emu.py | 38 | except Exception: return None, 0 | STRING |
| LOW | test/mockgpu/nv/nvgpu.py | 99 | except Exception as e: print("failed to execute:", e) | CODE |
| LOW | test/device/amd/test_asm_gemm.py | 15 | except Exception: return False | CODE |
| LOW | test/external/external_test_process_count.py | 15 | except Exception as e: | CODE |
| LOW⚡ | test/external/external_model_benchmark.py | 75 | except Exception as e: | CODE |
| LOW⚡ | test/external/external_model_benchmark.py | 81 | except Exception as e: print(f"{m:16s}torch_cpu {type(e).__name__:>25}") | CODE |
| LOW⚡ | test/external/external_model_benchmark.py | 87 | except Exception as e: print(f"{m:16s}torch_{torch_device} {type(e).__name__:>25}") | CODE |
| LOW | test/external/external_model_benchmark.py | 99 | except Exception as e: print(f"{m:16s}onnxruntime_{backend.lower()} {type(e).__name__:>25}") | CODE |
| LOW | test/external/external_test_example.py | 19 | except Exception: | CODE |
| LOW | test/external/external_test_example.py | 58 | except Exception: | CODE |
| MEDIUM | test/external/external_test_example.py | 55 | def test_example_matmul(self, device): | CODE |
| LOW | test/external/external_fuzz_hcq_mp.py | 33 | except Exception as e: | CODE |
| LOW | test/external/external_test_gpu_crash.py | 34 | except Exception: | CODE |
| LOW | test/external/process_replay/process_replay.py | 96 | except Exception as e: | CODE |
| LOW | test/external/process_replay/process_replay.py | 125 | except Exception as e: | CODE |
| LOW⚡ | tinygrad/device.py | 522 | except Exception as e: iface_results.append(f"{colored('-', 'red')} {iface.__name__[:-5]}: {e}") | CODE |
| LOW⚡ | tinygrad/device.py | 529 | except Exception as e: ren_results.append(f"{colored('-', 'red')} {d._renderer_name(r)}: {e}") | CODE |
| LOW⚡ | tinygrad/device.py | 532 | except Exception as e: result = f"{colored('FAIL', 'red')} {e}" | CODE |
| LOW | tinygrad/helpers.py | 151 | except Exception as e: excs.append(e) | CODE |
| LOW | tinygrad/runtime/support/autogen.py | 288 | except Exception as e: raise Exception("parsing failed") from e | CODE |
| LOW | tinygrad/runtime/support/compiler_mesa.py | 80 | except Exception as e: print("Failed to generate SASS", str(e), "Make sure your PATH contains nvdisasm binary of com | CODE |
| LOW | tinygrad/runtime/support/compiler_cuda.py | 44 | except Exception as e: print("Failed to generate SASS", str(e), "Make sure your PATH contains ptxas/nvdisasm binary of | CODE |
| LOW | tinygrad/runtime/support/compileserver.py | 9 | except Exception as e: | CODE |
| LOW | tinygrad/runtime/autogen/__init__.py | 53 | except Exception as e: raise RuntimeError(f"error while generating {name}") from e | CODE |
| LOW | tinygrad/codegen/opt/search.py | 73 | except Exception as e: | CODE |
| LOW | tinygrad/codegen/opt/search.py | 147 | except Exception as e: | CODE |
| LOW | tinygrad/viz/serve.py | 159 | except Exception: | CODE |
| LOW | tinygrad/viz/serve.py | 297 | except Exception: | CODE |
| LOW | tinygrad/viz/serve.py | 542 | except Exception: traceback.print_exc(file=buf) | CODE |
| LOW | tinygrad/uop/ops.py | 1706 | except Exception as e: | CODE |
| LOW | extra/setup_tinygpu_osx.sh | 6 | except Exception as e: | CODE |
| LOW | extra/weekly_commits_table.py | 25 | except Exception: | CODE |
| LOW | extra/nv_pma/collect.py | 132 | except Exception as e: | CODE |
| LOW | extra/hcq1/test_hcq.py | 317 | except Exception: self.skipTest("no multidevice, test skipped") | CODE |
| LOW | extra/hcq1/test_hcq.py | 380 | except Exception: self.skipTest("no multidevice, test skipped") | CODE |
| LOW | extra/hcq1/test_hcq.py | 460 | except Exception: self.skipTest("no multidevice, test skipped") | CODE |
| LOW | extra/hcq1/test_hcq.py | 576 | except Exception: break | CODE |
| LOW | extra/hcq1/test_hcq.py | 605 | except Exception: self.skipTest("no AMD device, test skipped") | CODE |
| 18 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tinygrad/renderer/llvmir.py | 62 | # example: %wmma0 = call <8 x float> @llvm.amdgcn.wmma.f32.16x16x16.f16(<16 x half> %v99,<16 x half> %v100,<8 x float> | COMMENT |
| CRITICAL | tinygrad/renderer/llvmir.py | 278 | do_bf8: %packed_bf8 = call i32 @llvm.amdgcn.cvt.pk.bf8.f32(float %phi_val, float %phi_val, i32 0, i1 false)\n br label | CODE |
| CRITICAL | tinygrad/renderer/llvmir.py | 279 | do_fp8: %packed_fp8 = call i32 @llvm.amdgcn.cvt.pk.fp8.f32(float %phi_val, float %phi_val, i32 0, i1 false)\n br label | CODE |
| CRITICAL | extra/hcq1/ops_amd_old.py | 734 | self.dev.iface.pci_dev.usb.scsi_read_arm(lsize:=min(cp_size, dest.nbytes - i)) | CODE |
| CRITICAL | …/tinychat/assets/unpkg.com/marked@13.0.0/marked.min.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?def | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/runtime/test_optim.py | 35 | CODE | |
| LOW | test/runtime/test_jit.py | 585 | CODE | |
| LOW | test/runtime/test_softmax_fusion.py | 28 | CODE | |
| LOW | test/runtime/test_ops.py | 23 | CODE | |
| LOW | test/external/external_test_lr_schedule.py | 22 | CODE | |
| LOW | test/external/external_test_optim.py | 33 | CODE | |
| LOW | test/external/external_test_optim.py | 47 | CODE | |
| LOW | test/external/mlperf_retinanet/model/transform.py | 163 | CODE | |
| LOW | tinygrad/nn/onnx.py | 565 | CODE | |
| LOW | tinygrad/nn/onnx.py | 743 | CODE | |
| LOW | tinygrad/nn/onnx.py | 787 | CODE | |
| LOW | tinygrad/nn/onnx.py | 1005 | CODE | |
| LOW | tinygrad/nn/onnx.py | 1051 | CODE | |
| LOW | tinygrad/nn/optim.py | 83 | CODE | |
| LOW | tinygrad/nn/optim.py | 101 | CODE | |
| LOW | tinygrad/nn/optim.py | 153 | CODE | |
| LOW | tinygrad/runtime/ops_amd.py | 136 | CODE | |
| LOW | tinygrad/runtime/support/autogen.py | 102 | CODE | |
| LOW | tinygrad/uop/ops.py | 1438 | CODE | |
| LOW | extra/multitensor.py | 28 | CODE | |
| LOW | extra/hcq1/ops_amd_old.py | 94 | CODE | |
| LOW | extra/models/llama.py | 196 | CODE | |
| LOW | extra/models/resnet.py | 33 | CODE | |
| LOW | extra/models/resnet.py | 62 | CODE | |
| LOW | extra/models/mask_rcnn.py | 867 | CODE | |
| LOW | extra/models/mask_rcnn.py | 879 | CODE | |
| LOW | extra/models/retinanet.py | 198 | CODE | |
| LOW | extra/models/bert.py | 14 | CODE | |
| LOW | extra/models/bert.py | 43 | CODE | |
| LOW | extra/models/rnnt.py | 10 | CODE | |
| LOW | extra/gemm/cdna_asm_gemm.py | 296 | CODE | |
| LOW | examples/mamba.py | 93 | CODE | |
| LOW | examples/beautiful_cartpole.py | 82 | CODE | |
| LOW | examples/mixtral.py | 22 | CODE | |
| LOW | examples/mlperf/metrics.py | 46 | CODE | |
| LOW | examples/mlperf/optim.py | 40 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | test/null/test_llm_tokenizer.py | 69 | self.assertLess(min(tms), 4) # best-of-5 is robust to CI scheduling pauses; new code takes ~60ms | CODE |
| LOW | test/mockgpu/amd/emu.py | 806 | # For PAD and SEXT, unused bits are zero (PAD) or sign-extended (SEXT). For DWORD, just return val. | STRING |
| LOW | test/mockgpu/nv/nvdriver.py | 218 | # Profiler commands - just pass through for mockgpu | COMMENT |
| MEDIUM | test/external/external_llm_eval.py | 2 | # uses Meta's exact ARC-Challenge prompt template from lm-evaluation-harness llama3 tasks | COMMENT |
| LOW | tinygrad/nn/optim.py | 73 | # LARS is essentially just trust ratio to SGD so if we just set the trust coeff 0.0 it's just standard SGD. | COMMENT |
| LOW | tinygrad/nn/optim.py | 131 | # LAMB is essentially just the trust ratio part of LARS applied to Adam/W so if we just set the trust ratio to 1.0 it's | COMMENT |
| LOW | tinygrad/runtime/ops_metal.py | 32 | # library is loaded first then RTLD_LOCAL library will just use it's symbols. On linux there is RTLD_DEEPBIND to preve | COMMENT |
| LOW | tinygrad/runtime/ops_metal.py | 66 | # Fields other than invoke are unused in this case so we can just use ctypes.byref with negative offset to invoke fi | COMMENT |
| LOW | tinygrad/uop/ops.py | 1656 | # without tracking, we just call the function (unless top-level, which always profiles) | COMMENT |
| LOW | extra/models/llama.py | 150 | # if temperature is very low just use argmax | COMMENT |
| MEDIUM⚡ | extra/gemm/amd_asm_matmul.py | 435 | # Test harness | COMMENT |
| LOW | examples/tools/bandwidth_test.py | 19 | # this copy would be optimized out, just add 1 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/amd/hw/test_dpp.py | 0 | .text .globl test .p2align 8 .type test,@function test: .byte {byte_str} .rodata .p2align 6 .amdhsa_kernel test .amdhsa_ | STRING |
| HIGH | test/amd/hw/test_cdna_vop3.py | 0 | .text .globl test .p2align 8 .type test,@function test: .byte {byte_str} .rodata .p2align 6 .amdhsa_kernel test .amdhsa_ | STRING |
| HIGH | test/amd/hw/helpers.py | 0 | .text .globl test .p2align 8 .type test,@function test: .byte {byte_str} .rodata .p2align 6 .amdhsa_kernel test .amdhsa_ | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/amd/hw/test_vopc.py | 830 | # Set VCC to all 1s first | COMMENT |
| LOW | test/amd/hw/test_vopc.py | 832 | # Set EXEC to only lane 0 | COMMENT |
| LOW | test/null/test_simplify_valid_idx.py | 170 | s.add(Not(load == simplifed_load)) # Check if they are NOT equivalent | CODE |
| LOW | test/null/test_simplify_valid_idx.py | 178 | s.add(Not(load == wrong_simplifed_load)) # Check if they are NOT equivalent | CODE |
| LOW | test/mockgpu/usb.py | 103 | # Check if upper 32 bits of a 64-bit BAR | COMMENT |
| LOW | test/mockgpu/amd/pcode.py | 1365 | # Check if any branch returned a value (lambda-style) | COMMENT |
| LOW | test/mockgpu/amd/emu.py | 1841 | # Check if instruction matches any cached canonical pattern (must also match instruction type to avoid variant conflic | STRING |
| LOW | tinygrad/renderer/amd/generate.py | 404 | # Check if this is a suffix-only variant | COMMENT |
| LOW | tinygrad/runtime/support/system.py | 191 | os.umask(0) # Set umask to 0 to allow creating files with 0666 permissions | CODE |
| LOW | extra/hcq1/graph.py | 385 | # Check if all devices are HCQ | COMMENT |
| LOW | extra/hcq1/graph.py | 392 | # Check if all devices are within the same peer group. Allow cross-peer-group if all peer groups have RDMA devices. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/mockgpu/amd/amdgpu.py | 117 | for _ in range(n + 1): self._next_dword() # TODO: implement | CODE |
| LOW⚡ | extra/huggingface_onnx/huggingface_manager.py | 38 | # TODO: implement attribute with graph type and Loop op | COMMENT |
| LOW⚡ | extra/huggingface_onnx/huggingface_manager.py | 40 | # TODO: implement SimplifiedLayerNormalization, SkipSimplifiedLayerNormalization, GroupQueryAttention | COMMENT |
| LOW⚡ | extra/huggingface_onnx/huggingface_manager.py | 42 | # TODO: implement SimplifiedLayerNormalization, SkipSimplifiedLayerNormalization, RotaryEmbedding, MultiHeadAttention | COMMENT |
| LOW⚡ | extra/huggingface_onnx/huggingface_manager.py | 44 | # TODO: implement RandomNormalLike | COMMENT |
| LOW⚡ | extra/huggingface_onnx/huggingface_manager.py | 46 | # TODO: implement NonZero | COMMENT |
| LOW | examples/mlperf/model_train.py | 984 | # TODO: implement grad accumulation + mlperf logging | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …re.com/ajax/libs/highlight.js/11.10.0/highlight.min.js | 317 | }),ie=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| LOW | examples/mlperf/model_train.py | 1487 | def fake_data(bs, samples): | CODE |
| LOW | examples/mlperf/model_train.py | 1495 | return fake_data(BS, SAMPLES) | CODE |
| LOW | examples/mlperf/model_train.py | 1508 | return fake_data(EVAL_BS, EVAL_SAMPLES) | CODE |
| LOW | examples/mlperf/model_train.py | 1798 | def fake_data(bs, samples): | CODE |
| LOW | examples/mlperf/model_train.py | 1806 | return fake_data(BS, SAMPLES) | CODE |
| LOW | examples/mlperf/model_train.py | 1819 | return fake_data(EVAL_BS, EVAL_SAMPLES) | CODE |
| LOW | …kg.com/@highlightjs/cdn-assets@11.9.0/highlight.min.js | 317 | }),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/null/test_viz.py | 29 | def set_data(self) -> None: | CODE |
| LOW | tinygrad/renderer/amd/dsl.py | 191 | if not isinstance(val, Reg): raise TypeError(f"VGPRField requires Reg, got {type(val).__name__}") | CODE |
| LOW | tinygrad/renderer/amd/dsl.py | 207 | if not isinstance(val, Reg): raise TypeError(f"{self.__class__.__name__} requires Reg, got {type(val).__name__}") | CODE |
| LOW⚡ | tinygrad/renderer/amd/dsl.py | 224 | if not isinstance(val, Reg): raise TypeError(f"VDSTYField requires Reg, got {type(val).__name__}") | CODE |
| LOW | tinygrad/runtime/autogen/am/__init__.py | 4 | __all__ = ["am", "pm4_soc15", "pm4_nv", "sdma_4_0_0", "sdma_5_0_0", "sdma_6_0_0", "smu_13_0_0", "smu_13_0_6", "smu_13_0_ | CODE |
| LOW | tinygrad/runtime/autogen/nv_regs/__init__.py | 11 | __all__ = ["nv_ref", *swref.keys(), *hwref.keys()] | CODE |
| LOW | extra/torch_backend/backend.py | 39 | def _update_torch_metadata(tensor: torch.Tensor, tiny: Tensor) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/amd/test_emu2_pcode.py | 213 | # Create a mock LDS buffer | COMMENT |
| MEDIUM | tinygrad/runtime/support/compiler_llvm.py | 33 | # Create a per-instance context instead of using the global context to avoid shared state between parallel test proc | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ternal/mlperf_bert/external_test_checkpoint_loading.py | 2 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/runtime/test_linearizer.py | 175 | def helper(t, max_ops=0): | CODE |