Skip to content

valid tile size causes build error #143

@EmilySillars

Description

@EmilySillars

Changes made to ConfigureForSnitch.cpp:
Replaced [0,56,100] tiling configuration with [0,40,25]:

if (funcOp.getName() ==
            "main$async_dispatch_9_matmul_transpose_b_1x161x600_f64") {
          l1Tiles[0] = 0;
          l1Tiles[1] = 40;
          l1Tiles[2] = 25;
        }

Error:

<eval_with_key>.0 from /home/hoppip/Quidditch/venv/lib/python3.11/site-packages/torch/fx/experimental/proxy_tensor.py:551 in wrapped:110:0: error: failed to legalize operation 'quidditch_snitch.call_microkernel' that was explicitly marked illegal
/home/hoppip/Quidditch/runtime/samples/nsnet2/NsNet2.py:90:0: note: called from
<eval_with_key>.0 from /home/hoppip/Quidditch/venv/lib/python3.11/site-packages/torch/fx/experimental/proxy_tensor.py:551 in wrapped:110:0: note: see current operation: "quidditch_snitch.call_microkernel"(%124) <{name = "main$async_dispatch_9_matmul_transpose_b_1x161x600_f64$xdsl_kernel0", riscv_assembly = ".text\0A.globl main$async_dispatch_9_matmul_transpose_b_1x161x600_f64$xdsl_kernel0\0A.p2align 2\0Amain$async_dispatch_9_matmul_transpose_b_1x161x600_f64$xdsl_kernel0:\0A    mv t0, a0\0A    li t1, -2\0A    scfgwi t1, 64                                # dm 0 dim 0 bound\0A    li t1, 8\0A    scfgwi t1, 192                               # dm 0 dim 0 stride\0A    scfgwi zero, 32                              # dm 0 repeat\0A    scfgwi t0, 896                               # dm 0 dim 0 destination\0A    csrrsi zero, 1984, 1                         # SSR enable\0A    csrrci zero, 1984, 1                         # SSR disable\0A    ret\0A"}> : (memref<1x?xf64, strided<[161, 1], offset: ?>>) -> ()
<eval_with_key>.0 from /home/hoppip/Quidditch/venv/lib/python3.11/site-packages/torch/fx/experimental/proxy_tensor.py:551 in wrapped:112:0: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"quidditch", "static", {compute_cores = 8 : i32, data_layout = "e-m:e-p:32:32-i64:64-n32-S128", target_triple = "riscv32-unknown-elf"}>

Full build output attached:

0-40-25-build-error.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions