Skip to content

[quant] refactor hip kernels (#2932)

c1c65e6
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

update #2944

[quant] refactor hip kernels (#2932)
c1c65e6
Select commit
Loading
Failed to load commit list.
GitHub Actions / ruff completed Apr 28, 2026 in 3s

reviewdog [ruff] report

reported by reviewdog 🐶

Findings (158)

.github/scripts/query_job_status.py|462 col 13| Local variable created is assigned to but never used
aiter/bert_padding.py|77 col 9| Local variable second_dim is assigned to but never used
aiter/bert_padding.py|224 col 5| Local variable dim is assigned to but never used
aiter/fused_moe_bf16_asm.py|241 col 13| Local variable fmoe_func is assigned to but never used
aiter/fused_moe_dp_shared_expert.py|156 col 9| Local variable global_E is assigned to but never used
aiter/jit/utils/cpp_extension.py|482 col 13| Local variable original_spawn is assigned to but never used
aiter/jit/utils/torch_guard.py|207 col 39| torch.library.Library imported but unused; consider using importlib.util.find_spec to test for availability
aiter/ops/flydsl/kernels/moe_gemm_2stage.py|41 col 46| flydsl._mlir.dialects.memref imported but unused
aiter/ops/flydsl/kernels/moe_gemm_2stage.py|225 col 5| Local variable module_name is assigned to but never used
aiter/ops/flydsl/kernels/moe_gemm_2stage.py|1079 col 58| Undefined name i32
aiter/ops/flydsl/kernels/moe_gemm_2stage.py|1535 col 5| Local variable module_name is assigned to but never used
aiter/ops/gemm_op_a8w8.py|758 col 12| Undefined name gfx950_a8w8_blockscale_asm
aiter/ops/mha.py|1476 col 39| Avoid equality comparisons to False; use not is_v3_atomic_fp32: for false checks
aiter/ops/mha.py|1496 col 32| Avoid equality comparisons to True; use is_v3_atomic_fp32: for truth checks
aiter/ops/mha.py|1511 col 15| Avoid equality comparisons to False; use not is_v3_atomic_fp32: for false checks
aiter/ops/mha.py|1547 col 15| Avoid equality comparisons to True; use is_v3_atomic_fp32: for truth checks
aiter/ops/mha.py|1660 col 5| Local variable nmask is assigned to but never used
aiter/ops/mha.py|2070 col 5| Local variable mask is assigned to but never used
aiter/ops/mha.py|2070 col 12| Avoid equality comparisons to True; use causal: for truth checks
aiter/ops/mha.py|2071 col 5| Local variable nmask is assigned to but never used
aiter/ops/mha.py|2072 col 9| Avoid equality comparisons to False; use not causal: for false checks
aiter/ops/mha.py|2229 col 5| Local variable mask is assigned to but never used
aiter/ops/mha.py|2229 col 12| Avoid equality comparisons to True; use causal: for truth checks
aiter/ops/mha.py|2230 col 5| Local variable nmask is assigned to but never used
aiter/ops/mha.py|2231 col 9| Avoid equality comparisons to False; use not causal: for false checks
aiter/ops/mha.py|2257 col 13| Avoid equality comparisons to True; use is_v3_atomic_fp32: for truth checks
aiter/ops/mha.py|2273 col 13| Avoid equality comparisons to True; use is_v3_atomic_fp32: for truth checks
aiter/ops/mha.py|2286 col 16| Avoid equality comparisons to False; use not deterministic: for false checks
aiter/ops/mha.py|2301 col 16| Avoid equality comparisons to False; use not deterministic: for false checks
aiter/ops/moe_op.py|8 col 35| .enum.Enum imported but unused
aiter/ops/quant.py|37 col 5| Do not use bare except
aiter/ops/sample.py|6 col 8| torch imported but unused
aiter/ops/shuffle.py|38 col 53| Undefined name N_WARP_TILE
aiter/ops/shuffle.py|41 col 53| Undefined name K_WARP_TILE
aiter/ops/triton/init.py|20 col 9| .comms.IrisCommContext imported but unused; consider using importlib.util.find_spec to test for availability
aiter/ops/triton/init.py|21 col 9| .comms.reduce_scatter imported but unused; consider using importlib.util.find_spec to test for availability
aiter/ops/triton/init.py|22 col 9| .comms.all_gather imported but unused; consider using importlib.util.find_spec to test for availability
aiter/ops/triton/init.py|23 col 9| .comms.reduce_scatter_rmsnorm_quant_all_gather imported but unused; consider using importlib.util.find_spec to test for availability
aiter/ops/triton/_triton_kernels/attention/fav3_sage_attention.py|1 col 8| torch imported but unused
aiter/ops/triton/_triton_kernels/attention/fav3_sage_attention.py|7 col 62| aiter.ops.triton.utils._triton.pid_preprocessing.pid_grid_3d imported but unused
aiter/ops/triton/_triton_kernels/attention/fav3_sage_attention_mxfp4.py|1 col 8| functools imported but unused
aiter/ops/triton/_triton_kernels/attention/fav3_sage_attention_mxfp4.py|3 col 8| torch imported but unused
aiter/ops/triton/_triton_kernels/attention/fav3_sage_attention_mxfp4.py|6 col 8| aiter imported but unused
aiter/ops/triton/_triton_kernels/attention/fav3_sage_attention_mxfp4.py|9 col 62| aiter.ops.triton.utils._triton.pid_preprocessing.pid_grid_3d imported but unused
aiter/ops/triton/_triton_kernels/attention/fav3_sage_attention_mxfp4.py|11 col 5| aiter.ops.triton._triton_kernels.attention.fav3_sage_attention.map_dims imported but unused
aiter/ops/triton/_triton_kernels/attention/lean_atten.py|181 col 5| Redefinition of unused remap_xcd from line 24: remap_xcd redefined here
aiter/ops/triton/_triton_kernels/attention/lean_atten.py|766 col 13| Local variable covered is assigned to but never used
aiter/ops/triton/_triton_kernels/attention/mla_decode_rope.py|346 col 5| Ambiguous variable name: O
aiter/ops/triton/_triton_kernels/attention/unified_attention_sparse_mla.py|150 col 5| Local variable block_table_offset is assigned to but never used
aiter/ops/triton/_triton_kernels/fusions/fused_kv_cache.py|793 col 17| Local variable d_cos_mask is assigned to but never used
aiter/ops/triton/_triton_kernels/gemm/fused/fused_gemm_a8w8_blockscale_mul_add.py|104 col 5| Local variable GRID_MN is assigned to but never used
aiter/ops/triton/_triton_kernels/gemm/fused/fused_gemm_a8w8_blockscale_mul_add.py|158 col 9| Local variable acc_dtype is assigned to but never used
aiter/ops/triton/activation.py|3 col 27| triton.language imported but unused
aiter/ops/triton/activation.py|8 col 1| Module level import not at top of file
aiter/ops/triton/activation.py|9 col 1| Module level import not at top of file
aiter/ops/triton/attention/lean_atten.py|314 col 5| Local variable la_kernel is assigned to but never used
aiter/ops/triton/attention/mha_v3.py|1158 col 9| Local variable total_q is assigned to but never used
aiter/ops/triton/attention/mha_v3.py|1162 col 9| Local variable total_k is assigned to but never used
aiter/ops/triton/comms/all_gather.py|157 col 11| Undefined name IrisCommContext
aiter/ops/triton/comms/reduce_scatter.py|11 col 8| torch imported but unused
aiter/ops/triton/comms/reduce_scatter.py|163 col 11| Undefined name IrisCommContext
aiter/ops/triton/gluon/gemm_a8w8_blockscale.py|17 col 1| Module level import not at top of file
aiter/ops/triton/gluon/gemm_a8w8_blockscale.py|18 col 1| Module level import not at top of file
aiter/ops/triton/moe/moe_routing/routing.py|219 col 5| Do not assign a lambda expression, use a def
aiter/ops/triton/rope/rope.py|1526 col 5| Local variable c3 is assigned to but never used
aiter/ops/triton/utils/moe_common.py|1 col 8| triton imported but unused
aiter/ops/triton/utils/moe_common.py|2 col 27| triton.language imported but unused
aiter/test_common.py|161 col 5| Local variable data is assigned to but never used
aiter/test_mha_common.py|218 col 9| Do not assign a lambda expression, use a def
aiter/test_mha_common.py|231 col 9| Do not assign a lambda expression, use a def
aiter/test_mha_common.py|261 col 13| Do not assign a lambda expression, use a def
aiter/test_mha_common.py|265 col 13| Do not assign a lambda expression, use a def
aiter/test_mha_common.py|293 col 13| Do not assign a lambda expression, use a def
aiter/test_mha_common.py|297 col 13| Do not assign a lambda expression, use a def
aiter/test_mha_common.py|321 col 13| Do not assign a lambda expression, use a def
aiter/test_mha_common.py|325 col 13| Do not assign a lambda expression, use a def
aiter/utility/triton/triton_metadata_redirect.py|28 col 30| typing.Dict imported but unused
csrc/ck_tile_gemm_moe_2stages/moe_cktile2stages_common.py|140 col 5| Dictionary key literal 4 repeated
gradlib/gradlib/gemm_tuner.py|18 col 8| argparse imported but unused
gradlib/gradlib/gemm_tuner.py|24 col 8| aiter imported but unused
gradlib/gradlib/gemm_tuner.py|26 col 18| pandas imported but unused
gradlib/gradlib/gemm_tuner.py|163 col 21| Do not use bare except
gradlib/setup.py|25 col 1| Module level import not at top of file
gradlib/setup.py|29 col 1| Module level import not at top of file
op_tests/multigpu_tests/test_allgather.py|120 col 5| Local variable group is assigned to but never used
op_tests/multigpu_tests/test_fused_ar_rms.py|214 col 5| Local variable group is assigned to but never used
op_tests/op_benchmarks/triton/bench_fp8_mqa_logits.py|71 col 9| Do not assign a lambda expression, use a def
op_tests/op_benchmarks/triton/bench_la_paged_decode.py|143 col 5| Local variable sm_scale is assigned to but never used
op_tests/op_benchmarks/triton/bench_la_paged_decode.py|277 col 9| Do not assign a lambda expression, use a def
op_tests/op_benchmarks/triton/bench_la_paged_decode.py|291 col 9| Do not assign a lambda expression, use a def
op_tests/op_benchmarks/triton/bench_moe.py|177 col 9| Local variable kernel_name is assigned to but never used
op_tests/op_benchmarks/triton/bench_pa_decode.py|188 col 5| Local variable model_name is assigned to but never used
op_tests/op_benchmarks/triton/bench_pa_prefill.py|210 col 5| Local variable model_name is assigned to but never used
op_tests/test_fused_qk_norm_rope_cache_quant.py|1256 col 5| Local variable chunk_k_cache_err is assigned to but never used
op_tests/test_fused_qk_norm_rope_cache_quant.py|1263 col 5| Local variable chunk_v_cache_err is assigned to but never used
op_tests/test_gemm_a16w16.py|177 col 5| Local variable err is assigned to but never used
op_tests/test_gemm_a8w8.py|177 col 5| Local variable cu_num is assigned to but never used
op_tests/test_indexer_k_quant_and_cache.py|8 col 35| Redefinition of unused dtypes from line 7: dtypes redefined here
op_tests/test_kvcache.py|22 col 5| Local variable dtype is assigned to but never used
op_tests/test_kvcache.py|23 col 5| Local variable device is assigned to but never used
op_tests/test_mha.py|344 col 5| Local variable softmax_lse_tol is assigned to but never used
op_tests/test_mha_varlen.py|332 col 9| Local variable end is assigned to but never used
op_tests/test_mha_varlen.py|714 col 63| Ambiguous variable name: l
op_tests/test_mha_varlen.py|718 col 63| Ambiguous variable name: l
op_tests/test_mla.py|32 col 5| Local variable RMSE is assigned to but never used
op_tests/test_mla.py|34 col 5| Local variable amax_diff is assigned to but never used
op_tests/test_moe.py|11 col 1| from aiter.int4_utils import * used; unable to detect undefined names
op_tests/test_moe.py|96 col 12| fused_experts may be undefined, or defined from star imports
op_tests/test_moe.py|170 col 5| Local variable w1a is assigned to but never used
op_tests/test_moe.py|171 col 5| Local variable w2a is assigned to but never used
op_tests/test_moe.py|172 col 5| Local variable avg_a is assigned to but never used
op_tests/test_moe.py|243 col 18| rearrange_4bit_elements may be undefined, or defined from star imports
op_tests/test_moe.py|243 col 42| convert_int8_to_uint32_int4 may be undefined, or defined from star imports
op_tests/test_moe.py|244 col 18| rearrange_4bit_elements may be undefined, or defined from star imports
op_tests/test_moe.py|244 col 42| convert_int8_to_uint32_int4 may be undefined, or defined from star imports
op_tests/test_moe_dp_share_expert.py|8 col 1| from aiter.int4_utils import * used; unable to detect undefined names
op_tests/test_moe_dp_share_expert.py|9 col 19| aiter.ActivationType imported but unused
op_tests/test_moe_dp_share_expert.py|12 col 5| aiter.fused_moe_dp_shared_expert.moe_sorting imported but unused
op_tests/test_moe_dp_share_expert.py|72 col 9| Local variable moe_buf_tmp is assigned to but never used
op_tests/test_moe_sorting.py|85 col 5| Local variable dim is assigned to but never used
op_tests/test_moe_tkw1.py|14 col 1| from aiter.int4_utils import * used; unable to detect undefined names
op_tests/test_moe_tkw1.py|98 col 12| fused_experts may be undefined, or defined from star imports
op_tests/test_moe_tkw1.py|171 col 5| Local variable w1a is assigned to but never used
op_tests/test_moe_tkw1.py|172 col 5| Local variable w2a is assigned to but never used
op_tests/test_moe_tkw1.py|173 col 5| Local variable avg_a is assigned to but never used
op_tests/test_moe_tkw1.py|238 col 18| rearrange_4bit_elements may be undefined, or defined from star imports
op_tests/test_moe_tkw1.py|238 col 42| convert_int8_to_uint32_int4 may be undefined, or defined from star imports
op_tests/test_moe_tkw1.py|239 col 18| rearrange_4bit_elements may be undefined, or defined from star imports
op_tests/test_moe_tkw1.py|239 col 42| convert_int8_to_uint32_int4 may be undefined, or defined from star imports
op_tests/test_pa_mtp.py|290 col 5| Redefinition of unused run_aiter_hip from line 258: run_aiter_hip redefined here
op_tests/test_pa_ragged_experimental.py|3 col 8| itertools imported but unused
op_tests/test_pa_ragged_experimental.py|5 col 8| aiter imported but unused
op_tests/test_pa_ragged_experimental.py|6 col 8| pytest imported but unused
op_tests/test_pa_ragged_experimental.py|7 col 31| aiter.test_common.checkAllclose imported but unused
op_tests/test_pa_ragged_experimental.py|7 col 46| aiter.test_common.perftest imported but unused
op_tests/test_pa_ragged_experimental.py|7 col 56| aiter.test_common.tensor_dump imported but unused
op_tests/test_pa_ragged_experimental.py|7 col 69| aiter.test_common.tensor_load imported but unused
op_tests/test_pa_ragged_experimental.py|8 col 19| aiter.pertoken_quant imported but unused
op_tests/test_pa_ragged_experimental.py|11 col 20| einops.rearrange imported but unused
op_tests/test_pa_ragged_experimental.py|15 col 19| aiter.paged_attention_ragged imported but unused
op_tests/test_pa_ragged_experimental.py|33 col 31| Undefined name STR_DTYPE_TO_TORCH_DTYPE
op_tests/test_pa_ragged_experimental.py|39 col 27| Undefined name STR_DTYPE_TO_TORCH_DTYPE
op_tests/test_pa_ragged_experimental.py|108 col 5| Local variable head_total is assigned to but never used
op_tests/test_pa_ragged_experimental.py|210 col 17| Comparison to None should be cond is None
op_tests/test_pa_ragged_experimental.py|219 col 9| Local variable num_queries_per_kv is assigned to but never used
op_tests/test_pa_ragged_experimental.py|252 col 9| Local variable workspace is assigned to but never used
op_tests/test_pa_ragged_experimental.py|377 col 12| Redefinition of unused itertools from line 3: itertools redefined here
op_tests/test_sample.py|9 col 27| aiter.greedy_sample imported but unused
op_tests/test_sample.py|9 col 42| aiter.random_sample imported but unused
op_tests/test_sample.py|173 col 1| Module level import not at top of file
op_tests/test_topk_per_row.py|207 col 5| Local variable values is assigned to but never used
op_tests/triton_tests/rope/test_rope.py|1102 col 5| Local variable B is assigned to but never used
op_tests/triton_tests/rope/test_rope.py|1126 col 9| Local variable merged_real_sum is assigned to but never used
op_tests/triton_tests/utils/init.py|4 col 1| from .mla_decode_ref import * used; unable to detect undefined names
op_tests/triton_tests/utils/init.py|5 col 1| from .mla_extend_ref import * used; unable to detect undefined names
op_tests/triton_tests/utils/init.py|6 col 1| from .rotary_embedding import * used; unable to detect undefined names
op_tests/triton_tests/utils/mla_decode_ref.py|479 col 5| Ambiguous variable name: O
op_tests/triton_tests/utils/mla_extend_ref.py|451 col 5| Undefined name context_attention_fwd

Filtered Findings (0)

Annotations

Check warning on line 462 in .github/scripts/query_job_status.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] .github/scripts/query_job_status.py#L462 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `created` is assigned to but never used
Raw output
message:"Local variable `created` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/.github/scripts/query_job_status.py"  range:{start:{line:462  column:13}  end:{line:462  column:20}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:462  column:13}  end:{line:462  column:23}}}

Check warning on line 77 in aiter/bert_padding.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/bert_padding.py#L77 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `second_dim` is assigned to but never used
Raw output
message:"Local variable `second_dim` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/bert_padding.py"  range:{start:{line:77  column:9}  end:{line:77  column:19}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:77  column:9}  end:{line:77  column:22}}}

Check warning on line 224 in aiter/bert_padding.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/bert_padding.py#L224 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `dim` is assigned to but never used
Raw output
message:"Local variable `dim` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/bert_padding.py"  range:{start:{line:224  column:5}  end:{line:224  column:8}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:224  column:5}  end:{line:224  column:11}}}

Check warning on line 241 in aiter/fused_moe_bf16_asm.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/fused_moe_bf16_asm.py#L241 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `fmoe_func` is assigned to but never used
Raw output
message:"Local variable `fmoe_func` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/fused_moe_bf16_asm.py"  range:{start:{line:241  column:13}  end:{line:241  column:22}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:241  column:13}  end:{line:241  column:25}}}

Check warning on line 156 in aiter/fused_moe_dp_shared_expert.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/fused_moe_dp_shared_expert.py#L156 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `global_E` is assigned to but never used
Raw output
message:"Local variable `global_E` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/fused_moe_dp_shared_expert.py"  range:{start:{line:156  column:9}  end:{line:156  column:17}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:156  column:9}  end:{line:156  column:20}}}

Check warning on line 482 in aiter/jit/utils/cpp_extension.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/jit/utils/cpp_extension.py#L482 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `original_spawn` is assigned to but never used
Raw output
message:"Local variable `original_spawn` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/jit/utils/cpp_extension.py"  range:{start:{line:482  column:13}  end:{line:482  column:27}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:482  column:1}  end:{line:483  column:1}}}

Check warning on line 207 in aiter/jit/utils/torch_guard.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/jit/utils/torch_guard.py#L207 <F401>(https://docs.astral.sh/ruff/rules/unused-import)

`torch.library.Library` imported but unused; consider using `importlib.util.find_spec` to test for availability
Raw output
message:"`torch.library.Library` imported but unused; consider using `importlib.util.find_spec` to test for availability"  location:{path:"/home/runner/work/aiter/aiter/aiter/jit/utils/torch_guard.py"  range:{start:{line:207  column:39}  end:{line:207  column:46}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F401"  url:"https://docs.astral.sh/ruff/rules/unused-import"}

Check warning on line 41 in aiter/ops/flydsl/kernels/moe_gemm_2stage.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/flydsl/kernels/moe_gemm_2stage.py#L41 <F401>(https://docs.astral.sh/ruff/rules/unused-import)

`flydsl._mlir.dialects.memref` imported but unused
Raw output
message:"`flydsl._mlir.dialects.memref` imported but unused"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/flydsl/kernels/moe_gemm_2stage.py"  range:{start:{line:41  column:46}  end:{line:41  column:52}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F401"  url:"https://docs.astral.sh/ruff/rules/unused-import"}  suggestions:{range:{start:{line:41  column:1}  end:{line:41  column:52}}  text:"from flydsl._mlir.dialects import llvm, scf"}

Check warning on line 225 in aiter/ops/flydsl/kernels/moe_gemm_2stage.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/flydsl/kernels/moe_gemm_2stage.py#L225 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `module_name` is assigned to but never used
Raw output
message:"Local variable `module_name` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/flydsl/kernels/moe_gemm_2stage.py"  range:{start:{line:225  column:5}  end:{line:225  column:16}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:225  column:5}  end:{line:225  column:19}}}

