Skip to content

Chipyard 1.10.0: ./scripts/build-onnx-training.sh errors #388

@neulxf

Description

@neulxf

Describe the bug
When I compile onnxruntime-riscv under gemmini in chipyard1.10.0, an error occurs.

Urgency

System information

  • Linux Ubuntu 20.04:
  • ONNX Runtime installed from source:
  • ONNX Runtime version: f6d2fc95463316ec47d7f832f35be03c26887922
  • Python version: 3.10.11
  • GCC/Compiler version (if compiling from source): (conda-forge gcc 12.2.0-19) 12.2.0
  • CUDA/cuDNN version:
  • GPU model and memory:

To Reproduce

  • Download Chipyard 1.10.0,
  • cd chipyard and run ./build-setup.sh riscv-tools
  • source env.sh
  • cd generators/gemmini
  • run git submodule update --init --recursive software/onnxruntime-riscv
  • run ./scripts/build-onnx-inference.sh

Expected behavior
No errors and generate ort_test in software/onnxruntime-riscv/systolic_runner/imagenet_runner/.

Screenshots

Image Image Image Image
-- ******** Summary ********
--   CMake version             : 3.26.3
--   CMake command             : /home/lxf/workspace/DeployMind/chipyard/.conda-env/bin/cmake
--   System                    : Linux
--   C++ compiler              : /home/lxf/workspace/DeployMind/chipyard/.conda-env/riscv-tools/bin/riscv64-unknown-linux-gnu-g++
--   C++ compiler version      : 12.2.0
--   CXX flags                 : -march=rv64imafdc -mabi=lp64d -ffunction-sections -fdata-sections -Wno-error=attributes -Wnon-virtual-dtor
--   Build type                : Debug
--   Compile definitions       : ENABLE_ORT_FORMAT_LOAD;EIGEN_MPL2_ONLY;PLATFORM_POSIX
--   CMAKE_PREFIX_PATH         : 
--   CMAKE_INSTALL_PREFIX      : /usr/local
--   CMAKE_MODULE_PATH         : /home/lxf/workspace/DeployMind/chipyard/generators/gemmini/software/onnxruntime-riscv/cmake/external
-- 
--   ONNX version              : 1.9.0
--   ONNX NAMESPACE            : onnx
--   ONNX_USE_LITE_PROTO       : ON
--   USE_PROTOBUF_SHARED_LIBS  : OFF
--   ONNX_DISABLE_EXCEPTIONS   : OFF
--   ONNX_WERROR               : OFF
--   ONNX_BUILD_TESTS          : OFF
--   ONNX_BUILD_BENCHMARKS     : OFF
--   ONNXIFI_DUMMY_BACKEND     : OFF
--   ONNXIFI_ENABLE_EXT        : OFF
-- 
--   Protobuf compiler         : 
--   Protobuf includes         : 
--   Protobuf libraries        : 
--   BUILD_ONNX_PYTHON         : OFF

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