Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lijian736/tvm_cpp
A simple TVM C++ demos set
https://github.com/lijian736/tvm_cpp
cpp onnx relay tvm
Last synced: about 22 hours ago
JSON representation
A simple TVM C++ demos set
- Host: GitHub
- URL: https://github.com/lijian736/tvm_cpp
- Owner: lijian736
- License: mit
- Created: 2024-01-11T02:34:07.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-23T16:52:11.000Z (9 months ago)
- Last Synced: 2024-02-24T14:26:43.682Z (9 months ago)
- Topics: cpp, onnx, relay, tvm
- Language: C++
- Homepage:
- Size: 228 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## A TVM C++ examples set
### Step 1. download TVM source
```
bash scripts/download_tvm.sh
```### Step 2. build docker file
```
cd dockerfiles
bash build_docker.sh
```### Step 3. build TVM .so libs
1. enter the docker container
2. edit the third_party/tvm/cmake/config.cmake, change `set(USE_LLVM OFF)` to `set(USE_LLVM ON)`
3. build TVM so libs
run the following scripts. if the build successfully, libtvm.so and libtvm_runtime.so will be generated.```
cd third_party/tvm
mkdir build
cp cmake/config.cmake build
cd build
cmake .. && make -j
```### Step 4. build the examples
```
mkdir build
cd build
cmake .. && make -j
```