cornell-zhang / hcl-dialect

HeteroCL-MLIR dialect for accelerator design
https://cornell-zhang.github.io/heterocl/index.html
Other
40 stars 17 forks source link

[Frontend] Debug mode runtime build test failure #114

Closed zzzDavid closed 1 year ago

zzzDavid commented 2 years ago

Related test: mlir/test_runtime_build.py::test_debug_mode Error stack trace:

Traceback (most recent call last):
  File "mlir/test_runtime_build.py", line 40, in <module>
    test_debug_mode()
  File "mlir/test_runtime_build.py", line 37, in test_debug_mode
    test_sdaccel_debug()
  File "mlir/test_runtime_build.py", line 23, in test_sdaccel_debug
    code = hcl.build(s, target)
  File "/work/shared/users/phd/nz264/mlir/heterocl/python/heterocl/mlir/build_module.py", line 72, in build
    raise e
  File "/work/shared/users/phd/nz264/mlir/heterocl/python/heterocl/mlir/build_module.py", line 68, in build
    return build_fpga_kernel(schedule, target, stmt)
  File "/work/shared/users/phd/nz264/mlir/heterocl/python/heterocl/mlir/build_module.py", line 263, in build_fpga_kernel
    copy_build_files(target)
  File "/work/shared/users/phd/nz264/mlir/heterocl/python/heterocl/mlir/runtime.py", line 25, in copy_build_files
    os.makedirs(target.project, exist_ok=True)
  File "/home/nz264/anaconda3/envs/mlir/lib/python3.8/os.py", line 208, in makedirs
    head, tail = path.split(name)
  File "/home/nz264/anaconda3/envs/mlir/lib/python3.8/posixpath.py", line 103, in split
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Seems like a file i/o issue or unsupported mode

zzzDavid commented 1 year ago

Fixed by cornell-zhang/heterocl@2150a76fb1bd1858d3e444549114ecb5e6e3f847