You like pytorch? You like micrograd? You love tinygrad! ❤️
4173 matches across 13 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/testextra/test_hk_fa.py | 82 | def test_fast_fa_bwd_causal_jitted(self): |
| LOW | test/testextra/test_bench_log.py | 16 | def test_log_single_wall_time(self): |
| LOW | test/testextra/test_bench_log.py | 26 | def test_log_double_wall_time(self): |
| LOW | test/testextra/test_bench_log.py | 42 | def test_log_single_kernel_time(self): |
| LOW | test/testextra/test_bench_log.py | 59 | def test_interleaved_wall_kernel_time(self): |
| LOW | test/testextra/test_bench_log.py | 81 | def test_stacked_wall_kernel_time(self): |
| LOW | test/testextra/test_tk.py | 78 | def test_simple_matmul_transposed(self): |
| LOW | test/testextra/test_tk.py | 164 | def test_load_store_local_hop(self): |
| LOW | test/testextra/test_tk.py | 204 | def test_load_store_multioutput(self): |
| LOW | test/testextra/test_tk.py | 887 | def test_fast_fa_bwd_causal_jitted(self): |
| LOW | test/testextra/test_tk.py | 938 | def test_fast_fa_bwd_multidevice(self): |
| LOW | test/testextra/test_lr_scheduler.py | 93 | def test_reducelronplateau_max(self): self._test_reducelronplateau(100, {'mode': 'max'}, 1e-6, 1e-6) |
| LOW | test/testextra/test_lr_scheduler.py | 94 | def test_reducelronplateau_factor(self): self._test_reducelronplateau(100, {'factor': 0.1337}, 1e-6, 1e-6) |
| LOW | test/testextra/test_lr_scheduler.py | 95 | def test_reducelronplateau_patience(self): self._test_reducelronplateau(100, {'patience': 3}, 1e-6, 1e-6) |
| LOW | test/testextra/test_lr_scheduler.py | 96 | def test_reducelronplateau_threshold(self): self._test_reducelronplateau(100, {'threshold': 1e-6}, 1e-6, 1e-6) |
| LOW | test/testextra/test_lr_scheduler.py | 97 | def test_reducelronplateau_threshold_mode(self): self._test_reducelronplateau(100, {'threshold_mode': 'abs'}, 1e-6, 1e |
| LOW | test/testextra/test_lr_scheduler.py | 100 | def test_cosineannealinglr_eta_min(self): self._test_cosineannealinglr(100, {'eta_min': 0.001}, 1e-6, 1e-6) |
| LOW | test/testextra/test_export_model.py | 21 | def test_multi_input_model_export(self): |
| LOW | test/testextra/test_export_model.py | 36 | def test_multi_output_model_export(self): |
| LOW | test/testextra/test_export_model.py | 54 | def test_exported_input_output_dtypes(self): |
| LOW | test/testextra/test_export_model.py | 71 | def test_weights_bound_to_safetensor(self): |
| LOW | test/testextra/test_mockgpu.py | 7 | def test_import_typing_extensions(self): |
| LOW | test/unit/test_gradient.py | 21 | def test_with_custom_gradient(self): |
| LOW | test/unit/test_gradient.py | 49 | def test_non_float_tensor_raise(self): |
| LOW | test/unit/test_gradient.py | 54 | def test_copy_to_device_gradient(self): |
| LOW | test/unit/test_gradient.py | 72 | def test_gradient_through_clone_from_grad_src(self): |
| LOW | test/unit/test_gradient.py | 80 | def test_gradient_through_clone_from_detached_src(self): |
| LOW | test/unit/test_gradient.py | 87 | def test_setitem_on_grad_used_tensor_raises(self): |
| LOW | test/unit/test_gradient.py | 93 | def test_gradient_through_chained_unrealized_setitem(self): |
| LOW | test/unit/test_gradient.py | 101 | def test_bare_const_skipped_by_backward(self): |
| LOW | test/unit/test_gradient.py | 122 | def test_custom_kernel_multi_output_backward(self): |
| LOW | test/unit/test_gradient.py | 134 | def test_custom_kernel_multi_output_backward_interacting(self): |
| LOW | test/unit/test_gradient.py | 146 | def test_custom_kernel_three_output_backward(self): |
| LOW | test/unit/test_tar.py | 34 | def test_tar_extract_returns_dict(self): |
| LOW | test/unit/test_tar.py | 38 | def test_tar_extract_correct_keys(self): |
| LOW | test/unit/test_tar.py | 42 | def test_tar_extract_content_size(self): |
| LOW | test/unit/test_tar.py | 47 | def test_tar_extract_content_values(self): |
| LOW | test/unit/test_tar.py | 52 | def test_tar_extract_empty_file(self): |
| LOW | test/unit/test_tar.py | 56 | def test_tar_extract_non_existent_file(self): |
| LOW | test/unit/test_tar.py | 60 | def test_tar_extract_invalid_file(self): |
| LOW | test/unit/test_tar.py | 98 | def test_tar_extract_returns_dict(self): |
| LOW | test/unit/test_tar.py | 102 | def test_tar_extract_correct_keys(self): |
| LOW | test/unit/test_tar.py | 106 | def test_tar_extract_content_size(self): |
| LOW | test/unit/test_tar.py | 111 | def test_tar_extract_content_values(self): |
| LOW | test/unit/test_tar.py | 116 | def test_tar_extract_empty_file(self): |
| LOW | test/unit/test_tar.py | 120 | def test_tar_extract_non_existent_file(self): |
| LOW | test/unit/test_tar.py | 124 | def test_tar_extract_invalid_file(self): |
| LOW | test/unit/test_tar.py | 128 | def test_tar_extract_invalid_file_long(self): |
| LOW | test/unit/test_invalid_tensor.py | 46 | def test_where_invalid_add_left(self): |
| LOW | test/unit/test_invalid_tensor.py | 78 | def test_where_reduce_always_true(self): |
| LOW | test/unit/test_gguf.py | 114 | def test_expected_failure_unknown_type(self): |
| LOW | test/unit/test_gguf.py | 250 | def test_gguf_load_no_tensor_leak(self): |
| LOW | test/unit/test_assign.py | 139 | def test_assign_changes_realized_alt(self): return self.test_assign_changes_alt(realize=True) |
| LOW | test/unit/test_assign.py | 141 | def test_assign_changes_buffer_alt(self): |
| LOW | test/unit/test_assign.py | 146 | def test_assign_diamond_cycle(self): |
| LOW | test/unit/test_assign.py | 155 | def test_assign_diamond_contiguous_cycle(self): |
| LOW | test/unit/test_assign.py | 163 | def test_assign_diamond_possible(self): |
| LOW | test/unit/test_assign.py | 170 | def test_assign_diamond_possible_contiguous(self): |
| LOW | test/unit/test_assign.py | 177 | def test_assign_diamond_both_contiguous(self): |
| LOW | test/unit/test_assign.py | 377 | def test_permuted_assignment_correct(self): |
| 1955 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/unit/test_indexing.py | 1001 | # setting values |
| LOW | test/unit/test_indexing.py | 1021 | # strided = set_(reference, (2,), (4,), offset=4) |
| LOW | test/unit/test_indexing.py | 1121 | # [9 11 13 15]] |
| LOW | test/unit/test_indexing.py | 1141 | # [1, 0]]) |
| LOW | test/unit/test_indexing.py | 1181 | # reference = Tensor.arange(0., 24).realize().reshape(3, 8) |
| LOW | test/backend/test_jit_cases.py | 1 | import unittest |
| LOW | test/backend/test_edgecases.py | 1 | # end to end tests of tinygrad that you think might be edge cases. |
| LOW | test/null/test_uop_symbolic.py | 1161 | # assert (idx0*(i*4+4)) // (i+1) == (idx0*4) |
| LOW | test/external/external_test_am.py | 41 | # * 56 F |
| LOW | test/external/mlperf_retinanet/model/utils.py | 101 | """ |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 221 | # We *usually* want to fill up the entire sequence since we are padding |
| LOW | …bert/preprocessing/external_test_preprocessing_part.py | 1 | # USAGE: |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 1 | # https://github.com/mlcommons/training/blob/e3769c8dcf88cd21e1001dd2f894b40a1513ec5d/image_classification/tensorflow2/l |
| LOW | test/external/mlperf_resnet/lars_util.py | 1 | # https://github.com/mlcommons/training/blob/e237206991d10449d9675d95606459a3cb6c21ad/image_classification/tensorflow2/l |
| LOW | tinygrad/uop/symbolic.py | 421 | # Skip if x contains DIV/MOD AND IMAGE mode is enabled -> image index e.g. openpilot |
| LOW | extra/hook_cuda.py | 141 | #if name == "exp2_kernel_vectorized4_kernel": |
| LOW | extra/hook_cuda.py | 181 | #install_hook(cuda.cuFuncGetModule, dummy) |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 201 | #define ATHUB_BASE__INST0_SEG1 0x02408C00 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 221 | #define ATHUB_BASE__INST3_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 241 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 261 | #define CLK_BASE__INST3_SEG1 0x02402400 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 281 | #define CLK_BASE__INST6_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 301 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 321 | #define DF_BASE__INST6_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 341 | #define DIO_BASE__INST2_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 361 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 381 | #define DCN_BASE__INST2_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 401 | #define DCN_BASE__INST5_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 421 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 441 | #define DPCS_BASE__INST5_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 461 | #define FUSE_BASE__INST1_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 481 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 501 | #define GC_BASE__INST1_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 521 | #define GC_BASE__INST4_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 541 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 561 | #define HDA_BASE__INST4_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 581 | #define HDP_BASE__INST0_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 601 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 621 | #define MMHUB_BASE__INST0_SEG1 0x02408800 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 641 | #define MMHUB_BASE__INST3_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 661 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 681 | #define MP0_BASE__INST3_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 701 | #define MP0_BASE__INST6_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 721 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 741 | #define MP1_BASE__INST6_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 761 | #define NBIO_BASE__INST2_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 781 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 801 | #define OSSSYS_BASE__INST2_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 821 | #define OSSSYS_BASE__INST5_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 841 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 861 | #define PCIE0_BASE__INST5_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 881 | #define SDMA0_BASE__INST1_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 901 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 921 | #define SDMA1_BASE__INST1_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 941 | #define SDMA1_BASE__INST4_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 961 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 981 | #define SMUIO_BASE__INST4_SEG1 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 1001 | #define THM_BASE__INST0_SEG3 0 |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 1021 | |
| LOW | extra/hip_gpu_driver/sienna_cichlid_ip_offset.h | 1041 | #define UMC_BASE__INST0_SEG1 0x02425800 |
| 940 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/testextra/test_mockgpu.py | 8 | |
| LOW | test/backend/test_linearizer.py | 18 | |
| LOW | test/backend/test_uops.py | 6 | |
| LOW | test/backend/test_ops.py | 13 | |
| LOW | test/amd/test_sqtt_encoder.py | 9 | |
| LOW | test/amd/disasm.py | 2 | |
| LOW | test/amd/test_dsl2.py | 2 | |
| LOW | test/amd/test_formats.py | 7 | |
| LOW | test/amd/test_handwritten.py | 5 | |
| LOW | test/amd/test_integration.py | 4 | |
| LOW | test/amd/test_rdna3_asm.py | 3 | |
| LOW | test/amd/test_custom_kernel.py | 10 | |
| LOW | test/amd/hw/test_vop1.py | 8 | |
| LOW | test/amd/hw/test_scratch.py | 6 | |
| LOW | test/amd/hw/test_dpp.py | 8 | |
| LOW | test/amd/hw/test_flat.py | 6 | |
| LOW | test/amd/hw/test_sop.py | 7 | |
| LOW | test/amd/hw/test_vopc.py | 6 | |
| LOW | test/amd/hw/test_vop3p.py | 6 | |
| LOW | test/amd/hw/test_smem.py | 7 | |
| LOW | test/amd/hw/test_ds.py | 8 | |
| LOW | test/amd/hw/test_vop3.py | 7 | |
| LOW | test/amd/hw/test_vop2.py | 8 | |
| LOW | test/amd/hw/test_global.py | 6 | |
| LOW | test/amd/hw/helpers.py | 7 | |
| LOW | test/amd/hw/test_vinterp.py | 3 | |
| LOW | test/null/test_uops.py | 6 | |
| LOW | test/mockgpu/usb.py | 1 | |
| LOW | test/mockgpu/am/amgpu.py | 2 | |
| LOW | test/mockgpu/am/amdriver.py | 1 | |
| LOW | test/mockgpu/cuda/cuda.py | 1 | |
| LOW | test/mockgpu/amd/emu.py | 8 | |
| LOW | test/external/fuzz_shape_ops.py | 1 | |
| LOW | test/external/external_test_am_fault_recovery.py | 4 | |
| LOW | test/external/external_benchmark_op_conv.py | 2 | |
| LOW | test/external/external_benchmark_op_conv.py | 5 | |
| LOW | test/external/external_benchmark_op_conv.py | 5 | |
| LOW | test/external/mlperf_bert/preprocessing/tokenization.py | 5 | |
| LOW | test/external/mlperf_bert/preprocessing/tokenization.py | 6 | |
| LOW | test/external/mlperf_bert/preprocessing/tokenization.py | 7 | |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 6 | |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 7 | |
| LOW | …l/mlperf_bert/preprocessing/create_pretraining_data.py | 8 | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 20 | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 21 | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 22 | |
| LOW | test/external/mlperf_resnet/lars_optimizer.py | 26 | |
| LOW | test/external/mlperf_resnet/lars_util.py | 22 | |
| LOW | test/external/mlperf_resnet/lars_util.py | 23 | |
| LOW | test/external/mlperf_resnet/lars_util.py | 24 | |
| LOW | test/external/mlperf_resnet/lars_util.py | 30 | |
| LOW | tinygrad/device.py | 1 | |
| LOW | tinygrad/dtype.py | 1 | |
| LOW | tinygrad/__init__.py | 5 | |
| LOW | tinygrad/__init__.py | 6 | |
| LOW | tinygrad/__init__.py | 7 | |
| LOW | tinygrad/__init__.py | 10 | |
| LOW | tinygrad/__init__.py | 11 | |
| LOW | tinygrad/__init__.py | 11 | |
| LOW | tinygrad/__init__.py | 11 | |
| 561 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/amd/disasm.py | 41 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 43 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 63 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 65 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 81 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 83 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 103 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 105 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 171 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 173 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 640 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/disasm.py | 642 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/test_sqtt_examples.py | 20 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/amd/test_sqtt_examples.py | 22 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/pcode.py | 84 | # ═════ FP8 (E4M3) and BF8 (E5M2) conversion helpers ═════ |
| MEDIUM | test/mockgpu/amd/pcode.py | 380 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/pcode.py | 382 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 2103 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 2105 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 76 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 78 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 419 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 421 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 785 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 787 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 2047 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 2049 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 2155 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/mockgpu/amd/emu.py | 2157 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | test/external/mlperf_resnet/lars_optimizer.py | 17 | # ============================================================================== |
| MEDIUM | test/external/mlperf_resnet/lars_util.py | 19 | # ============================================================================== |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 15 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 17 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 181 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 183 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 206 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 208 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 253 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 255 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 432 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 434 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 577 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 579 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 644 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 646 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 697 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/sqtt.py | 699 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 4 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 6 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 91 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 93 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 142 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 144 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 234 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 236 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 244 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/dsl.py | 246 | # ══════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/generate.py | 7 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/generate.py | 9 | # ═══════════════════════════════════════════════════════════════════════════════ |
| MEDIUM | tinygrad/renderer/amd/generate.py | 41 | # ═══════════════════════════════════════════════════════════════════════════════ |
| 58 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | sz.py | 17 | |
| LOW | test/testextra/test_bench_log.py | 81 | |
| LOW | test/unit/test_cpu.py | 11 | |
| LOW | test/unit/test_gguf.py | 194 | |
| LOW | test/unit/test_tinyfs.py | 9 | |
| LOW | test/speed/external_test_copy_speed.py | 80 | |
| LOW | test/backend/test_symbolic_ops.py | 272 | |
| LOW | test/backend/test_symbolic_ops.py | 300 | |
| LOW | test/backend/test_multitensor.py | 244 | |
| LOW | test/backend/test_multitensor.py | 1344 | |
| LOW | test/backend/test_nn.py | 16 | |
| LOW | test/backend/test_jit.py | 721 | |
| LOW | test/backend/test_uops.py | 88 | |
| LOW | test/backend/test_uops.py | 160 | |
| LOW | test/backend/test_ops.py | 712 | |
| LOW | test/backend/test_ops.py | 1798 | |
| LOW | test/backend/test_ops.py | 1813 | |
| LOW | test/backend/test_ops.py | 2319 | |
| LOW | test/backend/test_ops.py | 2348 | |
| LOW | test/backend/test_ops.py | 2357 | |
| LOW | test/backend/test_ops.py | 2481 | |
| LOW | test/amd/disasm.py | 47 | |
| LOW | test/amd/disasm.py | 151 | |
| LOW | test/amd/disasm.py | 284 | |
| LOW | test/amd/disasm.py | 334 | |
| LOW | test/amd/disasm.py | 724 | |
| LOW | test/amd/test_sqtt_examples.py | 24 | |
| LOW | test/amd/test_sqtt_examples.py | 45 | |
| LOW | test/amd/test_sqtt_examples.py | 110 | |
| LOW | test/amd/test_sqtt_examples.py | 121 | |
| LOW | test/amd/test_sqtt_examples.py | 165 | |
| LOW | test/amd/test_sqtt_examples.py | 195 | |
| LOW | test/amd/test_sqttmap.py | 84 | |
| LOW | test/amd/test_sqttmap.py | 95 | |
| LOW | test/amd/test_sqttmap.py | 119 | |
| LOW | test/amd/test_sqttmap.py | 149 | |
| LOW | test/amd/test_roundtrip.py | 57 | |
| LOW | test/amd/test_roundtrip.py | 115 | |
| LOW | test/amd/test_llvm.py | 84 | |
| LOW | test/amd/test_llvm.py | 85 | |
| LOW | test/amd/hw/helpers.py | 238 | |
| LOW | test/null/test_dtype_spec.py | 166 | |
| LOW | test/null/test_dtype_spec.py | 174 | |
| LOW | test/null/test_tqdm.py | 72 | |
| LOW | test/null/test_tqdm.py | 253 | |
| LOW | test/mockgpu/mockgpu.py | 41 | |
| LOW | test/mockgpu/usb.py | 144 | |
| LOW | test/mockgpu/usb.py | 171 | |
| LOW | test/mockgpu/am/amdriver.py | 99 | |
| LOW | test/mockgpu/amd/amdgpu.py | 46 | |
| LOW | test/mockgpu/amd/amdgpu.py | 90 | |
| LOW | test/mockgpu/amd/amdgpu.py | 267 | |
| LOW | test/mockgpu/amd/amddriver.py | 122 | |
| LOW | test/mockgpu/amd/amddriver.py | 185 | |
| LOW | test/mockgpu/amd/pcode.py | 402 | |
| LOW | test/mockgpu/amd/pcode.py | 922 | |
| LOW | test/mockgpu/amd/pcode.py | 932 | |
| LOW | test/mockgpu/amd/pcode.py | 535 | |
| LOW | test/mockgpu/amd/pcode.py | 549 | |
| LOW | test/mockgpu/amd/pcode.py | 664 | |
| 216 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/amd/test_formats.py | 154 | # v_add3_u32 v5, null, exec_lo, 0xaf123456 |
| 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", |
| HIGH | tinygrad/runtime/ops_metal.py | 108 | proc = subprocess.Popen(f"cd {pathlib.Path(__file__).parents[2]}/extra/disassemblers/applegpu && python3 compiler_ |
| 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( |
| 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 |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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 |
| 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 |
| 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 |
| 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( |
| 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 |
| 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 |
| HIGH | extra/nv_pma/cupti/cu_prof_ext.py | 53 | if DEBUG >= 1: print(" CUPTI: PC sampling needs: echo 'options nvidia NVreg_RestrictProfilingToAdminUsers=0'| |
| HIGH | examples/webgpu/stable_diffusion/compile.py | 134 | const metadata = safetensor ? getTensorMetadata(safetensor[0]) : null; |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/helpers.py | 107 | except Exception as e: self.skipTest(f"second device not available: {e}") |
| LOW | test/backend/test_multitensor.py | 1157 | except Exception as e: |
| LOW | test/backend/test_jit.py | 815 | except Exception: raise unittest.SkipTest("no multidevice") |
| LOW | test/backend/test_jit.py | 838 | except Exception: raise unittest.SkipTest("no multidevice") |
| LOW | test/backend/test_profiler.py | 100 | except Exception as e: self.skipTest(f"second device not available {e}") |
| LOW | test/backend/test_profiler.py | 115 | except Exception as e: self.skipTest(f"second device not available {e}") |
| LOW | test/backend/test_profiler.py | 127 | except Exception as e: self.skipTest(f"second device not available {e}") |
| LOW | test/backend/test_profiler.py | 152 | except Exception as e: self.skipTest(f"multiple devices not available {e}") |
| LOW | test/backend/test_ops.py | 52 | except Exception as e: |
| LOW | test/backend/test_asm_gemm.py | 227 | except Exception: return False |
| LOW | test/amd/test_sqtt_examples.py | 84 | except Exception as e: exc = e |
| LOW | test/amd/test_sqttmap.py | 29 | except Exception as e: self.skipTest(f"latest rocprof not available, install with extra/sqtt/install_rocprof_decoder |
| LOW | test/amd/test_roundtrip.py | 152 | except Exception as e: |
| LOW | test/amd/test_emu2_pcode.py | 374 | except Exception as e: self.fail(f"[{arch}] {op.name}: {e}\nPcode: {pcode[:200]}") |
| LOW | test/amd/test_llvm.py | 117 | except Exception: skipped += 1 |
| LOW | test/amd/test_llvm.py | 129 | except Exception: pass |
| LOW | test/null/test_device.py | 74 | except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}") |
| LOW | test/null/test_device.py | 86 | except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}") |
| LOW | test/null/test_device.py | 101 | except Exception as e: self.skipTest(f"skipping compiler test: not all compilers: {e}") |
| LOW | test/null/test_device.py | 117 | except Exception as e: self.skipTest(f"skipping: LLVM not available: {e}") |
| LOW | test/mockgpu/am/amgpu.py | 38 | except Exception: return {} |
| LOW | test/mockgpu/cuda/cuda.py | 132 | except Exception as e: |
| MEDIUM | test/mockgpu/cuda/cuda.py | 133 | print("Error in cuLaunchKernel:", e) |
| LOW | test/mockgpu/amd/pcode.py | 1159 | except Exception: pass |
| LOW | test/mockgpu/amd/emu.py | 2098 | except Exception as e: |
| LOW | test/mockgpu/amd/emu.py | 2100 | except Exception: inst_str = f"<{type(inst).__name__}>" |
| LOW | test/mockgpu/amd/emu.py | 38 | except Exception: return None, 0 |
| LOW | test/mockgpu/nv/nvgpu.py | 103 | except Exception as e: print("failed to execute:", e) |
| LOW | test/device/test_hcq.py | 316 | except Exception: self.skipTest("no multidevice, test skipped") |
| LOW | test/device/test_hcq.py | 374 | except Exception: self.skipTest("no multidevice, test skipped") |
| LOW | test/device/test_hcq.py | 452 | except Exception: self.skipTest("no multidevice, test skipped") |
| LOW | test/device/test_hcq.py | 568 | except Exception: break |
| LOW | test/device/test_hcq.py | 597 | except Exception: self.skipTest("no AMD device, test skipped") |
| LOW | test/device/test_hcq.py | 600 | except Exception: self.skipTest("no NV device, test skipped") |
| LOW | test/device/test_hcq.py | 611 | except Exception: self.skipTest("no AMD device, test skipped") |
| LOW | test/device/test_hcq.py | 616 | except Exception: self.skipTest("no NV device, test skipped") |
| LOW | test/device/test_hcq.py | 627 | except Exception: self.skipTest("no multidevice, test skipped") |
| MEDIUM | test/device/test_hcq.py | 607 | def test_multidevice_p2p(self): |
| LOW | test/external/external_test_process_count.py | 15 | except Exception as e: |
| LOW | test/external/external_model_benchmark.py | 77 | except Exception as e: |
| LOW | test/external/external_model_benchmark.py | 83 | except Exception as e: print(f"{m:16s}torch_cpu {type(e).__name__:>25}") |
| LOW | test/external/external_model_benchmark.py | 89 | except Exception as e: print(f"{m:16s}torch_{torch_device} {type(e).__name__:>25}") |
| LOW | test/external/external_model_benchmark.py | 101 | except Exception as e: print(f"{m:16s}onnxruntime_{backend.lower()} {type(e).__name__:>25}") |
| LOW | test/external/external_test_example.py | 19 | except Exception: |
| LOW | test/external/external_test_example.py | 58 | except Exception: |
| MEDIUM | test/external/external_test_example.py | 55 | def test_example_matmul(self, device): |
| LOW | test/external/external_fuzz_hcq_mp.py | 33 | except Exception as e: |
| LOW | test/external/external_test_gpu_crash.py | 41 | except Exception: |
| LOW | test/external/external_benchmark_pyrender.py | 28 | except Exception: ren = "PYRENDER_ERR" |
| LOW | test/external/process_replay/process_replay.py | 94 | except Exception as e: |
| LOW | test/external/process_replay/process_replay.py | 126 | except Exception as e: |
| LOW | tinygrad/device.py | 363 | except Exception as e: iface_results.append(f"{colored('-', 'red')} {iface.__name__[:-5]}: {e}") |
| LOW | tinygrad/device.py | 370 | except Exception as e: ren_results.append(f"{colored('-', 'red')} {d._renderer_name(r)}: {e}") |
| LOW | tinygrad/device.py | 373 | except Exception as e: result = f"{colored('FAIL', 'red')} {e}" |
| LOW | tinygrad/helpers.py | 146 | except Exception as e: excs.append(e) |
| LOW | tinygrad/runtime/ops_cpu.py | 41 | except Exception as e: self.dev.error_state = e |
| LOW | tinygrad/runtime/ops_amd.py | 689 | except Exception as e: |
| LOW | tinygrad/runtime/support/autogen.py | 288 | except Exception as e: raise Exception("parsing failed") from e |
| 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 |
| LOW | tinygrad/runtime/support/compiler_cuda.py | 42 | except Exception as e: print("Failed to generate SASS", str(e), "Make sure your PATH contains ptxas/nvdisasm binary of |
| 26 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tinygrad/renderer/llvmir.py | 60 | # example: %wmma0 = call <8 x float> @llvm.amdgcn.wmma.f32.16x16x16.f16(<16 x half> %v99,<16 x half> %v100,<8 x float> |
| CRITICAL | tinygrad/renderer/llvmir.py | 256 | 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 |
| CRITICAL | tinygrad/renderer/llvmir.py | 257 | 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 |
| CRITICAL | tinygrad/runtime/ops_amd.py | 663 | self.dev.iface.pci_dev.usb.scsi_read_arm(lsize:=min(cp_size, dest.nbytes - i)) |
| CRITICAL | tinygrad/runtime/support/system.py | 275 | if b.owner != self.dev: self.dev.iface.dev_impl.mm.unmap_range(b.va_addr, b.size) |
| CRITICAL | extra/hcq2/hcq2.py | 106 | self.dev.iface.dev_impl.mm.unmap_range(int(mb.va_addr), round_up(mb.size, 0x1000)) |
| 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 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/mockgpu/amd/emu.py | 926 | # For PAD and SEXT, unused bits are zero (PAD) or sign-extended (SEXT). For DWORD, just return val. |
| LOW | test/mockgpu/nv/nvdriver.py | 218 | # Profiler commands - just pass through for mockgpu |
| MEDIUM | test/external/external_llm_eval.py | 2 | # uses Meta's exact ARC-Challenge prompt template from lm-evaluation-harness llama3 tasks |
| 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. |
| 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 |
| LOW | tinygrad/runtime/ops_metal.py | 64 | # library is loaded first then RTLD_LOCAL library will just use it's symbols. On linux there is RTLD_DEEPBIND to preve |
| LOW | tinygrad/runtime/ops_metal.py | 98 | # Fields other than invoke are unused in this case so we can just use ctypes.byref with negative offset to invoke fi |
| LOW | tinygrad/uop/ops.py | 1436 | # without tracking, we just call the function |
| LOW | extra/models/llama.py | 150 | # if temperature is very low just use argmax |
| MEDIUM | extra/gemm/amd_asm_matmul.py | 435 | # Test harness |
| LOW | examples/tools/bandwidth_test.py | 19 | # this copy would be optimized out, just add 1 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/amd/hw/test_vopc.py | 816 | # Set VCC to all 1s first |
| LOW | test/amd/hw/test_vopc.py | 818 | # Set EXEC to only lane 0 |
| LOW | test/null/test_simplify_valid_idx.py | 185 | s.add(Not(load == simplifed_load)) # Check if they are NOT equivalent |
| LOW | test/null/test_simplify_valid_idx.py | 193 | s.add(Not(load == wrong_simplifed_load)) # Check if they are NOT equivalent |
| LOW | test/mockgpu/usb.py | 160 | # Check if upper 32 bits of a 64-bit BAR |
| LOW | test/mockgpu/amd/pcode.py | 1302 | # Check if any branch returned a value (lambda-style) |
| LOW | test/mockgpu/amd/emu.py | 1346 | # Check if sources are VGPRs (offset >= 256) vs inline constants/SGPRs |
| LOW | test/mockgpu/amd/emu.py | 2060 | # Check if instruction matches any cached canonical pattern (must also match instruction type to avoid variant conflic |
| LOW | tinygrad/renderer/amd/generate.py | 394 | # Check if this is a suffix-only variant |
| LOW | tinygrad/runtime/graph/hcq.py | 320 | # Check if all devices are HCQ |
| LOW | tinygrad/runtime/graph/hcq.py | 327 | # Check if all devices are within the same peer group. Allow cross-peer-group if all peer groups have RDMA devices. |
| LOW | tinygrad/runtime/support/hcq.py | 596 | # Check if the next buffer is safe to be used (its signal has passed) and reserve it. |
| LOW | tinygrad/runtime/support/system.py | 141 | os.umask(0) # Set umask to 0 to allow creating files with 0666 permissions |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/backend/test_multitensor.py | 649 | # Create a copy from device 0 to 1: 1 entry. |
| MEDIUM | test/amd/test_emu2_pcode.py | 200 | # Create a mock LDS buffer |
| MEDIUM | tinygrad/runtime/support/compiler_cpu.py | 58 | # Create a per-instance context instead of using the global context to avoid shared state between parallel test proc |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ternal/mlperf_bert/external_test_checkpoint_loading.py | 2 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/backend/test_linearizer.py | 303 | def helper(t, max_ops=0): |