Skip to content

[TVM] Exception during initialization #13572

Open
@LiuPeiqiCN

Description

@LiuPeiqiCN

Describe the issue

Code:

Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_Tvm(sessionOptions, ""));

Exception:

Exception during initialization: D:\CMake\onnxruntime\onnxruntime\onnxruntime\core\providers\tvm\tvm_api.cc:50 
onnxruntime::tvm::TVMCompile compile != nullptr was false. Unable to retrieve 'tvm_onnx_import_and_compile'.


Build:

.\build.bat --config Release --skip_tests --build_shared_lib --parallel
 --update --build --use_tvm --llvm_config "D:\vcpkgs\LLVM\bin\llvm-config.exe" --cmake_extra_defines 
BUILD_TESTING=OFF CMAKE_INSTALL_PREFIX="install"  LLVM_DIR="D:\vcpkgs\LLVM\lib\cmake\llvm"  
onnxruntime_BUILD_UNIT_TESTS=OFF --cmake_generator "Visual Studio 17 2022"

How to use TVM with c++? Any example/document?

To reproduce

Exception during initialization when use TVM execution provider.

Urgency

No response

Platform

Windows

OS Version

win11

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.13.1

ONNX Runtime API

C++

Architecture

X64

Execution Provider

TVM

Execution Provider Library Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:tvmissues related to TVM execution provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions