Skip to content

Large matrix mul can't be run on Xuantie C906 #3871

Closed

Description

@yamato720

Matrix A is mm, matrix B is also mm, I use this function ''cblas_dgemm()''to calculate A*B on Xuantie C906, a RISC-V CPU.
However, when m>=8,it reports error "Illegal instruction"; When m<8,it works and gives a correct answer.
But when I run it on my laptop, even m==3200,it still runs well.

Activity

  1. martin-frbg commented on Dec 20, 2022

    @martin-frbg
    Collaborator

    So far I have been assuming that the C906 supports the same instruction set as the C910 for which the kernels were contributed - unfortunately I do not have any actual hardware to test.
    This reddit thread may be relevant (although it refers to the older rvv 0.7 version) https://www.reddit.com/r/RISCV/comments/z3u0ld/issue_with_64bit_element_size_with_rvv_07_on/ @xianyi

  2. brada4 commented on Dec 24, 2022

    @brada4
    Contributor

    You should build TARGET=RISCV64_GENERIC to make it work. It wkll be slower than intended till problem is figured out

  3. martin-frbg commented on Feb 8, 2023

    @martin-frbg
    Collaborator

    May be fixed by #3891 but I only just received a C906-based developer board (Sipeed Lichee RV dock) and have not yet gotten it to work.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions