llvm / llvm/circt

[PyCDE][hlstool] Pytorch integration test broken

Open
#5,235 1 comment 0 reactions 1 assignee View on GitHub

@mortbopet is already working on this.

Since May 19, 2023.

PyCDE
Dominant language
C++
Stars
2.2k
Forks
524
Avg merge
3d 2h
Merged PRs (30d)
46

Description

FAIL: PyCDE Integration :: pytorch/dot_prod_system.py (1 of 4)
******************** TEST 'PyCDE Integration :: pytorch/dot_prod_system.py' FAILED ********************
Script:
--
: 'RUN: at line 2';   rm -rf /home/jodemme/internal_circt_build/tools/circt/frontends/pycde/integration_test/pytorch/Output/dot_prod_system.py.tmp
: 'RUN: at line 3';   mlir-opt  /home/jodemme/FPGAToolsAndCompilers/CIRCT/circt/frontends/PyCDE/integration_test/pytorch/dot.linalg.mlir --empty-tensor-to-alloc-tensor --one-shot-bufferize="allow-return-allocs bufferize-function-boundaries" --buffer-results-to-out-params --convert-linalg-to-affine-loops --lower-affine --convert-scf-to-cf --canonicalize > dot.cf.mlir
: 'RUN: at line 4';   hlstool dot.cf.mlir --with-esi --dynamic-hw -ir -ir-output-level 2 > dot.hw.mlir
: 'RUN: at line 5';   "/usr/bin/python3.9" /home/jodemme/FPGAToolsAndCompilers/CIRCT/circt/frontends/PyCDE/integration_test/pytorch/dot_prod_system.py /home/jodemme/internal_circt_build/tools/circt/frontends/pycde/integration_test/pytorch/Output/dot_prod_system.py.tmp 2>&1
: 'RUN: at line 6';   /home/jodemme/internal_circt_build/bin/esi-cosim-runner.py --no-aux-files --tmpdir /home/jodemme/internal_circt_build/tools/circt/frontends/pycde/integration_test/pytorch/Output/dot_prod_system.py.tmp --schema /home/jodemme/internal_circt_build/tools/circt/frontends/pycde/integration_test/pytorch/Output/dot_prod_system.py.tmp/runtime/schema.capnp /home/jodemme/FPGAToolsAndCompilers/CIRCT/circt/frontends/PyCDE/integration_test/pytorch/dot_prod_system.py `ls /home/jodemme/internal_circt_build/tools/circt/frontends/pycde/integration_test/pytorch/Output/dot_prod_system.py.tmp/hw/*.sv | grep -v driver.sv`
--
Exit Code: 1

Command Output (stderr):
--
dot.cf.mlir:2:3: error: failed to legalize operation 'esi.mem.ram' that was explicitly marked illegal
  func.func @forward(%arg0: memref<5xi32, strided<[?], offset: ?>>, %arg1: memref<5xi32, strided<[?], offset: ?>>, %arg2: memref<i32>) {
  ^
dot.cf.mlir:2:3: note: see current operation: "esi.mem.ram"() {depth = 5 : i64, innerType = i32, sym_name = "in0"} : () -> ()

--

********************
********************
Failed Tests (1):
  PyCDE Integration :: pytorch/dot_prod_system.py

This error is coming from hlstool.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.