Check warning on line 1079 in aiter/ops/flydsl/kernels/moe_gemm_2stage.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/flydsl/kernels/moe_gemm_2stage.py#L1079 <F821>(https://docs.astral.sh/ruff/rules/undefined-name)

Undefined name `i32`
Raw output
message:"Undefined name `i32`"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/flydsl/kernels/moe_gemm_2stage.py"  range:{start:{line:1079  column:58}  end:{line:1079  column:61}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F821"  url:"https://docs.astral.sh/ruff/rules/undefined-name"}

Check warning on line 1535 in aiter/ops/flydsl/kernels/moe_gemm_2stage.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/flydsl/kernels/moe_gemm_2stage.py#L1535 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `module_name` is assigned to but never used
Raw output
message:"Local variable `module_name` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/flydsl/kernels/moe_gemm_2stage.py"  range:{start:{line:1535  column:5}  end:{line:1535  column:16}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:1535  column:5}  end:{line:1535  column:19}}}

Check warning on line 758 in aiter/ops/gemm_op_a8w8.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/gemm_op_a8w8.py#L758 <F821>(https://docs.astral.sh/ruff/rules/undefined-name)

Undefined name `gfx950_a8w8_blockscale_asm`
Raw output
message:"Undefined name `gfx950_a8w8_blockscale_asm`"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/gemm_op_a8w8.py"  range:{start:{line:758  column:12}  end:{line:758  column:38}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F821"  url:"https://docs.astral.sh/ruff/rules/undefined-name"}

Check warning on line 1476 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L1476 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `False`; use `not is_v3_atomic_fp32:` for false checks
Raw output
message:"Avoid equality comparisons to `False`; use `not is_v3_atomic_fp32:` for false checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:1476  column:39}  end:{line:1476  column:65}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:1476  column:39}  end:{line:1476  column:65}}  text:"not is_v3_atomic_fp32"}

Check warning on line 1496 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L1496 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `True`; use `is_v3_atomic_fp32:` for truth checks
Raw output
message:"Avoid equality comparisons to `True`; use `is_v3_atomic_fp32:` for truth checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:1496  column:32}  end:{line:1496  column:57}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:1496  column:32}  end:{line:1496  column:57}}  text:"is_v3_atomic_fp32"}

Check warning on line 1511 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L1511 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `False`; use `not is_v3_atomic_fp32:` for false checks
Raw output
message:"Avoid equality comparisons to `False`; use `not is_v3_atomic_fp32:` for false checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:1511  column:15}  end:{line:1511  column:41}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:1511  column:15}  end:{line:1511  column:41}}  text:"not is_v3_atomic_fp32"}

Check warning on line 1547 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L1547 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `True`; use `is_v3_atomic_fp32:` for truth checks
Raw output
message:"Avoid equality comparisons to `True`; use `is_v3_atomic_fp32:` for truth checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:1547  column:15}  end:{line:1547  column:40}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:1547  column:15}  end:{line:1547  column:40}}  text:"is_v3_atomic_fp32"}

Check warning on line 1660 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L1660 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `nmask` is assigned to but never used
Raw output
message:"Local variable `nmask` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:1660  column:5}  end:{line:1660  column:10}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:1660  column:1}  end:{line:1661  column:1}}}

Check warning on line 2070 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2070 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `mask` is assigned to but never used
Raw output
message:"Local variable `mask` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2070  column:5}  end:{line:2070  column:9}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:2070  column:1}  end:{line:2071  column:1}}}

Check warning on line 2070 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2070 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `True`; use `causal:` for truth checks
Raw output
message:"Avoid equality comparisons to `True`; use `causal:` for truth checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2070  column:12}  end:{line:2070  column:26}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:2070  column:12}  end:{line:2070  column:26}}  text:"causal"}

Check warning on line 2071 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2071 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `nmask` is assigned to but never used
Raw output
message:"Local variable `nmask` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2071  column:5}  end:{line:2071  column:10}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:2071  column:1}  end:{line:2074  column:1}}}

Check warning on line 2072 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2072 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `False`; use `not causal:` for false checks
Raw output
message:"Avoid equality comparisons to `False`; use `not causal:` for false checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2072  column:9}  end:{line:2072  column:24}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:2072  column:9}  end:{line:2072  column:24}}  text:"not causal"}

Check warning on line 2229 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2229 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `mask` is assigned to but never used
Raw output
message:"Local variable `mask` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2229  column:5}  end:{line:2229  column:9}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:2229  column:1}  end:{line:2230  column:1}}}

Check warning on line 2229 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2229 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `True`; use `causal:` for truth checks
Raw output
message:"Avoid equality comparisons to `True`; use `causal:` for truth checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2229  column:12}  end:{line:2229  column:26}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:2229  column:12}  end:{line:2229  column:26}}  text:"causal"}

Check warning on line 2230 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2230 <F841>(https://docs.astral.sh/ruff/rules/unused-variable)

Local variable `nmask` is assigned to but never used
Raw output
message:"Local variable `nmask` is assigned to but never used"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2230  column:5}  end:{line:2230  column:10}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"F841"  url:"https://docs.astral.sh/ruff/rules/unused-variable"}  suggestions:{range:{start:{line:2230  column:1}  end:{line:2233  column:1}}}

Check warning on line 2231 in aiter/ops/mha.py

See this annotation in the file changed.

@github-actions github-actions / ruff

[ruff] aiter/ops/mha.py#L2231 <E712>(https://docs.astral.sh/ruff/rules/true-false-comparison)

Avoid equality comparisons to `False`; use `not causal:` for false checks
Raw output
message:"Avoid equality comparisons to `False`; use `not causal:` for false checks"  location:{path:"/home/runner/work/aiter/aiter/aiter/ops/mha.py"  range:{start:{line:2231  column:9}  end:{line:2231  column:24}}}  severity:WARNING  source:{name:"ruff"  url:"https://docs.astral.sh/ruff"}  code:{value:"E712"  url:"https://docs.astral.sh/ruff/rules/true-false-comparison"}  suggestions:{range:{start:{line:2231  column:9}  end:{line:2231  column:24}}  text:"not causal"}