Skip to content

[PyCDE][hlstool] Pytorch integration test broken #5235

Open
@teqdruid

Description

@teqdruid
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.

Metadata

Metadata

Assignees

Labels

PyCDEPython CIRCT Design Entry API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions