Skip to content

Support for A5#162

Draft
zouzias wants to merge 16 commits into
mainfrom
161-kernels-build-on-a5
Draft

Support for A5#162
zouzias wants to merge 16 commits into
mainfrom
161-kernels-build-on-a5

Conversation

@zouzias
Copy link
Copy Markdown
Collaborator

@zouzias zouzias commented May 13, 2026

Keep track of A5 support on kernels.

  • make compile_a5_abs
  • make compile_a5_csr_gather
  • make compile_a5_batch_matrix_square
  • make compile_a5_chunk_cumsum
  • make compile_a5_gdn_chunk_h
  • make compile_a5_gdn_chunk_o
  • make compile_a5_gdn_scaled_dot_kkt
  • make compile_a5_gdn_wy_fast
  • make compile_a5_scan_ul1
  • make compile_a5_simple_matmul
  • make compile_a5_swiglu
  • make compile_a5_tri_inv_col_sweep
  • make compile_a5_tri_inv_ns
  • make compile_a5_tri_inv_rec_unroll
  • make compile_a5_tri_inv_trick

Work in progress

Most AIV kernels fail due to error: the range of 1st parameter must be [4, 6] pipe_barrier(PIPE_V); .

@zouzias zouzias linked an issue May 13, 2026 that may be closed by this pull request
@zouzias zouzias changed the title Clean-up kernels for A5 Support for A5 May 14, 2026
@zouzias zouzias added the Under Discussion The issue/pull request is still under discussion label May 15, 2026
@zouzias zouzias added the A5 label May 16, 2026
@zouzias
Copy link
Copy Markdown
Collaborator Author

zouzias commented May 27, 2026

This looks a bit challenging to fix:

csrc/kernel/kernel_gdn_wy_fast.cpp:415:30: error: function type 'void (long) noexcept' of 'wait_flag_dev' does not support the given target feature
            if (!first_iter) wait_flag_dev(3);
                             ^
csrc/kernel/kernel_gdn_wy_fast.cpp:453:26: error: the range of 1st parameter must be [4, 6]
            pipe_barrier(PIPE_V);
                         ^
csrc/kernel/kernel_gdn_wy_fast.cpp:455:26: error: the range of 1st parameter must be [4, 6]
            pipe_barrier(PIPE_V);
                         ^
csrc/kernel/kernel_gdn_wy_fast.cpp:457:26: error: the range of 1st parameter must be [4, 6]
            pipe_barrier(PIPE_V);
                         ^
csrc/kernel/kernel_gdn_wy_fast.cpp:462:30: error: function type 'void (long) noexcept' of 'wait_flag_dev' does not support the given target feature
            if (!first_iter) wait_flag_dev(4);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A5 Under Discussion The issue/pull request is still under discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for A5 on kernels

1 participant